Tristan’s Arduino Exercises

1- ‘Blink’

Pinmode sets the input power to drive from 13 into the positive terminal of the LED. The resistor reduces the overall voltage of the circuit by increasing friction as the LED uses very little power. This inturn makes the circuit run smoothly without short circuiting. The HIGH, LOW functions tell the light to toggle on and off on a delay.


2- ‘Fade’

This setup tells the LED to flash on and off at frequencies so fast that the brain’s slower refresh rate recognizes this as a gradual on and off flash. We know this is true becuase the power is coming from the ‘digital’ terminal which means theres only on/off as a function for the light and not an actual gradual analog fade.


4- ‘Multi RGB’

This is just the blink animation with a more fancy setup.Lights blink in a chain but are triggered by multiple output pins 11, 12, and 13.


5- ‘Push Button’

This animation combines the best of the blink animation with the fade animation coupled with a new and improved multi-color LED. Multiple pin controllers toggle the different color states with a counter variable which describes how the light fades.

We use variables to reduce the amount of memory used on the arduino, storing it once instead of having to state the fade variables for each color trigger.

6 – ‘Potentiometer’

Out of all the setups I couldn’t get my potentiometer to work.

For some reason the code wouldn’t recognize the A0 value.

Discover more from Making Studio

Subscribe now to keep reading and get access to the full archive.

Continue reading