Lighting Up LEDs With Switches

by Lola Wang in Circuits > Arduino

348 Views, 0 Favorites, 0 Comments

Lighting Up LEDs With Switches

IMG_4631.jpg

Light up the LEDs using Switches!

The Original Work: https://www.instructables.com/Lighting-Up-and-LED...

I have changed plenty of parts from the original work.

Supplies

3 Switches

3 LED Light Bulbs

A Breadboard

An Arduino

Several Wires

A Box

Connect and Build Up the Switches and LEDs

IMG_4505.JPG

Connect the switches and the LEDs on the breadboard like the picture.

Three groups of switches and LEDs are connected in the same way.

Make the switches and LEDs longer so that they can work after wrapping with a box.

What I've changed: 1 group of a switch and LED --> 3 groups (3 different color instead of 1)

Coding

螢幕快照 2020-11-23 下午11.26.28.png
螢幕快照 2020-11-23 下午11.26.55.png

Program the code following the website in the link:

https://create.arduino.cc/editor/lolawang/b24b4938...

What I've changed: add codes for 2 more switches and LEDs

Wrap It Up and Working!

Arduino-Lighting up LEDs with Switches

Make it look nicer by wrapping up with a box.

Fixed the switches and the LEDs on the box.

At last, MAKE IT WORK!