This guide will walk you through the steps to install MicroPython on your ESP32-S3 board with a CAM module and run MicroPython scripts without needing an SD card.
- ESP32-S3 board with CAM module
- USB cable
- MicroPython firmware for ESP32-S3
- esptool.py (for flashing firmware)
- Thonny IDE (for writing and uploading scripts)
You'll need esptool.py
to flash the MicroPython firmware onto your ESP32-S3.
Install esptool.py
using pip:
pip install esptool
Download the appropriate MicroPython firmware for the ESP32-S3 from the MicroPython website. Look for the latest .bin
file specific to the ESP32-S3.
-
Connect the ESP32-S3 to your computer using a USB cable.
-
Put the ESP32-S3 into bootloader mode:
- Hold the
BOOT
button (sometimes labeled asIO0
orGPIO0
). - Press the
RESET
button and release it. - Release the
BOOT
button.
- Hold the
-
Find the USB port of your ESP32-S3:
- On Windows: It will be a COM port like
COM3
. - On Linux/macOS: It will be something like
/dev/ttyUSB0
or/dev/ttyACM0
.
- On Windows: It will be a COM port like
-
Use esptool.py to flash the firmware:
esptool.py --chip esp32s3 --port <YOUR_PORT> --baud 460800 write_flash -z 0x1000 <path_to_your_micropython_firmware.bin>
Replace <YOUR_PORT>
with your actual port (e.g., COM3
, /dev/ttyUSB0
), and <path_to_your_micropython_firmware.bin>
with the path to the downloaded MicroPython firmware.
- Open a serial terminal program like PuTTY, Tera Term, or the serial monitor in the Arduino IDE.
- Connect to the same port at a baud rate of
115200
. - You should see the MicroPython REPL prompt (
>>>
).
Use Thonny IDE for an easy way to write and upload your MicroPython scripts.
- Download and Install Thonny from thonny.org.
- Open Thonny and go to
Tools
>Options
>Interpreter
. - Set the interpreter to
MicroPython (ESP32)
. - Set the port to your ESP32-S3โs port.
- Write your MicroPython script in Thonny.
- Click the Run button (green play button) to upload and execute your script on the ESP32-S3.
Here's a simple script to test your setup:
import machine
import time
led = machine.Pin(2, machine.Pin.OUT)
while True:
led.on()
time.sleep(1)
led.off()
time.sleep(1)
This script will blink the built-in LED on the ESP32-S3.
By following these steps, you can flash MicroPython onto your ESP32-S3 and run scripts without needing an SD card. The Thonny IDE makes it simple to write and upload scripts, providing a user-friendly environment for MicroPython development on your ESP32-S3.
Save this content as `README.md` in your project directory. This file will provide a clear and concise guide to setting up MicroPython on the ESP32-S3 with a CAM module.