logo elektroda
logo elektroda
X
logo elektroda

ESP32 does not connect to WiFi - USB power, interference, faulty board?

Przybyłek 2445 12
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17998325
    Przybyłek
    Level 14  
    I have an interesting case, the circuit is soldered so it is difficult to swap ESP.


    It sees the network and does not want to connect to it, ESP not on the board works without a problem. Is it something interference from outside(other chips)? - I supply power from USB
    Is it a faulty board?
    Or any other idea?
    Scanning the wifi networks it shows me both but doesn't connect. Sometimes after a day of idling it will connect 3-8 times and then it won't connect anymore. The program only connects to the wifi with a static IP.
  • ADVERTISEMENT
  • #2 17998359
    piterek-23
    Level 33  
    It would be best if you showed a diagram of your board.
  • ADVERTISEMENT
  • #3 17998613
    Anonymous
    Level 1  
  • #4 17998656
    Przybyłek
    Level 14  
    Code: C / C++
    Log in, to see the code
    .
  • #5 17998673
    Anonymous
    Level 1  
  • #6 17998731
    Przybyłek
    Level 14  
    I don't even initiate anymore, I just upload an example i.e. download after DHCP. I think I have 2 damaged ESP modules, I mean the processor. The one as written connects once in 10 times. Always the first one when it is cold. The other one does not program itself, it sees it but does not respond :/ The other two work. These are modules, some kind of WEMOS clones. Only that I have to change them to see if it is the influence of some periphery.
    As a curiosity, the device will control the greenhouse (watering, irrigation, lighting, ventilation) and the watering of the vegetable garden.
  • ADVERTISEMENT
  • #7 17998747
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #8 17998944
    kaczakat
    Level 34  
    Problems with WIFI operation are usually power supply related, sometimes replacing the cable with a shorter one, adding a capacitor at the power pin helps. The boards are made some better, some worse, sometimes you have to run a soldering iron over the pins. Admittedly I associate Wemos mainly with ESP8266, but I actually found something similar on Aliexpress with ESP32, only the capacitors on this module look very poor compared to e.g. DOIT Devkit V1.
    Helpful post? Buy me a coffee.
  • #9 17998956
    Anonymous
    Level 1  
  • #12 18002847
    Anonymous
    Level 1  
  • #13 18003054
    Anonymous
    Level 1  

Topic summary

The discussion revolves around an ESP32 module that intermittently fails to connect to WiFi despite detecting the network. The user suspects potential issues such as interference from other components, power supply instability from USB, or a faulty board. Responses suggest checking the board's wiring and power source, using a more stable 5V supply, and examining the antenna's performance. The user mentions using WEMOS clones of the ESP32, which may have quality variations. Suggestions include implementing a retry mechanism in the code for WiFi connection attempts and considering the differences between various ESP32 modules. The conversation highlights the importance of proper initialization and configuration in resolving connectivity issues.
Summary generated by the language model.
ADVERTISEMENT