Skip to content

Software: Teensy Firmware

Tom edited this page Sep 23, 2015 · 3 revisions

The code of this project can be compiled and installed on the Teensy with the Arduino IDE with installed Teensyduino extensions.

Currently the firmware supports up to 1100 leds on each of the output 8 channels (up to 8800leds in total).

The firmware is based on a slightly extended version on the excellent OctoWS2811 lib. The org lib can be found on Github as well: https://github.com/PaulStoffregen/OctoWS2811 This lib allows for simulataneous output of singals for up to 8 ledsstrips using DMA which results in almost no CPU work for the signal output. For for details read the docu on the libs Github page.

Keep in mind that every led on a strip takes a little bit of time to update. To get some etimate on the max framerate you can achieve take the number of leds on your longest connected strip and multiply by 30microseconds. This will give you the approx time technically required for a single update of the strip. If you divide 1000000 by the result of the first calculation, you get the max update frequency (real update frequency will be a bit lower).

Example:

  • 500 (leds) * 30 microsconds= 15000 microseconds.
  • 1000000 / 15000 = 66 Hz max update frequency (try to stay well above 30hz with your setup).

Installation of the Firmware

The lastest stable firmware for the TeensyStripController can be downloaded from https://github.com/DirectOutput/TeensyStripController/releases

The Teensy loader app used to install the firmware can be downloaded from: https://www.pjrc.com/teensy/loader_xp.html (You only need the loader tool, there is no need to install the IDE if you are not planning to edit/compile/install your own firmware version).

Follow the instructions on the page with the Teensy loader app to install the downloaded firmware on your Teensy.

If the board is not recognized by DOF after the firmware installation, you might need to power cycle the board.

Clone this wiki locally