Excellent sketch but when I connect the power the relay energizes when it should remain off but instead it energizes without command. If I have to turn on a light bulb, an opposite action is necessary: the relay must be turned off. not energized when connecting the ESP-01 power supply.
It does work . But goes to sleep and doesnt repond after few minutes , Pressing the button doesnt do anything ., To correct , it has to be reset after every few minutes. Can you guide whats going on here ? THanks a lot
When suddenly the electric power supply goes out and at that time the status of the relay module is ON. Then the electric power supply turns ON again, does the status of the relay module remain ON?
@@amateamchannel3687, I think you cant. If you want, you must store the status in something, in additional relay, pararel with main relay and connect output relay as input. Esp will check the input as relay status in initial start up. And you must use another esp device like esp8266
This video explain control a ESP device via its webserver page, so you can add more relays in 1 device, you can use ESP32 or ESP8266 with more GPIO. If you mean control more devices with 1 page, you can use node-red dashboard, it can connect more device an out control on a dashboard page
In the required materials should the Arduino IDE be listed? I have downloaded Arduino IDE for linux. ESP_01 does not show up as a Board. When the USB programmer is pluged in the Serial port shows up but ESP_01 is not one of the board types on that port. Is this video suitable for newbies to the IDE?
You must Install the Boards in Arduino IDE In Preference -> Additional Boards Manager URLs, add: arduino.esp8266.com/stable/package_esp8266com_index.json Or you can googling it Thank you
Yes, thank you for the fast reply, at first I was trying to click on the links to download them and that did not work, but then I saw a download button in the upper right corner and that worked, thank you. 🙂@@YaserAliHusen
Worked like a charm, just that i had to change the baud rate to 9600 for the serial monitor
Excelente videotutorial, depsues de medio año logre hacer funcionar el dispositivo, gras por compartir sus conocimientos, saludos.
Worked perfect, many thanks.
Thank you and thanks for the link to the script and HTML - most useful. :)
so use-full. now days 2023 and esp01 still alive! willl do something!!!
Thank you
Super Thank for easy explanation
FUNCIONA!! . El mejor sobre el ESP8266 01S.
gracias, no olvides ver otros videos y suscribirte a mi canal
Excellent sketch but when I connect the power the relay energizes when it should remain off but instead it energizes without command.
If I have to turn on a light bulb, an opposite action is necessary: the relay must be turned off. not energized when connecting the ESP-01 power supply.
You use relay which it will ON when receive Low signal, right?
So, in code, in setup, turn off the relay first by write HIGH the relay
Thank you, It works really well.
You're welcome!
Excellent videotutorial, thanks
Very good, I have tried it and it is feasible, but may I ask if the IP address will change after a period of time?
I have not ever try for long period
If connected, maybe the ip will not change
Nice video, thanks :)
It does work . But goes to sleep and doesnt repond after few minutes , Pressing the button doesnt do anything ., To correct , it has to be reset after every few minutes. Can you guide whats going on here ? THanks a lot
Update : Works better with Baud Rate of 9600. Stays connected. Cheked for half hour . Should changing the Baud rate make a difference ?
When suddenly the electric power supply goes out and at that time the status of the relay module is ON. Then the electric power supply turns ON again, does the status of the relay module remain ON?
I set, initial status is OFF, so when power turn on, relay become OFF
@@YaserAliHusen
is it possible to set the initial status to the last status? or must be added battery back up memory?
@@amateamchannel3687, I think you cant.
If you want, you must store the status in something, in additional relay, pararel with main relay and connect output relay as input.
Esp will check the input as relay status in initial start up.
And you must use another esp device like esp8266
@@YaserAliHusen Terima kasih for the information
Yasser sorry but initial power is at on, so when power turns on relay is on. How to reverse that in the code?? thanks @@YaserAliHusen
Thanks Yaser, much appreciated, could I ask if you could suggest how to change the code from a switch to a momentary button , thanks
Sorry I have not ever try it.
Do you mean, we must hold the button to turn on the relay, when we release, relay will be turned off, right?
Super Thanks
Thanks for the video, very interesting, but can I control multiple separate relays, one in each room to turn on off?
This video explain control a ESP device via its webserver page, so you can add more relays in 1 device, you can use ESP32 or ESP8266 with more GPIO.
If you mean control more devices with 1 page, you can use node-red dashboard, it can connect more device an out control on a dashboard page
You can use the ESP8266 Relay x 4 Module to control 4 devices.
Thanks for your reply, but I would like to use 5 single relays one in each room to turn on 5 lights but from one web page @@YaserAliHusen
Super Thanks !!!
a quien no pueda descargar el archivo, use otro explorador. excelente video
In the required materials should the Arduino IDE be listed? I have downloaded Arduino IDE for linux. ESP_01 does not show up as a Board. When the USB programmer is pluged in the Serial port shows up but ESP_01 is not one of the board types on that port. Is this video suitable for newbies to the IDE?
You must Install the Boards in Arduino IDE
In Preference -> Additional Boards Manager URLs, add: arduino.esp8266.com/stable/package_esp8266com_index.json
Or you can googling it
Thank you
Hi, thanks for nice video. Can I connect to esp01 which is on home wifi from my smartphone which is on other network maybe in some other region?
if use web server, we cant connect.
But we can use MQTT communication for long distance over the world connection
It connect with wifi after uploading the program. But when I connect with relay module it cannot connect with wifi.. please reply
Please follow the steps, others could connect it well
After completed uploading and error .
Error : fail to connect to ESP8266 : timeout waiting for packet header
Disconnect the cable,
Follow the steps
never worked for me
where to buy the part where u connect the power to power on the relay ?
You can find Micro USB to Dip adapter, there are similar with this part
If i am doing many pieces like this will it have seperate ip address
Yes, 1 ESP has unique IP address
how do you control it with an Iphone??
Access it from your iphone browser
@@YaserAliHusen I follow the steps but It connect to wifi, but the IP can't be oppened. Why? Did you set the router to port forwarding?
Can you please re upload the code.it is not available in drive
Only html code has
There is INO file: TEST_SERVER_ESP01_Rev1.ino
You can put it into foldee with same name
Did you download zip file?
where to find ESP8266 wifi file ?
thans. but the link not working😢
You can follow the steps in video,
Most of comments said they succesful tried this tutorial
Where i get app?
You just download the ino file
That was esp01s
cannot download code?
I provide the link at video description, did you download it?
Yes, thank you for the fast reply, at first I was trying to click on the links to download them and that did not work, but then I saw a download button in the upper right corner and that worked, thank you. 🙂@@YaserAliHusen
That is why I cannot upload code
Please follow the steps, especially about additional cable jumper