I built a 25x24 pixel LED Vest to wear at Burningman 2016!
[2x 300 WS2812B LED Strip] (https://www.amazon.com/gp/product/B018X04ES2/ref=oh_aui_detailpage_o08_s00?ie=UTF8&psc=1)
[Teensy 3.2] (https://www.pjrc.com/store/teensy32.html)
[2x RAVPower Battery Pack] (https://www.amazon.com/gp/product/B00HFMUBYG/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1)
[DROK Step Down Voltage Regulator] (https://www.amazon.com/gp/product/B00C4QVTNU/ref=oh_aui_detailpage_o04_s00?ie=UTF8&psc=1)
[25mm Fan] (https://www.amazon.com/gp/product/B00MYNWUP4/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1)
Optional Parts:
For Testing at Home - [DROK Step Down Voltage Regulator with LED Voltage Display] (https://www.amazon.com/gp/product/B015Z02TE4/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1)
For Charging in the Desert - [ALLPOWERS 18W Portable Solar Charger Panel] (https://www.amazon.com/gp/product/B00G6CDTGS/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1)
Install the Teensy udev rule: sudo cp tools/49-teensy.rules /etc/udev/rules.d/
Then unplug your Teensy and plug it back in.
- Put your code in
src/main.cpp
- Put any libraries you need in
libraries
- Set the TEENSY variable in
Makefile
according to your teensy version - Build your code
make
- Upload your code
make upload
make
alias formake hex
make build
compiles everything and produces a .elfmake hex
converts the elf to an intel hex filemake post_compile
opens the launcher with the correct filemake upload
uploads the hex file to a teensy boardmake reboot
reboots the teensy
Teensy 3.X Project Template github.com/apmorton/teensy-template
- First download your favorite Arduino src and install Teensyduino
- The
teensy3
sub-folder is taken from <path-to-arduino-x.y.z>/hardware/teensy/avr/cores/teensy3 - The
tools
sub-folder is taken from <path-to-arduino-x.y.z>/hardware/tools and/or Teensyduino - The
src/main.cpp
file is moved, unmodified fromteensy3/main.cpp
- The
49-teensy.rules
file is taken from PJRC's udev rules
Modifications to Makefile
include
- Add support for arduino libraries
- Change tools directory
- Calculate target name from current directory
- Prettify rule output
- Do not upload by default, only build