Ever wondered how wonderful it will be if you come up near your study table to look for something when your room lights are switched off and suddenly your table lamp glows up and gives off enough light for your search purpose. Wouldn't that be great?
Or think about having a night lamp which glows as long as you're working on your table and thereby saves you from the trouble of switching off lights when you get up.
My project exactly fills in the gap for such necessities.
Came up with this amazing idea when I found a broken tripod stand in my collection of junks and I always wanted an automatic object detector night lamp.
This uses a photoresistor to detect the light intensity of the room.
If lightintensityof the room <conditionedintensity
The ultrasonic sensor(HCSR04) starts detecting for objects by sending ultrasonic pulse signal.
Using
distance=speed*time
We find out the distance constantly.
if an object comes close to its field of vision, it lights up the RGB LED.
We also have programmed the code in such a way, that the light glows differently for objects at different distances.
Hope you will like the project.
Comments
Please log in or sign up to comment.