A simple and efficient MicroPython web server designed for Raspberry Pi Pico, ESP8266, ESP32, allowing seamless control of microcontroller projects via a web browser.
This repository contains code to control Raspberry Pi Pico, ESP8266, ESP32 or other MicroPython projects using a browser-based user interface. It allows you to interact with your Pico projects remotely from any device with a web browser, including smartphones, tablets, and computers.
The latest features include improved memory usage, support for additional microcontrollers like ESP8266, and convenient options such as blinking the IP address using the built-in LED and displaying a file list for the root directory.
config.py
with your Wi-Fi details and IP blink options:
WIFI_SSID
: Set this to your Wi-Fi network SSID (e.g., "your_wifi_ssid"
)WIFI_PASSWORD
: Set this to your Wi-Fi network password (e.g., "your_wifi_password"
)BLINK_IP
: Set this to True
if you want the Pico to blink its IP address using the built-in LED; set it to False
if notBLINK_LAST_ONLY
: Set this to True
if you want to blink only the last octet of the IP address; set it to False
to blink the entire IP addressmain.py
and look for the IP address of your web serverThis repository provides both .py
and .mpy
files for most modules. While the .py
files are standard Python files, the .mpy
files are precompiled MicroPython bytecode files. Using .mpy
files can result in reduced memory usage and faster execution times on your microcontroller.
.py
and .mpy
files based on your preference..mpy
files for modules other than main.py
and config.py
.To choose between .py
and .mpy
files, follow these steps:
main.py
and config.py
from the root directory to your microcontroller..py
and .mpy
files for the remaining modules:
mpy
folder to your microcontroller.Remember to customize config.py
with your Wi-Fi details and other settings before running the code.
For detailed instructions and a step-by-step guide on how to use this project, please refer to our article:
MicroPython Web Server: Control Your Raspberry Pi Pico Projects Remotely
We'd love to see your projects, control panels, and improvements. Be sure to use this Github repo and submit your additions.
This project is licensed under the MIT License - see the LICENSE file for details.