![]() ![]() ![]() We hope that you learn the working of the project and now try to make it on your own. String request = client.readStringUntil('\r') Ĭlient.println("Content-Type: text/html") Serial.print(" Serial.print(WiFi.localIP()) //Gets the WiFi shield's IP address and Print the IP address of serial monitor Serial.print("Use this URL to connect: ") WiFiServer server(80) // Creates a server that listens for incoming connections on the specified port, here in this case port is 80. Int R1=D0 // GPIO13 or for NodeMCU you can directly write D7 Service Set Identifier is the name of your WIFIĬonst char* password = "asdfghjkl" // Your Wifi password, in case you have open network comment the whole statement. TECHATRONIC.COMĬonst char* ssid = "DESKTOP" // SSID i.e. NODEMCU SMART TIMER HOW TOClick here to learn how to add a zip library to the Arduino IDE software. Before uploading please install library to the IDE software. NOTE: Please upload the code given below to the NodeMCU. Now connect the IN-1, IN-2, IN-3, and IN-4 pins of the relay module with the digital-0, digital-1, digital-2, and digital-3 pins of the NodeMCU. ![]() For the last relay connect a DC fan with a 9-volts battery connected to it as shown in the diagram. Attach the other wire of the AC supply to the other pin of all three relay modules. Repeat this connection for the second and third relay modules. Join one wire of the AC bulb with the 220-volts AC supply and the other to a pin of the first relay module. Connect the VCC pin of the relay module with the VIN pin of the NodeMCU and the GND pin of the relay module with the GND pin of the NodeMCU. Please take proper safety while working with AC current. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |