It is a system that turns the lamp on whenever user takes the seat on the table (In front of the Ultrasonic sensor) or requests the google assistance to turn the Light On or Off. The desired location of the device is near the lamp on the table to scan the presence of the user with the ultrasonic sensor. The lamp can also be controlled remotely using the google assistance.
YT Link : https://youtube.com/shorts/cwBZe-hmfFc?feature=share
Hardware SetupYou can set up the circuit from the schematics.
The Arduino code linked below measures the distance using the HC SR04 Ultrasonic distance sensor and receives data from the bolt module to handle the lighting. UART communication has been established between the two modules.
IFTTT applets have been settled up as shown below to control the lights.
The two required applets be:
- Lights Off
- Lights On
After setting up the ITFFF applet, the google assistant was also settled. After uploading code to the Arduino Nano board you are ready to go.
ConclusionThe project comes in handy in day to day life as the user doesn’t have to bother about switching the lamp on or off as it is all self-controlled or automated using the HCSR04 ultrasonic sensor or using the google assistant. The project turns out to be a success.
Comments
Please log in or sign up to comment.