I am currently delivering tech education courses in a number or settings like schools, universities and council tech hubs. The courses are mainly robotics and programming and mainly for children between age 10 and 18 depending upon the course.
I want to do some micro-python stuff for high school kids on ESP32 as ESP32 is so cheap making it very affordable for me to give away the hardware at end of course for the kids to take home and keep.
I have done a little with some Adafruit boards using circuit-python and programmed using the mu editor which is a nice simple editor for kids to learn to use easily that is capable of running python live, downloading to the board and also has a serial terminal and plotter.
I am trying to use mu editor to program ESP32 board that has a wroom module at it's heart and I have installed this binary "esp32-idf3-20210202-v1.14.bin". When I start mu editor it detects micropython on esp32 connected and I can type code into the editor and hit run and it works correctly (I assume this uses put and paste mode of micropython) and I also can type in to the serial terminal at repl and it works but I am unable to download the .py file like "main.py" to the board with the mu editor.
I think it might because the ESP32 doesn't show up as external drive like the Adafruit boards did. Is there a binary for ESP32 that does mount as an external drive??
Does anyone here have experience with using mu editor on ESP32 or can suggest another IDE that would be good for teaching kids
mu editor
Re: mu editor
ESP32s (before the S2, anyway) can't do virtual drives.
I'd recommend Thonny, as it understands more types of devices than mu
I'd recommend Thonny, as it understands more types of devices than mu
-
- Posts: 847
- Joined: Mon Nov 20, 2017 10:18 am
Re: mu editor
I assume that is because before the S2 ESP32 didn't have native USB. I think to have virtual drive will be much better for kids to use as having to use tools like ampy or rshell is just another complication for the kids to understand.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: mu editor
Please see this observation about MSC mode. Pyboards retain it for compatibility reasons but it's not supported on other platforms.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: mu editor
Yes, lack of USB capability is why it doesn't work on ESP32. But as Peter points out, it's a double-edged sword: sure, it appears easy to use, but MicroPython/CircuitPython's ability to modify the filesystem outside control of the host can cause corruption.OutoftheBOTS_ wrote: ↑Tue Nov 23, 2021 3:16 amI assume that is because before the S2 ESP32 didn't have native USB. I think to have virtual drive will be much better for kids to use as having to use tools like ampy or rshell is just another complication for the kids to understand.
This is approximately every second question on the Raspberry Pi Pico forum. I used to be very pro-VCP, but am far less so now
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: mu editor
That is why I wrote that FAQ: answering that question here every other day was becoming tedious. MSC mode is and experienced Pyboard users routinely disable it in boot.py. Alas there is a lobby on GitHub wanting to enable it on the Pico
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
-
- Posts: 847
- Joined: Mon Nov 20, 2017 10:18 am
Re: mu editor
After trying Thorny editor it seems to be much more functional with the ESP32 Wroom module where it is quite easy to save code to the board as well as run it live and also use repl.
On the rare occasions we have to drop files that are not python scripts I suppose we will just use ampy.
On the rare occasions we have to drop files that are not python scripts I suppose we will just use ampy.
Re: mu editor
You can copy any file across using the Files pane.
And the Plotter view is solid gold. Print an array, and every column is plotted as a different trace
And the Plotter view is solid gold. Print an array, and every column is plotted as a different trace