Replies: 4 comments 8 replies
-
No problem here with these tests using a Lolin ESP32S3 and MicroPython v1.25.0-preview.118 and newer. Please try a recent version of MicroPython. |
Beta Was this translation helpful? Give feedback.
-
Try replacing: wlan.active(False)
time.sleep(0.5)
wlan.active(True)
time.sleep(0.5) Sorts the problem on the ESP32. I haven't got any ESP32S3. |
Beta Was this translation helpful? Give feedback.
-
For me it still looks like a power supply issue. Did you try to run the device from a USB power supply, capable to source at least 1A. A thing of your code: Do not mount the SD card to "/". Mount it to a path like "/sd". Mounting to "/" interferes with the internal file system. |
Beta Was this translation helpful? Give feedback.
-
Hi @davefes and @robert-hh , It seems to be mostly working now. @davefes: I tried your suggested code and this didn't work so i mucked around with the length of the delays however this also didn't work. Then i tried increasing the length of the delay between retries if it initially didn't connect:
And this seemed to do the trick. So the code i am current using to track things when not connected PC is:
Total delay is 3s which seems to work. Can you explain to me why this seems to work? Needs time between connection failures to reset things?
Ahh that may explain a couple of things. Currently all log files are written to '/' on the SD card, mainly because the original program that was written in C++ was done that way and it worked fine, so i will make the change and see what happens. I would like to thank you both very much for your help with this. I wont mark it as solved just yet till i can do some testing of the whole system before it is deployed in the field but things are now look very promising. Quick unrelated question: what do you guys use as your preferred IDE for micropython development? There does seem to be a few options. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been having issues with time.sleep() and time.tick_ms() on a Lolin ESP 32S3 pro device from Wemos. I am using Thonny.
Some examples.
This works as it should:
and gives the correct result:
However if i use this:
this only gives:
Boo
and then stalls.
Similarly.
This works as it should:
giving:
However this:
only gives:
660647
and then stalls.
I have tried the same examples on another Lolin ESP32S3 Pro board with the same problems.
I have also tried the same examples on a standard ESP32-WROOM-32 device however this worked fine with no issues indicating that the issue is with the Lolin S3 Pro device or maybe its setup. These boards come pre-loaded with MicroPython v1.23.0-220.g6927639898 on 2024-07-11.
Any help to sort out what is going on here would be much appreciated.
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions