A simple, cross-platform tool to communicate with MicroPython-based microcontrollers (like Raspberry Pi Pico, ESP32, etc.) via UART. Control hardware directly from your PC or Android phone!
- Cross-Platform:** Works on Windows, Linux, and Android (via Pydroid 3).
- Auto-Detection: Automatically detects your OS and available serial ports.
- GUI Control: User-friendly interface to switch ports and send commands.
- Instant Feedback: Turn specific pins/LEDs ON or OFF with a click.
| File | Description |
|---|---|
serialcomm.py |
The GUI App. Run this file to start the controller. Connects to the device and sends commands. |
s_searcher.py |
The Backend. Handles OS detection, list available ports, and manages serial connections. |
UART_MICRO.py |
Firmware. The code that goes onto your Microcontroller (Pico/ESP32). |
Ensure you have Python installed. Then, install the required library:
pip install pyserial- Install Pydroid 3 from the Google Play Store.
- Open Pydroid 3 -> Pip.
- Install
usb4aandusbserial4a. (Note: Android support requires an OTG adapter).
- Open your MicroPython IDE (like Thonny).
- Open
UART_MICRO.py. - Save/Flash it to your microcontroller as
main.py(or run it manually).Important: Check your specific board's Pinout! The code uses
UART(0)andPin(25)(default LED for Pico). Adjust if using ESP32 or others.
- Connect your microcontroller to your computer/phone via USB.
- Run the application:
python serialcomm.py
- Select Port:
- Use the dropdown to select your device (e.g.,
COM3,/dev/ttyUSB0). - Or keep it on
Autoto let the app find it.
- Use the dropdown to select your device (e.g.,
- Control:
- Click
Turn ON🟢 -> Sends11111111(LED ON) - Click
Turn OFF🔴 -> Sends00000000(LED OFF)
- Click
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit Pull Requests