23 September 2019

On and Off Switch



For this project, I went with a simple on and off switch. I used 4 buttons to make two on and off switches. I used one pair to turn the blue LED on and off when pressed. I used the other pair to turn the white LED on and off and make the red LED blink when I turned off the white LED. The blue and white LEDs are connected with 1k resistors and the red LED is connected with the 330 resistor. After reading the lesson on digital inputs, I decided to follow the diagram in the lesson and not use the extra resisitors.

Materials Used:

1 Arduino
3 LED lights: Red, White and Blue
4 Buttons
1 USB connector
15 jumper wires
2 1k resistors
1 330 resistor









No comments:

Post a Comment

Note: Only a member of this blog may post a comment.