Comments on: MicroPython: Relay Module with ESP32/ESP8266 (Guide + Web Server) https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 06 Jan 2023 04:35:57 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Elijah https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-808310 Fri, 06 Jan 2023 04:35:57 +0000 https://randomnerdtutorials.com/?p=92436#comment-808310 Hi how would i implement this to be a momentary switch instead of a toggle switch.
ive tried various methods but i am still quite new to coding.

]]>
By: Muhammad F. https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-732700 Sat, 19 Mar 2022 20:14:56 +0000 https://randomnerdtutorials.com/?p=92436#comment-732700 Thanks for this tutorial. I am very new in microelectronics. Was looking for first project to do like some home automation. I have setup my raspberry pi pico and esp8266. That are accessing to my other server and storing updates, tested with temperature and any random strings.

After reading your tutorial i came to know that socket is also possible and seems better then loop opening of urls. But….
My question is: is it ok to keep loading webpage in interval of 5 seconds where the page containing some JSON value {motor:0, bulb:1, fan:0, curtains:1} etc. and it will be executed 4 relays accordingly.

Or socket connection is important because it is quick?

Please suggest. Thanks

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-719093 Sat, 15 Jan 2022 21:52:43 +0000 https://randomnerdtutorials.com/?p=92436#comment-719093 In reply to John Kennedy.

Hi.
In our “Build Web Servers” eBook we cover the basics of HTML and CSS. But that eBook doesn’t cover MicroPython.
To get started quickly with the basics, check the w3schools website and then explore from there.
Regards,
Sara

]]>
By: John Kennedy https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-718926 Sat, 15 Jan 2022 05:03:35 +0000 https://randomnerdtutorials.com/?p=92436#comment-718926 Hi, I’ve read several of your MicroPython webserver tutorials and your explainations are great, and very helpful. However I’m struggling with HTML/CSS, can you reccomend any helpful books or other resources for learning more about HTML/CSS?
Good work and thanks again for a great web site!
John

]]>
By: Lahcene Akrour https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-663069 Fri, 20 Aug 2021 18:37:18 +0000 https://randomnerdtutorials.com/?p=92436#comment-663069 Hi,
I would like to build a project using this guide but I need first know if the relay module showed could withstand a high power, say a 220 V mains, consuming 10 A (2.2 kW).
I don’t have the datasheet of the relay.
Many thanks.
Lahcene

]]>
By: Jason https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-505803 Tue, 13 Oct 2020 17:38:32 +0000 https://randomnerdtutorials.com/?p=92436#comment-505803 This is great, but even better would be a project using those boards that include the relays plus an ESP-01S board that attaches directly. Those are trickier because they have a serial connection to the relays but it is a lot nicer to have that single board than wiring the two boards together as you have here.

]]>
By: Mihael https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-444168 Tue, 07 Apr 2020 18:40:22 +0000 https://randomnerdtutorials.com/?p=92436#comment-444168 Hi, I made a similar project with ESP-01 and 1-channel relay. The relay is connected to GPIO0, have boot.py and main.py programs. It works ok when I connect the relay after the ESP was booted. But by finished and connected device, every time after connecting to the power network, the relay is high, and main.py was avoided.
It is probably hardware problem, does it help if I put resistor or capacitor to GPIO0? Or is ESP8266 bad choice for such a device?

]]>
By: Brian Hambleton https://randomnerdtutorials.com/micropython-relay-module-esp32-esp8266/#comment-432600 Wed, 26 Feb 2020 19:34:17 +0000 https://randomnerdtutorials.com/?p=92436#comment-432600 I am planning a similar system but with 8 relays. I have an 8 relay card physically interfaced to an ESP32, via Port ‘A’ on a MCP23017 I/O Expander. I would like to use Port ‘B’ of the MCP23017 for local control of the relays. Suggestions on how best to mod the code here to accommodate my setup? Thanks.

]]>