logo elektroda
logo elektroda
X
logo elektroda

How to set up two-way WiFi communication between ESP32 and ESP8266?

1302 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17570844
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #2 17571525
    khoam
    Level 42  
    Jarzabek666 wrote:
    I would like to ask, as a non-knowledgeable, whether such an ESP communication setup will be problem-free?
    .
    Generally it will work, whether there will be problems really depends on 1001 factors.

    Jarzabek666 wrote:
    ESP8266 will be connected to the display via UART
    .
    And what model of display is this specifically?

    Jarzabek666 wrote:
    Because I'm thinking that this would be a better solution for me than the LCD-Microprocessor I want to get rid of the number of cables.

    Well then you need to do some reading about I2C - it's just two cables plus power. You will be able to connect the display from I2C to the ESP32.
  • ADVERTISEMENT
  • #3 17571630
    Anonymous
    Level 1  
  • #4 17571743
    khoam
    Level 42  
    Jarzabek666 wrote:
    HC-12 SI4463
    .
    That's a good idea, but I don't know if it's possible to handle the accumulation of this display so directly over a "remote" UART.

    Jarzabek666 wrote:
    And so I read about tm esp-esp bridge is
    .
    Wifi just to communicate over the wall between two points? Well generally you can :) As for packet loss it all depends on the antennas in the ESP - from my experience I can say that without external antennas it looks rather poor.
  • #5 17572356
    ekrzychoooo
    Level 17  
    As for the ESP8266 malfunctioning, IMHO 99% of the problems are due to a bad power supply. Test on contact boards where the power has to "get through" e.g. 6 pins and each pin is e.g. 0.1R. In my experience if the stabiliser has the right capacity (see pdf) and is connected directly to the module pins then no problems. In addition I solder a LOWESR 470uF 8mohm capacitor on the modem and never any signs of malfunction.
  • ADVERTISEMENT
  • #6 17573836
    khoam
    Level 42  
    ekrzychoooo wrote:
    Test on contact boards where the power supply must "run through" e.g. 6 contacts and each contact is e.g. 0.1R.
    .
    So let's calculate. The ESP draws a maximum at 240 MHZ clocking of almost 70 mA. For simplicity's sake, let's assume 100 mA, which gives a voltage drop across 6 0.1R resistors connected in series equal to 0.06V. I'm afraid that the voltage fluctuation on the stabiliser is higher, regardless of its efficiency - this can all be measured, preferably with an oscilloscope :) .
  • ADVERTISEMENT
  • #7 17574046
    ekrzychoooo
    Level 17  
    khoam wrote:
    Well, let's count it. The ESP pulls a maximum at 240 MHZ clocking of almost 70ma.
    .
    70ma is average.
    I am not writing this to write just from practice.
    Here such an example:
    https://www.youtube.com/watch?v=wf_msvWv1jk
  • #8 17574079
    khoam
    Level 42  
    ekrzychoooo wrote:
    Here such an example:
    .
    On YT it's music I listen to, and when in doubt about technical matters I look first at Hardware Design Guidelines .

Topic summary

The discussion addresses establishing two-way WiFi communication between ESP32 and ESP8266 modules, specifically for transmitting sensor data from the ESP32 to an ESP8266-connected Nextion HMI display via UART. Concerns about packet loss in ESP-to-ESP WiFi communication were raised, with responses indicating that packet loss depends on multiple factors including antenna quality and power supply stability. Proper power supply design is critical for ESP8266 reliability, recommending direct connection of a suitable voltage regulator and a low ESR capacitor (e.g., 470µF, 8mΩ) near the module to prevent malfunctions. Alternatives such as I2C for display connection or HC-12 SI4463 modules for wireless communication were mentioned. The feasibility of using WiFi to emulate RS (serial) communication over a wall was acknowledged but noted to depend on environmental conditions and hardware setup.
Summary generated by the language model.
ADVERTISEMENT