ESP32 and Termux
16 hours ago
- #Micropython
- #ESP32
- #Termux
- Use an ESP32-WROOM-32 development board with Termux on a phone.
- Requirements include an OTG adapter, USB-A cable supporting data transfer, and Termux installed from F-Droid.
- Install TCPUART transparent Bridge to act as a bridge between Android Serial USB API and Termux.
- Set up TCPUART with baud rate 115200, server mode, and port 8080.
- Install necessary Termux packages: python, esptool, mpremote, socat.
- Create a TCP bridge virtual device file using socat.
- Reset ESP32 into download mode by holding BOOT and pressing EN buttons.
- Erase ESP32 flash memory using esptool.
- Download and flash Micropython firmware from micropython.org.
- Exit download mode by pressing the ENABLE/RESET button after flashing.
- Use mpremote or minicom to interact with the Micropython REPL.
- Upload and run a Python script on ESP32 using mpremote.
- List, view, delete files on ESP32 using mpremote commands.
- Challenges include architecture incompatibility and unreliable UART connections with termux-usb.