Introduction: Ultrasound Based Auto Corridor Lighting
With the motive of saving energy here is a simple Arduino project on Corridor Lighting using Sensors.
Step 1: Introduction
Arduino being a fairly new concept for me, I thought of implementing a very basic concept of Electrical Engineering - Corridor/Store Room Lighting, to better understand the working and characteristics of the components i was dealing with.With the help of Ultrasonic sensors the light turns on when a person in within a specific distance and automatically turns off once the person walks away,the whole point of it being saving energy.
Step 2: Components Needed
Arduino Uno Board
Ultrasonic sensor : HC-SR04 - 2
LED's- 2(any colour)
Resistors: 220ohm - 2
Step 3: Circuit Diagram
This is a circuit showing the connections of one LED with an ultrasonic sensor.
Basically,the HC-SR04 Ultrasonic Module has 4 pins, Ground, VCC, Trig and Echo. The Ground and the VCC pins of the module needs to be connected to the Ground and the 5 volts pins on the Arduino Board respectively and the trig and echo pins to any Digital I/O pin on the Arduino Board.
The second diagram depicts the standard procedure to connect an LED to the arduino via a resistor to limit the current.Here,i have used a 220 ohm resistor.A 1kohm one can also be used.
Step 4: Code
The Arduino Sketch for the above circuit is attached here.
Step 5: How It Actually Looks!
So this is how my first Arduino project looks like ,could be neater though!
We have a be nice policy.
Please be positive and constructive.