Have you ever wish that you control the intensity of the light glowing in your room light like we can control the speed of a fan, and even more better the lights can control itself automatically according to the light actually needed in the room because your room is already getting some light from the sun and other reflecting sources, In that case we want a light intensity in room that is actually required from the LED's .
If you want to Switch on and lights with full brightness and also to turn it off with your mobile device rather than go to switch board, This project covers that also.
We don’t know but we actually waste a lot of electricity in our home just because we don’t have a system which control the brightness of the lights in your room.
This Project Solves this problem.It will make your Lights Fully Automatic that adjust itself on its own and can be control with your voice command on your Mobile Device.
What are the benefits?This will not only make your room lights smarter but is very beneficial to SAVE! Electricity Consumption, and hence your money.
This mechanism is very suitable for street-light control and also the road lights which shows directions in night.HARDWARE CONNECTIONS
A.CONNECTING LED
1. Connect –ve terminal of LED to GND pin
of WiFi Module.
2. Take a 330k Ohm resistor
and wrap any terminal of resistor around +ve terminal (long one) of LED.
3. Connect the other terminal of LED to GPIO PIN 1
of WiFi Module.
B.CONNECTING LDR
1. Connect any terminal of LDR to 3.3V pin
of WiFi Module.
2. Connect other terminal of LDR to A0 pin
of WiFi Module.
3. Take a 10k Ohm Resistor and
connect any terminal to GND pin.
4. Connect other terminal of resistor to 'A0'
pin.
NOTE: Do all the connections on a breadboard without connecting to the Power Supply and cross-verify connection atleast once.
Here are some Images of the connectionCHECK THE CODE SECTION FOR COMPLETE CODE
Sample Python OutputSTEPS TO FOLLOW:-
1. Browse to https://ifttt.com/ and create a account.
2. Log in to your account.
3. Click onifThisThenThat
.
4. Click on +This
.
5. Search Google Assistant
and click on it.
6. Click on Say a Simple Phrase and in next window type the commands you will speak and the response text from google assistant to switch on and off the lights and create trigger.
7. Now Click on +That.
8. Search forWebhooks
and click on that.
2. On next window Click on Make a Web Request
.
3. In URL field paste https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/digitalWrite?pin=1&state=HIGH&deviceName=BOLT13819450.
Here, Replace the API& DEVICE-NAME with your Bolt CloudAPI_KEY AND YOUR BOLT MODULE NAME.
Pin
= “THE GPIO PIN with which your LED is connected”
State
=”HIGH”-to turn on LED & “LOW”-to turn off the LED
4. Method will be GET
to make a request.
5. Left the other fields blank and click on CREATE ACTION and FINISH.
6. Your applet is now ready to use.
NOTE: Create an applet on the account on which you will be going to use Google Assistant.
To make only Voice Controlled LED AUTOMATION Refer to this Project at Hackster.io.
https://www.hackster.io/nitro/5-minutes-4-steps-and-ok-google-turn-on-the-lights-cedc45GOOGLE ASSISTANT OUTPUT:
https://drive.google.com/open?id=1pG3tRD529Ra7HzXLVeuhgrWwAkm-hJpWCOMPLETE PROJECT PDF
https://drive.google.com/open?id=1r3KY4QsXqHrcsLvA2_xCGgcSErL5NMOX
Comments
Please log in or sign up to comment.