MicroPython ESP32 Web server for RGBW led strip control with color picker.
Hardware:
Software:
Project architecture (read MicroPython doc for more):
- boot.py - script is executed first (if it exists)
- main.py - main script.
- index.html
- functions.js
- style.css
Step-by-step guide
- You might need to install CP210x USB to UART bridge driver
- Get the latest stable MicroPython firmware or take mine
- Install esptool
- Erase flash with esptool:
esptool.py --port /dev/cu.usbserial-0001 erase_flash
- Deploy firmware :
esptool.py --chip esp32 --port /dev/cu.usbserial-0001 write_flash -z 0x1000 esp32-idf3-20200902-v1.13.bin
- Load project files to the board using ampy (from project directory):
ampy -p /dev/cu.usbserial-0001 put boot.py
ampy -p /dev/cu.usbserial-0001 put main.py
ampy -p /dev/cu.usbserial-0001 put index.html
ampy -p /dev/cu.usbserial-0001 put functions.js
ampy -p /dev/cu.usbserial-0001 put style.css
- Check it works by visiting ESP32 IP address
- TO BE CONTINUED
- put all other files into separate folder for easier flash writing