Tuesday, December 9, 2014

Coding.

Now that I had something, I needed to code it to make it light it up. Instead of just blinking or lighting up I decided to have it sort of blink sporadically. It wouldn't have been boring. I found inspiration from an make use of post of a pulsating arduino LED cube. 


Once I programmed it onto my arduino, it actually lit. I can fiddle with the code to change its time constant which will control how fast it moves. The two videos below just show the speed differences of what I programmed the time constant to be, there's a slower one and a faster one. I also added a potentiometer to adjust the brightness of  the LEDs. I can't really leave it on too high because there's a high chance if I did, the LEDs would blow out considering I only incorporated one resistor. 






Here's a snapshot of it lit up 


No comments:

Post a Comment