Level of hardness: easy
Woop Woop! *dances* Yet another Arduino project…. YAY! Soooo excited!!
Okay, serious game face now.
Well, since I’m done confusing you with my dance moves and shouting of joy, now it’s time to do a simple Arduino project for lights.
What you will be needing are (cool):
- 1x Arduino
- 1x Breadboard
- 1x USB Cable Type A/B
- 1x Button
- 1x 10k-Ohm Resistor
- 3x 220 Ohm Resistor
- 3x LED (A.K.A light-emitting diode, A.K.A miniature light bulb-ish)
- 6x Jumper Wires
Once you’ve gathered all your materials, let’s begin.
Before we start, a few things to keep in mind:
In the LED:
The longer leg === Anode (+)
The shorter leg === Cathode (-)
For the resistors:
They are here to help. How does it do this? Its job is reducing the electrical flows, adjust signal levels and much more. It helps in making the sound of a buzzer less cranky (or annoying). If you don’t have one, your circuit will still work but your LED will become hotter at times.
Step 1: LET’S. DO. THIS.
Let’s start with the basics, and what I want you to do is place all your LED’s on your breadboard, first. If you want to copy exactly the photo above then you should copy this format:
In my case, this is the red one.
Cathode (-, shorter side) —> E6 (on the breadboard)
Anode (+, longer side) —> E7
Cathode (-) —> E11
Anode (+) —> E12
Last but not least…
Cathode (-) —> E15
Anode (+) —> E16
Hope you got that. Hey! These letters and number kinda remind me of chess. Hehheh. BTW, you could put you LEDs in your choice….
Step 2: I Can’t Resist(ors) Youuu
Let’s add in our resistors and this step is very simple. Just grab your 220 Ohm resistors and place them each on the each of the LED Anode’s lane. So, right in front of the leg. Follow? Well, specifics are:
If you look at the picture above (which you really should), the redder side of the 220-ohm resistor leg is in the lane of the LED. So, you will just have to put the redder side of your resistor in the same lane of the anode (+, longer side) of the LEDs. Place the other leg of the resistor on the GND lane, which is the lane with the – on the top. Do this with all the LEDs.
1st 220-ohm resistor
Redder side: b7
1st 220-ohm resistor
Redder side: b12
1st 220-ohm resistor
Redder side: b16
Once you are done with that, you will also have to put your 10k-Ohm resistor on b24.
Easy? Hope so. We are half way, guys! Don’t stop now. ^_^
Step 3: Don’t Press the Button
Time to add your button! All you have to do is place it in front of your 10k-Ohm resistor. Just make sure that they are in the same lane, kay?
Step 4: Let’s Connect Everything
Hope step 3 didn’t give you much of a headache.
All you will be using here are you jumper wires. Since we will be using six wires, let’s start putting them into our breadboard and Arduino.
1st Jumper Wire:
One side should be on the top of the positive lane on the breadboard and the other side of this wire should be connected to the 5v on the Arduino.
2nd Jumper Wire:
One side should be on the negative lane of the breadboard while the other side of the wire should be placed into the GND (ground) on the Arduino.
3rd, 4rth, 5th Jumper Wire:
Each should be connected to the cathode (-, shorter side) of the Arduino. Now, look up at the picture for reference, you’ll need it. For the first LED, the red one, connect the other end of the wire to the -5 on the Arduino. For the second LED, the blue one, connect the other end of the wire to the 4 on the Arduino. Connect the last jumper wire for the third LED to the -3 on the Arduino.
6th wire…. the last one:
Just connect one of the sides of the jumper wire to one of vacant legs of the switch, most likely just beside the resistor, and connect the other side of the wire to the number 2 on the Arduino.
Check the photo above if you need any reference.
Finally, you’ve come to the end of the project. BTW, this is called the Spaceship Interface. Yup. You’ve probably glanced up at the photo a few times to find the Spaceship there. Truth is, I lost the cardboard cover that had a spaceship on it.
Anyways, hope you enjoyed! And, hope you got to make your project work! All you have to do left is plug it to your computer and write your code to light it up!