logo elektroda
logo elektroda
X
logo elektroda

Best ESP Board for Relay Module Control with WiFi and Compact Size?

Kiboooo 2004 13
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17814024
    Kiboooo
    Level 3  
    I need an esp board however I don't know which one to choose. I will only use it to control the relay module and connect via wifi to the esp32 board. It also has to be relatively as small as possible. Does anyone have an idea which module would be suitable for this?
  • ADVERTISEMENT
  • #2 17814043
    rafels
    Level 25  
    Probably the best would be the ESP12E or F. They have 4MB of flash, a lot of software goes in and they are easily accessible. It is so small that there is no room for goldpins.
    I would avoid the ESP01 modules as they have 512kB and very little Gpio output and are similarly priced to the above. Supposedly 512kB should be enough to control relays, but it varies, new functions and ideas come along. The system itself takes up most of this flash.
    However, these are bare modules, requiring power and an external programmer.

    Also consider how much Gpio you need and evaluate the modules from that side.

    If you are looking for a small devboard then I recommend the Wemos D1 mini. It has power and programming via microUSB and is not much bigger than the bare modules.
  • #3 17814064
    Kiboooo
    Level 3  
    I was referring more to something like the arduino pro mini, only with wifi.
  • ADVERTISEMENT
  • #4 17814096
    rafels
    Level 25  
    On Wemos, the control solution would be limited to adding a transistor to the Gpio controlling the relays. The code would take a few dozen lines of Lua code on the NodeMCU software. Here examples http://www.nodemcu.com/index_en.html
    And that's it.
    But you can always try around attaching an additional AVR to the 32 bit mcu.
  • ADVERTISEMENT
  • #6 17814583
    khoam
    Level 42  
    If you want to use the ESP8266 as an executive module for a remote relay over WiFi, there are even ready-made modules for this - they use the ESP-01S.

    Best ESP Board for Relay Module Control with WiFi and Compact Size? .
  • ADVERTISEMENT
  • #7 17814595
    Kiboooo
    Level 3  
    And how do you programme it then?
  • #8 17814627
    khoam
    Level 42  
    The ESP-01 can be extracted from this module and programmed using a suitable programmer for this - the subject of the programmer for the ESP-01 is covered in this thread .
  • #10 17814861
    rafels
    Level 25  
    This is where you need to learn programming to achieve full flexibility. I don't know if you have any experience with this, but since you are writing about ESP32 you probably already know something. You can program either in C in the Arduino environment or in Lua scripts on the NodeMCU firmware.

    If you want to do it without programming, then read about the EasyESP firmware on the internet.
  • #11 17814892
    Kiboooo
    Level 3  
    I will definitely be programming on the arduino platform, as I already have that one in my little finger.
  • #12 17814925
    rafels
    Level 25  
    Except that there is a completely different set of libraries for ESP. Actually, only the editor is the same.
  • #13 17814938
    Kiboooo
    Level 3  
    And where can I find these libraries?

Topic summary

The discussion centers around selecting a suitable ESP board for controlling a relay module via WiFi, with an emphasis on compact size. Recommendations include the ESP12E or ESP12F for their 4MB flash memory and GPIO availability, while the ESP01 is discouraged due to its limited 512kB memory and GPIO outputs. The Wemos D1 Mini is suggested as a small development board with microUSB power and programming capabilities. For those seeking a ready-made solution, the ESP-01S is mentioned as a viable option. Programming can be done using the Arduino IDE or NodeMCU firmware, with resources provided for library access and setup. The conversation also touches on the need for additional components like transistors for relay control and the importance of understanding programming for flexibility in control.
Summary generated by the language model.
ADVERTISEMENT