L.O.A.S.H’s Guide to (nearly) everything: Lights Everywhere Ft. Arduino

screen-shot-2016-11-22-at-4-04-58-pm

Level of hardness: easy

Woop Woop! *dances* Yet another Arduino project…. YAY! Soooo excited!!

Okay, serious game face now.

… heh

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:

1st LED:

In my case, this is the red one.

Cathode (-, shorter side) —> E6 (on the breadboard)

Anode (+, longer side) —> E7

2nd LED:

Cathode (-) —> E11

Anode (+) —> E12

3rd LED:

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

Cheesy.

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:

Screen Shot 2017-03-11 at 19.34.10

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 Screen Shot 2017-03-13 at 21.58.20.pngwire 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 shouldScreen Shot 2017-03-13 at 21.58.25.png 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.

YAY.

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!

Your truly,

L.O.A.S.H

Advertisements