Skip to content

USCcorpuscallosum/smartskateboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Skateboard

Smart skateboards and bikes. Fall 2016.

Raspberry Pi Setup

Set password

passwd
# default: raspberry
# new: skateboard

Install things

sudo apt-get update
sudo apt-get install sense-hat
sudo apt-get install build-essential python-dev git scons swig # for rpi_ws281x
sudo reboot

git clone https://github.com/jgarff/rpi_ws281x.git
cd rpi_ws281x
scons
cd python
sudo python setup.py install

git clone https://github.com/usccorpuscallosum/smartskateboard.git /home/pi/skateboard

Start program on boot

sudo echo "python /home/pi/skateboard/main.py" >> /etc/rc.local

Disable audio drivers to get LEDs working

(See jgarff/rpi_ws281x#103)

  1. Add the following to /boot/config.txt:
hdmi_force_hotplug=1
hdmi_force_edid_audio=1

and also prepend a # to the dtparam=audio=on line

  1. Blacklist audio driver
sudo echo 'blacklist snd_bcm2835' > nano /etc/modprobe.d/snd-blacklist.conf

Run it for the first time

sudo python /home/pi/skateboard/main.py

Other commands

Copy code to Pi over SSH (from laptop)

cd smartskateboard
scp *.py [email protected]:/home/pi/skateboard

Kill running process

sudo pkill -fe skateboard/main.py

Resources

About

f16 smart skateboard project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages