Coding Assignment 1

First modify – one fade total 4 seconds, each half is 2 seconds

BOM:

white LED x 1

220 ohm resistor x 1

jumper wire x 1

breadboard x 1

arduino uno x 1

 

Schematic:

schem 1

 

Code:

https://github.com/jimmyadg/lab-2/blob/master/week_5_homework_fade/week_5_homework_fade.ino

 

Demo Video:

 

 

Second modify – Modify the above to blink twice for every three times the LED is completely off.

BOM:

Same as the first one.

 

Schematic:

Same as the first one.

 

Code:

https://github.com/jimmyadg/lab-2/blob/master/week_5_homework_3_blink/week_5_homework_3_blink.ino

 

Demo Video:

 

 

 

Third modify – Modify the above to add another LED that acts like a metronome and blinks (stays on for .1sec then off) 4 times breathing in or out. (use modulo 64)

 

BOM:

white LED x 2

220 ohm resistor x 2

jumper wire x 2

breadboard x 1

arduino uno x 1

 

Schematic:

schem 2

 

Code:

 

https://github.com/jimmyadg/lab-2/blob/master/week_5_homework_metronome/week_5_homework_metronome.ino

Demo Video:

Leave a reply

Skip to toolbar