Virtual ESP32 Simulator on MicroPython - Feedback please

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
sharepksn
Posts: 3
Joined: Thu Oct 14, 2021 2:11 pm

Virtual ESP32 Simulator on MicroPython - Feedback please

Post by sharepksn » Thu Oct 14, 2021 2:33 pm

Hello All,

I hope all are doing good and fine.

I am writing this to share about a new ESP32 Simulator. Developers at Wokwi have developed an ESP32 simulator. The Wokwi is a free online simulator for electronics, and it runs in your browser. You can simulate code that communicates with 3rd-party sensors, display modules, LEDs and many other common parts. There's also [https://github.com/wokwi/wokwi-features/issues/202]initial support for WiFi simulation[/url], and the developers are working on extending it to support connecting to any host on the internet (e.g. HTTPS/MQTT)

Please forgive if the format of the write-up is not up to to the mark.
Miropython examples

[https://wokwi.com/arduino/projects/305568836183130690]SSD1306 Example[/url]

[https://wokwi.com/arduino/projects/305569065545499202]NeoPixels[/url]

[https://wokwi.com/arduino/projects/305570169692881473]WiFi Scanning[/url]

My request is to try it out. I will be glad to hear all of your feedback. This is a free tool and we want it to make it more user friendly and helpful for all the developers like you!

Thank you!

Lixas
Posts: 10
Joined: Fri Aug 21, 2020 9:09 am

Re: Virtual ESP32 Simulator on MicroPython - Feedback please

Post by Lixas » Tue Oct 19, 2021 4:43 pm

I gave it a spin. It looks like it's most complete micropython simulator available. It's really impressive solution!!
My target platform is ESP32, and lightsleep / deepsleep functionality just does not work as expected. Simulation hangs on those commands.

I saw you support ili9341, so wish to see LVGL support and touchscreen support for that screen. After that added- it would be my lab to work on my most projects, that do not require BLE or something similar.

sharepksn
Posts: 3
Joined: Thu Oct 14, 2021 2:11 pm

Re: Virtual ESP32 Simulator on MicroPython - Feedback please

Post by sharepksn » Wed Oct 20, 2021 5:12 pm

Dear Lixas,

Thanks for the reply. The ESP32 simulator is for sure under development. I appreciate your valuable time and feedback
My target platform is ESP32, and lightsleep / deepsleep functionality just does not work as expected. Simulation hangs on those commands.
I would like to ask you for specific code examples that fail so that we can reproduce and look into it.
I saw you support ili9341, so wish to see LVGL support and touchscreen support for that screen
Could you please point me at a demo for a simple LVGL project (does it work with MicroPython? ESP32 Arduino Core?), that would be helpful

For the touch screen, there is an open issue on GitHub here: https://github.com/wokwi/wokwi-features ... -934182552

I again thank you for your valuable feedback. I look forward to your reply.

Thank you!

Lixas
Posts: 10
Joined: Fri Aug 21, 2020 9:09 am

Re: Virtual ESP32 Simulator on MicroPython - Feedback please

Post by Lixas » Thu Oct 21, 2021 5:28 am

Hello
sharepksn wrote:
Wed Oct 20, 2021 5:12 pm
I would like to ask you for specific code examples that fail so that we can reproduce and look into it.

Code: Select all

import machine
print("Hello, now i'm going to sleep for 1 msec and continue...")
machine.lightsleep(1) # it sleeps here 1 milisecond
print("I'm continuing my stuff after sleep") # never printed to console
sharepksn wrote:
Wed Oct 20, 2021 5:12 pm
Could you please point me at a demo for a simple LVGL project (does it work with MicroPython? ESP32 Arduino Core?), that would be helpful
LVGL is GUI library, works on ESP32 Arduino, aslo, there is Micropython bindings for it. Also, they have simulator set up on micropython.
Simple examples on C and Micropython

sharepksn
Posts: 3
Joined: Thu Oct 14, 2021 2:11 pm

Re: Virtual ESP32 Simulator on MicroPython - Feedback please

Post by sharepksn » Fri Oct 29, 2021 2:27 pm

One update to fix the freezing issue on the Wokwi Simulator
https://github.com/wokwi/wokwi-features/issues/218

Post Reply