In this instructable, I will show you how to make a sensor that will light up more lights the closer you are to it.

Arduino UNO
Arduino ultrasonic ping distance sensor
3 green LED's
2 yellow LED's
1 Red LED
6 220 ohm Resistors
USB Cable to connect Arduino
Wires to connect everything

Step 1: Placing the Electronics

This step will show you where and how to place the electronics on the breadboard

6-220 ohm resistors
3 green LED's
2 yellow LED's
1 red LED
Ultrasonic ping distance sensor

First, place the distance sensor on one end of the breadboard so that none of the pins are connected (usually parallel to the outside rails).
Then place the LED's in the order from Left to Right : Green, Green, Green, Yellow, Yellow, Red
Each LED should have the long lead facing the same way. Mine are on the left side.
Next, connect a resistor to the short leg of each LED and to the inside rail of the breadboard.
Once that is done, move on to the next step.
<p>i pluged white led strip in instead of led bubbles but the led strip is not lighting, i don't understand why ? could u help m e?</p>
<p>Very great write up and very easy to follow. I used this to help teach me the basics of what I needed to do for a final project in one of my college classes. Thanks</p>
<p>i am glad to make this</p>

About This Instructable




Bio: I like making things in my free time
More by jreeve17:How to make a servo leg How to make A light-up distance sensor How  to Make a Tow for Your PVC Pipe Boat Cradle 
Add instructable to: