Thursday, April 21, 2016

LED pains

Once the LEDs finally arrived, it was time to figure out how to make them work. The data sheet available on the sparkfun website does not seem to be thorough at all, and upon further searches concerning the WS2812 chip inside, it doesn't even seem to be accurate. After searching for the correct data, using wait_us() to control the pulses did not seem to be accurate enough, so we resorted to using an mbed library. At first we used a Pololu library to control them, which seemed to work one night. However, when we tested them the next day everything simply failed, so we found a NeoPixel library that had less built-in functionality, but behaved as expected when we tested them. After testing a few basic colors and chaining them together, we implemented a rainbow design that went across a 4x4 grid of leds to finally get an attractive pattern going.

Here is a video of the result:
https://goo.gl/photos/eFYLkh8AxqiJxwu27

No comments:

Post a Comment