Materials required:
1. Node MCU
2. 4 channel relay module
3. Female jumper wires
4. Adopter (for power supply).
Procedure:
1.Install arduino ide software link. If your MCU board is china board then install drivers as given on your board.
Go to file >preferences>additional board manager urls copy and paste the url "http://arduino.esp8266.com/stable/package_esp8266com_index.json" in the url box.
2.Download MQTT librery zip file.link
3.Go to the website adafruit.com link and ragister with a google account.after ragistration create dashboard.
4.After creating dashboard copy username and aio key and replace it into the program given below.
5.Create trigger in the IFTTT server link after sign in with the same google account.
6. Copy And Paste Program link.Upload your program in the node mcu after connecting it to your pc.(check tools>port>com8 ,if com 8 is not there your board in not connected).
0 Comments