Arduino Leonardo- Choicer

by hopechennn in Circuits > Arduino

64 Views, 0 Favorites, 0 Comments

Arduino Leonardo- Choicer

IMG_0611.jpeg
IMG_0617.jpeg

This product is designed to decide which one of the roommates will be the one to get up and turn of the light when both of them are already lying in bed. This design is inspired by me when I and my brother shares a room. We always argue about who is going to get up and turn off the light every night. Then I realize that many cohabitants encounter the same problem.

Preparation

IMG_0618.jpeg

This instructable will show you how to hook up LEDs to roll a dice. Also, this project does not require additional components than the Arduino Leonardo set.

This is what you will need for this project:

  • Arduino Leonardo x1
  • breadboard x1
  • any color of led you like x2
  • 220 or 330 Resistor (brown black brown gold) x2
  • Precision resistance (brown red black black brown) x2
  • Photoresistance x2
  • some wires for the breadboard
  • Alligator clips (optional)

Setting Up Circuits -1

Screen Shot 2021-05-17 at 8.42.39 PM.png

Set up the first circuit in order for the first photoresistance to work. Place the components like the picture above.

Setting Up Circuits-2

Screen Shot 2021-05-17 at 8.42.22 PM.png

Set up the first circuit in order for the second photoresistance to work. Place the components like the picture above.

Setting Up Circuits - 3

Screen Shot 2021-05-17 at 8.41.49 PM.png

Set up the first circuit in order for the first LED light to work. Place the components like the picture above.

Setting Up Circuits - 4

Screen Shot 2021-05-17 at 8.41.12 PM.png

Set up the first circuit in order for the second LED light to work. Place the components like the picture above.

Apply the Codes

Apply the codes to make it work.

This is my code: https://create.arduino.cc/editor/hopechnnnnnnnnn/d...

Add Outer Case

After you applied the code and added an outer case to make it more externally aesthetic, it should work like the project in the video down below.