Introduction: 5 $ Google Home Mini- Home Automation
The main moto of this project is to develop a home automation system using an Node MCU board and Google home Mini. As technology is advancing so houses are also getting smarter. Modern houses are gradually shifting from conventional switches to centralized control system, involving remote controlled switches. Presently, conventional wall switches located in different parts of the house makes it difficult for the user to go near them to operate. Even more it becomes more difficult for the elderly or physically handicapped people to do so. Voice controlled home automation system provides a most modern solution with IOT Devices like Google home mini etc.
In order to achieve this, a relay module is interfaced to the Node MCU board at the receiver where loads are connected and google home mini will acts as your assistant . To operate any electrical appliance using Google home mini, you can simple say "Hey google, turn on kitchen light " .
Step 1: Things You Need
3. power supply (5v, 2 amp) you can make the connections like in the picture....
Step 2: Code and Instructions
Now its time to create Your applet using IFTTT:
1. Create an account with the http://ifttt.com/
2. Choose to create an Applet.
3. Click on the "+" icon like this
4. In the search window, type google assistant and select the google assistant trigger.like this
5. Choose the trigger with an option that a text trigger ingredient.like this
6.Set up the trigger as shown below.like this
*******Note in what do you want filed type "turn $ light" instead of turn $ socket.
7.Open an account with adafruit and choose to create a new feed like this
8.Headback to IFTTT and select an action for the set google assistant trigger. In the search window type adafruit and select the option that comes up.like this
9.Then select the option to send data to Adafruit.io like this
10.In the Feedname option, select the feedname that you just created in adafruit.io and set the data to save option as shown.like this
code you can simply download then upload to nodemcu. make sure that you have changed the code as per your wifi and adafruit credentials
Connect your circuit as per the circuit diagram which is attached in this step itself.
That's it Now sit back and relax..............
Now ask your google home mini to discover new devices, it will find your devices then start issuing voice caommands like "ok google, turn on fan"
All the best
Question 3 years ago
Is it possible to modify this project but ussing a Raspberry Pi instead of a NodeMCU?
Answer 3 years ago
yes , it is possible but you need python programming like this https://www.instructables.com/id/Google-Home-Raspberry-Pi-Power-Strip/
Question 3 years ago on Step 2
Hi, everything to step 10 is clear. What about the next step - "can simply download then upload to nodemcu" - for me this is new and is not "simply". It will be great if you update the instructions. Thank you in advance
Answer 3 years ago
"https://cdn.instructables.com/ORIG/F5Q/EFE8/JS0OPYLA/F5QEFE8JS0OPYLA.ino" download this file and upload to your nodemcu and change wifi credentials in the code then ask your google home mini to discover the devices that's it.
Reply 3 years ago
Thank you for the explanation. I am afraid that after these steps the whole process in my nodemcu is broken. Are you able to add to the manual instructions how to do it from the very beginning when you have a brand new nodemcu. There are few files at the beginning #include.. and they are missing. The project is very interesting and I will test many nodes in my home when I successfully setup them. Your help will be greatly appreciated
Reply 3 years ago
follow this link to know how to program your nodemcu with arduino IDE
Once you understand then download the libraries from