Smart skateboards and bikes. Fall 2016.
passwd
# default: raspberry
# new: skateboard
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
sudo echo "python /home/pi/skateboard/main.py" >> /etc/rc.local
(See jgarff/rpi_ws281x#103)
- 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
- Blacklist audio driver
sudo echo 'blacklist snd_bcm2835' > nano /etc/modprobe.d/snd-blacklist.conf
sudo python /home/pi/skateboard/main.py
cd smartskateboard
scp *.py [email protected]:/home/pi/skateboard
sudo pkill -fe skateboard/main.py
- https://pythonhosted.org/sense-hat/api/
- https://github.com/jgarff/rpi_ws281x
- https://learn.adafruit.com/neopixels-on-raspberry-pi/overview
- http://abyz.co.uk/rpi/pigpio/python.html
- https://wiki.qt.io/Apt-get_Qt4_on_the_Raspberry_Pi
- https://learn.adafruit.com/flora-brakelight-backpack/the-code
- https://www.raspberrypi.org/documentation/hardware/sense-hat/images/Sense-HAT-V1_0.pdf
- https://www.raspberrypi.org/forums/viewtopic.php?t=122972&p=827474
- http://pinout.xyz/pinout/pin12_gpio18