Comments on: Getting Started with Thonny MicroPython (Python) IDE for ESP32 and ESP8266 https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 02 Dec 2024 10:15:22 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-988209 Mon, 02 Dec 2024 10:15:22 +0000 https://randomnerdtutorials.com/?p=80235#comment-988209 In reply to Ken Arton.

Hi.
Thanks for you comment.
At the moment, we don’t have any tutorials about LVGL with MicroPython.
We’ll publish a tutorial soon about programming the CYD board with MicroPython (without LVGL), but we haven’t tried with LVGL and Micropython yet.

Regards,
Sara

]]>
By: Ken Arton https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-988087 Sun, 01 Dec 2024 20:37:24 +0000 https://randomnerdtutorials.com/?p=80235#comment-988087 Hello,
I have started using Python, and find it much easier than C.

I am working with ESP32 on the Cheap Yellow Display (CYD) board.
I have followed the steps in this tutorial, and have successfully flashed MicroPython Firmware ESP32_GENERIC-20241025-v1.24.0.bin onto the ESP32.
Also, I am using the Thonny IDE.

From the following webpage:
https://github.com/JettIsOnTheNet/Micropython-Examples-for-ESP32-Cheap-Yellow-Display
I have downloaded three files:
ili9341.py for the CYD display controller
xpt2046.py for the CYD touch screen controller
boot.py which is the demo code that is to be run.
In Thonny IDE, I have copied these files on to the ESP32 chip.
I click the Run button, and the code runs as expected. Each touch on the screen places a small marker, and shows the screen co-ordinates.

So all good, and thank you for an really good tutorial.

I also have your excellent e-book– Learn_LVGL_Build_GUIs_for_ESP32_Projects_V1_4
which describes how to use LVGL on the CYD using C language.

But now I would like it to use my CYD with LVGL micropython, and that is where I am stuck.
I have found many websites on LVGL and micropython, but they are all rather confusing, and none has insrtructions which work for me. The nearest I have got is from this German language webpage:
https://stefan.box2code.de/2023/11/18/esp32-grafik-mit-lvgl-und-micropython/
In it I found a link to lv_micropython-WROOM.zip which I downloaded and unzipped.
It contains a file flash.sh. When the script in it is run in a command window it installs
three .bin files. The installation proceeds correctly, with no errors.
I can install the three .py files I mentioned above, and the demo runs exactly as before.
BUT: my attempts to run a simple LVGL example file fail. The code gets
into a forever loop from which I cannot exit, not even with ctrl+C.
The only way out is to erase the device and re-load the interpreter files, and then
another LVGL example fails the same way.

That’s as far as I have managed to get.
Do you have a tutorial on LVGL with micropython, or can you point me towards a
website that gives step-by-step instructions ?

Many thanks, Ken

]]>
By: Shimon https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-864082 Thu, 05 Oct 2023 11:25:09 +0000 https://randomnerdtutorials.com/?p=80235#comment-864082 How do you get
the firmware modal to install :”4) Select the port once again, and then click on the Browse button to open the .bin”
I can’t get it from the interpreter tab ,after I install the preceding one with erasing the firmware
but no modal to browse and enter the firmware is coming up

]]>
By: Sara Santos https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-796969 Thu, 10 Nov 2022 22:39:08 +0000 https://randomnerdtutorials.com/?p=80235#comment-796969 In reply to Scott Vinzant.

Yes

]]>
By: Scott Vinzant https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-796924 Thu, 10 Nov 2022 15:47:06 +0000 https://randomnerdtutorials.com/?p=80235#comment-796924 In reply to Sara Santos.

So using the Arduion IDE to write a new program to a NodeMCU (that has MicroPython installed) will simply overwrite the MicroPython code, boot.py and main.py with something as simple as Blinky?

]]>
By: Sara Santos https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-796922 Thu, 10 Nov 2022 15:12:52 +0000 https://randomnerdtutorials.com/?p=80235#comment-796922 In reply to Scott Vinzant.

If you want to upload code using Arduino IDE, you don’t need to do anything besides uploading a new code.
Regards,
Sara

]]>
By: Scott Vinzant https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-796826 Thu, 10 Nov 2022 00:17:47 +0000 https://randomnerdtutorials.com/?p=80235#comment-796826 Is it possible (or do you have a tutorial) to put a NodeMCU/ESP8266 back to “factory defaults”?
i.e. I have flashed MicroPython but am no longer needing it.
How can I get back to a point where I can load “regular” ESP8266 programs?
I have been enjoying learning from your great tutorials!

]]>
By: Fabrice https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-779829 Wed, 31 Aug 2022 14:31:37 +0000 https://randomnerdtutorials.com/?p=80235#comment-779829 Hi. I have a T-Pico C3 device, equipped with a dual core RP2040 and an ESP32C3 single core. The device is described here : https://github.com/Xinyuan-LilyGO/T-PicoC3
I have no problem with the RP2040 part, but I can’t flash the micropython firmware using Thonny. On windows 10, when I connect the card (with the USB cable correctly plugged, I have the green led on, meaning it’s the ESP32 part) I can see the ESP32 in the device manager (port 13), but when I launch the flash with Thonny, I get an erro message: “Unable to connect to COM13: Cannot configure port, something went wrong. Original message: PermissionError(13, ‘Un périphérique attaché au système ne fonctionne pas correctement.’, None, 31). If you have serial connection to the device from another program, then disconnect it there first. Process ended with exit code 1.”
It seems that the ESP32 is not recognized by the system, although the RP2040 is. Does anyone know how to fix this?

]]>
By: Dusan https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-736051 Tue, 05 Apr 2022 09:27:44 +0000 https://randomnerdtutorials.com/?p=80235#comment-736051 Hello. After more than a year’s pause, I’m going back to the “miracles” of electronics, so repeat everything, because my head is already worthy of “leaky.” But there are amazing Sara and Rui here, and that’s a certainty. Thank you and a lot of health.

]]>
By: Stephen Cornish https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/#comment-717109 Wed, 05 Jan 2022 23:03:54 +0000 https://randomnerdtutorials.com/?p=80235#comment-717109 Hello

I have a ESP8266 NodeMCU which I have been using with Arduino Sketches. I want to run micropython on it, but Thoony will not connect as it says the device is busy. No can I connect with say esptool.py –port 7 erase_flash, as it reports could not open port. Port 7 is the port recognised by the IDE. I uploaded an empty sketch so usb port is not being used but no difference. Is there a solution or do you have to use a new device i.e. not run a sketch before

]]>