| # | Component | Specification | Notes |
|---|---|---|---|
| 1 | ESP32-S3-DevKitC-1 (or ESP32-S3-CAM) |
8 MB OPI PSRAM required | Standard ESP32 / ESP32-C3 lack sufficient PSRAM for the 2.5 MB TFLite arena |
| 2 | OV2640 Camera Module | RGB565, QVGA (320x240) |
Built-in on ESP32-S3-CAM boards |
| 3 | Servo Motor | SG90 (light samples) or MG996R (gate/chute) |
50 Hz PWM on GPIO 2 |
| 4 | External 5V / 2A PSU | Dedicated servo rail | Prevents voltage brownout resets on the MCU |
| 5 | Status LED + 330 Ohm Resistor | Standard 5 mm LED | Connected to GPIO 4 |
| 6 | 1000 uF / 16V Capacitor | Decoupling across servo 5V/GND | Absorbs current spikes during actuation |
firmware/include/board_pins.h)| Signal | GPIO | Signal | GPIO |
|---|---|---|---|
XCLK |
10 |
D0 (Y2) |
15 |
SIOD (SDA) |
40 |
D1 (Y3) |
17 |
SIOC (SCL) |
39 |
D2 (Y4) |
18 |
VSYNC |
38 |
D3 (Y5) |
16 |
HREF |
47 |
D4 (Y6) |
14 |
PCLK |
13 |
D5 (Y7) |
12 |
SERVO_PWM |
2 |
D6 (Y8) |
11 |
STATUS_LED |
4 |
D7 (Y9) |
48 |
5V / 2A PSU (+) ──┬──────────────────────────► Servo VCC
├── [1000uF Cap] ──┐
└──────────────────|───────► ESP32-S3 5V (if not USB-powered)
5V / 2A PSU (-) ──┴──────────────────┴───────► Common GND (ESP32-S3 GND + Servo GND)
ESP32-S3 GPIO 2 ────────────────────────────► Servo PWM Signal
ESP32-S3 GPIO 4 ──► 330 Ohm ──► LED (+) ────► GND
board_build.memory_type = qio_opi in firmware/platformio.ini matches your board’s Flash/PSRAM variant.