Week 9. Output Devices

Week 9. Output Devices

2018, Nov 13    

I made my previous input device board to include the output device as well. All documentation is in week8.

For this assignment, I just had to plug in the DotStar LED strip that I got for my final project into the ATtiny44 board I made. I used pin 7 and 8 for the data line and the clock.

The FastLED library was used to program the DotStar LED strip. One thing I noticed late was that I needed to allocate memory for an array that stored the values for each LED index. My LED strip have 72 LED in it. When I tried to create an array of size 72, it ran out of “dynamic memory” on the ATtiny44. Since the ATtiny44 only have 256 bytes, I am only able to control around 32 LED or less.

I will use a more powerful microcontroller next time for my final project.

cable connection

2x speed up video of my DotStar LED strip working up to the 32nd LED.

Arduino Code

Update

I got comfortable desoldering using the heat gun, so I removed the ATtiny44 and soldered an attiny84 to it. Desde the code again, and it worked! Check my final project documentation to see more.