logo elektroda
logo elektroda
X
logo elektroda

[Solved] Wemos D1 mini does not connect to WiFi - empty serial after uploading program

sebekk95 1356 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17960646
    sebekk95
    Level 7  
    Hello, I have recently owned a new Wemos D1 mini and I have the following problem: after connecting and uploading the program that is supposed to connect to the network, an empty serial monitor pops up. Previously there were two instances where the module connected to the network. I have tried uploading firmware but to no avail. Is the problem a badly written program code or rather the firmware? How do the AT commands relate to this? I would ask for step by step instructions.
    I would just like to add that a sample program like Blink works without any problem.
  • ADVERTISEMENT
  • #2 17961295
    kaczakat
    Level 34  
    Do you do a reset with the monitor window open and nothing appears? You can change the speed in the monitor to 74400 and try again with reset.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 17961445
    sebekk95
    Level 7  
    kaczakat wrote:
    Do you do a reset with the monitor window open and nothing appears? You can change the speed in the monitor to 74400 and retry with reset.


    I AM A RETARD ! actually just pressed reset on esp, the serial monitor shows "Wifi connected". Thanks for your help. And another question: if I connect the reset to the 5V or 3V3 pin through a resistor of e.g. 10k will the circuit perform the reset by itself?
  • #4 17961472
    kaczakat
    Level 34  
    Reset is a short to GND, in normal operation it is just connected via a resistor to 3.3V. The ESP shouldn't be connected to 5V, it harms it. If you want to do a reset to it, all you have to do is enter the appropriate command in the code, and sometimes it will do even if you don't want it to, e.g. by executing a "while(1);" loop.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 17961943
    sebekk95
    Level 7  
    kaczakat wrote:
    Reset is a short to GND, in normal operation it is just connected via a resistor to 3.3V. The ESP should not be connected to 5V, it harms it. If you want to do a reset to it, all you have to do is enter the appropriate command in the code, and sometimes it will do even if you don't want it to, e.g. by executing the "while(1);" loop.


    Thanks a lot for the hints, they are very helpful. One more really last question a bit silly but I want to make sure: is it possible in Arduino IDE or other environment to upload one program from two different boards connected to different USB ports?
  • ADVERTISEMENT
  • #6 17962284
    kaczakat
    Level 34  
    If you have the Arduino IDE running twice (and not two projects open in one program), then in both you can have different COM ports selected, different boards, even different board families, modify,compile and upload code for both at the same time, and in these different COM ports (two or more, as far as screens and computer memory allow) observe communication at the same time. Of course, as far as I understood from/to.
    Helpful post? Buy me a coffee.
  • #7 18200453
    sebekk95
    Level 7  
    I have rewritten the actual source code of the programme. Thank you for your help.

Topic summary

The discussion revolves around a user experiencing connectivity issues with a Wemos D1 mini after uploading a program intended to connect to WiFi, resulting in an empty serial monitor. Initial troubleshooting included resetting the device and adjusting the serial monitor's baud rate, which eventually led to a successful connection. Further inquiries addressed the possibility of automating resets via a resistor connection and the ability to upload programs to multiple boards simultaneously using the Arduino IDE. The responses provided technical insights into reset mechanisms and the operation of the Arduino IDE with multiple COM ports.
Summary generated by the language model.
ADVERTISEMENT