Simple project geared towards beginners, good for learning the basics of home automation, relays, and ultrasonic sensors. I made it because I frequently leave my room for extended periods of time, and I leave the lights on which makes my dad mad, but with this I no longer have to worry about that as it automatically shuts off :)
SchematicCut off the power to your room via the circuit breaker, and remove the light switch
Cut the wires off of the switch and crimp the wires to the switch pins of the relay (NO, or normally open)
Use foam tape to stick the battery, Arduino & ultrasonic sensor to the wall, and insulate the wires.
Make it look nice and test it. I stuck the relay back into the place where the switch was for safety reasons. Make sure to insulate the wires
It works!! :)
If you have any questions feel free to contact me, I'm happy to help.
Comments