Important hardware and performance notes
masterWhen using the camera API, keep the following constraints in mind:
- ESP32 Performance: For standard ESP32 (non-S series), do not use frame sizes larger than QVGA when not using JPEG mode. JPEG mode generally provides better frame rates.
- OV5640 Sensor: The OV5640 pinout is compatible with OV2640 boards, but the voltage supply is too high for internal 1.5V regulators. This causes overheating unless a heat sink is used. Only use OV5640 with ESP32S3 boards for recording. For still images, avoid frame sizes above FHD due to memory limits.
- ESP32 Build Issues: If targeting ESP32, use ESP-IDF >= 5.2 to avoid IRAM overflow during the build process.
- PSRAM: The driver requires PSRAM to be installed and activated on your board.
- Frame Buffer (fb_count): Setting
MICROPY_CAMERA_FB_COUNTto 2 can theoretically double the FPS (especially in JPEG mode) compared to a value of 1.