I recently purchased an Arduino Nano ESP32. I want to experiment with MicroPython. I would like to communicate wirelessly between my computer and the Nano ESP32.
I can communicate via WiFi via the Arduino IDE if I have made the board suitable for Arduino/C++.
If I make the Nano ESP32 suitable for MicroPython, I can communicate via USB-C. I can also download and upload files via WiFi via the WebREPL environment, but this is done via a terminal screen. And that is not my preference.
Unfortunately, the Arduino Lab for MicroPyton app only works via USB-C. I see no options to set up a WiFi connection. I also find no WiFi options in the version of Arduino Lab for MicroPython that can be opened via the browser.
Am I missing something? Should it be possible to communicate via WiFi outside of using a WebREPL terminal?
I know little about Python, but I know several users who rely on WiFi with their Python boards, so that means it works.
Think about it, would a company produce a board with a wifi chip that does not work with the most common beginner language? I highly doubt it.
I did a quick google and found a familiar resource that shows how to make a web server on an esp32 https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/
WebREPL Set Up for Micropython.._gaMTE4NDMxNzI4MS4xNzUwMDgzNjc2*_ga_NEXN8H46L5*czE3NTAwODM2NzUkbzEkZzAkdDE3NTAwODM2NzUkajYwJGwwJGg1MDc3OTExNDQ
you shoukd be able to use Webrepl with an IDE almost identical to using a USB connection, view files on device PC, transfer files between PC device etc.
There’s currently no built-in feature in Arduino Lab for MicroPython to communicate over Wi-Fi. No configuration options exist in the current UI for setting up or discovering the Nano ESP32 over Wi-Fi.
I read all kinds of positive messages from Arduino about MicroPython in combination with the Arduino products. The "Arduino Lab for MicroPyton app" is simple, but easy to use. So the possibility to also communicate via WiFi would be great!
I will certainly investigate the suggestions of @sonofcy and @sumguy and see if this works easier than my current solution with a web server in combination with the WebREPL terminal.
They are not wrong and the NanoEsp32 is a great microcontroller to start with, if speed is not an issue you can pretty much do anything the c/c++ can do. Thonny has an edge over Arduino Lab IMO, it has the ability to download and install library modules and install/update esp32 micropython firmware although for the Nanoesp32 I would stick with the Arduino installer.
@Grumpy_Mike Definitely interesting! Thx. I didn't know that the ESP32 is integrated in this UNO model.
As a newbie I want to be careful with my statements, but if I read a bit more about this, then there are possibilities with the UNO R4 WiFi to do something with MicroPython, but you do need a bit more knowledge
I'll limit myself to the Nano ESP32 for now.
As soon as I have the opportunity I'll try out the method suggested by @sumguy.
Hi @sumguy, I followed the "WebREPL Set Up for Micropython" you described step by step and I am very enthusiastic about it.
This is exactly what I was looking for in the "Arduino Lab for MicroPython app".
It works clearly and simply. This is a nice solution Thx!