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.

Mallika’s Arduino Exercises

1. Blinking an LED

Using the system default input

Using custom blink delay = 100ms

Tinker CAD LED Blinking circuit – https://www.tinkercad.com/things/1zyRurgD2Da-smashing-kasi

2. Blinking multiple LEDs

3. Making an LED fade

Fade amount = 9

4. Making an RGB circuit using 3 different LEDs

5. Making a crossfade RGB circuit using 3 different LEDs

6. Making a RGB circuit using a single color changing LED

7. Making a push button digital input LED circuit

Using the system default input


Reversing the input

8. Push button digital serial monitor


9. Making a potentiometer analog input LED circuit

Serial monitor reading

Thank you!!