Extract the downloaded archive and move the downloaded firmware into the extracted esptool folder
Open the Terminal (Linux) or Command Prompt (Windows) and navigate to the extracted esptool folder
Connect ESP32 to the PC and erase the flash:
./esptool --chip esp32 --port erase_flash
NOTE #1: Replace in the command with the actual port where the ESP32 is connected. On Windows, this might be something like COM4 (or something like /dev/ttyUSB0 on Linux).
NOTE #2: If the command is not recognized on Linux, make the tool executable (for all users):
Download and install PyCharm Community Edition for Windows or Linux
Run PyCharm and select Plugins (from welcome screen) or navigate to "File -> Settings -> Plugins"
Search for MicroPython plugin and install it
Create a New Project and specify desired project location
Navigate to "File -> Settings -> Languages & Frameworks -> MicroPython" and enable MicroPython
support
Select ESP8266 under "Device type"
Under "Device path" enter the actual port where the ESP32 is connected - on Windows, this might be something like COM4 (or something like /dev/ttyUSB0 on Linux)
Your project is now ready to run MicroPython code
2. Connect GUI-O and ESP32 via MQTT
Step 1: Create tokens for MQTT communication
Open GUI-O application and select "Add" from the top-right corner of the home screen
Select "IoT (Create device)" and add a new device (specifying arbitrary name and optional user name)
After adding a device, note the In and Out tokens which are required in the following step (tokens can be shared via email by pressing the "Share" icon)
Step 2: Modify and run the Python script
Connect ESP32 to the PC via USB cable
Download the main.zip package to your PC and extract the package
Copy main.py into the root of your PyCharm project and double-click on it within the PyCharm IDE
Set your router name and password
Set the In and Out tokens generated in Step 1
You can optionally disable SSL/TLS (this will make the connection insecure and is not recommended)
Right click on main.py, select Run 'Flash main.py' and confirm
NOTE: In case of any missing libraries, just click on "Fix" button and PyCharm will automatically install them.
After the upload, ESP32 should issue a soft-reboot and begin program execution
NOTE: All debug messages during program execution can be observed using any serial console terminal (baud rate 115200 bps).
Step 3: Using GUI-O application to interact with ESP32
Open GUI-O application and select "Connect" from the top-left corner of the home screen
Tap on the device created in Step 1
Wait for successful connection and try the example
If you have any questions or run into any problems, please let me know!
Extract the downloaded archive and move the downloaded firmware into the extracted esptool folder
Open the Terminal (Linux) or Command Prompt (Windows) and navigate to the extracted esptool folder
Connect ESP32 to the PC and erase the flash:
./esptool --chip esp32 --port erase_flash
NOTE #1: Replace in the command with the actual port where the ESP32 is connected. On Windows, this might be something like COM4 (or something like /dev/ttyUSB0 on Linux).
NOTE #2: If the command is not recognized on Linux, make the tool executable (for all users):
Download and install PyCharm Community Edition for Windows or Linux
Run PyCharm and select Plugins (from welcome screen) or navigate to "File -> Settings -> Plugins"
Search for MicroPython plugin and install it
Create a New Project and specify desired project location
Navigate to "File -> Settings -> Languages & Frameworks -> MicroPython" and enable MicroPython
support
Select ESP8266 under "Device type"
Under "Device path" enter the actual port where the ESP32 is connected - on Windows, this might be something like COM4 (or something like /dev/ttyUSB0 on Linux)
Extract the downloaded archive and move the downloaded firmware into the extracted esptool folder
Open the Terminal (Linux) or Command Prompt (Windows) and navigate to the extracted esptool folder
Connect ESP32 to the PC and erase the flash:
./esptool --chip esp32 --port erase_flash
NOTE #1: Replace in the command with the actual port where the ESP32 is connected. On Windows, this might be something like COM4 (or something like /dev/ttyUSB0 on Linux).
NOTE #2: If the command is not recognized on Linux, make the tool executable (for all users):
Download and install PyCharm Community Edition for Windows or Linux
Run PyCharm and select Plugins (from welcome screen) or navigate to "File -> Settings -> Plugins"
Search for MicroPython plugin and install it
Create a New Project and specify desired project location
Navigate to "File -> Settings -> Languages & Frameworks -> MicroPython" and enable MicroPython
support
Select ESP8266 under "Device type"
Under "Device path" enter the actual port where the ESP32 is connected - on Windows, this might be something like COM4 (or something like /dev/ttyUSB0 on Linux)
Your project is now ready to run MicroPython code
2. Connect GUI-O and ESP32 via Ethernet
Step 1: Run the Python script
Connect ESP32 to the PC via USB cable
Download the main.zip package to your PC and extract the package
Copy main.py into the root of your PyCharm project and double-click on it within the PyCharm IDE
Right click on main.py, select Run 'Flash main.py' and confirm
NOTE: In case of any missing libraries, just click on "Fix" button and PyCharm will automatically install them.
After the upload, ESP32 should issue a soft-reboot and begin program execution
NOTE: All debug messages during program execution can be observed using any serial console terminal (baud rate 115200 bps).
Step 2: Using GUI-O application to interact with ESP32
Open GUI-O application and navigate to "Settings -> Connections -> Ethernet"
Tap "Add device" icon and set the device name, IP (e.g., 192.168.1.123) and port (e.g., 34567) based on your configuration
Tap the created device and wait for successful connection
NOTE: Make sure that your Android device is connected to the same WiFi network as ESP32 device.
Close "Settings" and tap GUI-O initialize button from the home screen to try the example
If you have any questions or run into any problems, please let me know!