pdf-icon

M5Camera

SKU:U017

Description

M5Camera is an image recognition development board that integrates the ESP32 (4M Flash + 520K RAM + 4M PSRAM) chip and a 2-megapixel camera (OV2640). It supports WiFi image transmission and USB port debugging.

Features

  • Based on ESP32 design
  • WIFI image transmission
  • CP2104 USB TTL

Includes

  • 1 x M5Camera
  • 4 x LEGO adapters
  • 1 x USB Type-C cable (20cm)

Specifications

Specification Parameter
Flash 4M
RAM 4MB
Image Sensor OV2640
Maximum Resolution 2 Megapixels
Output Format YUV (422/420) /YCbCr422, 8-bit compressed data, RGB565/555, 8-/10-bit Raw RGB data
Field of View 65°
Net Weight 17g
Gross Weight 41g
Product Dimensions 40 x 48 x 11mm
Package Dimensions 75 x 45 x 30mm

Learn

The hardware comes pre-installed with firmware, and you can develop using ESP-IDF to run the WiFi-camera application. The default program outputs images at a resolution of 600 x 800, but you can optimize the program to output larger sizes.

How to use this program?

  • Turn on your phone's Wi-Fi, scan and connect to the AP hotspot named "m5stack-".
  • Open your phone's browser and visit 192.168.4.1 to access the monitoring page and get real-time video.
  • The video frame rate is approximately 5-6 frames per second.

Schematics

Power Circuit

Chip Peripheral Circuit

USB to Serial Circuit

PinMap

Camera Driver Chip OV2640 Interface

Interface Camera Pin M5Camera
SCCB Clock SIOC IO23
SCCB Data SIOD IO22
System Clock XCLK IO27
Vertical Sync VSYNC IO25
Horizontal Reference HREF IO26
Pixel Clock PCLK IO21
Pixel Data Bit 0 D2 IO32
Pixel Data Bit 1 D3 IO35
Pixel Data Bit 2 D4 IO34
Pixel Data Bit 3 D5 IO5
Pixel Data Bit 4 D6 IO39
Pixel Data Bit 5 D7 IO18
Pixel Data Bit 6 D8 IO36
Pixel Data Bit 7 D9 IO19
Camera Reset RESET IO15
Camera Power Down PWDN /
Power Supply 3.3V 3V3 3V3
Ground GND GND

HY2.0-4P Interface

HY2.0-4P M5Camera
SCL IO13
SDA IO4
5V 5V
GND GND

LED Interface

LED M5Camera
LED_Pin IO14

Reserved IC Interfaces

BME280 Interface

I2C address is 0x76

BMP280 M5Camera
SCL IO23
SDA IO22

MPU6050 Interface

MPU6050 M5Camera
SCL IO23
SDA IO22

MIC (SPM1423) Interface

_MIC (SPM1423) _ M5Camera
CLK IO4
DATA IO2
The PIN8 (PDWN) of the OV2640 chip is the enable pin. In this board, it is enabled by a 12KΩ pull-down resistor to ground, entering the working mode. When PIN8 (PDWN) is pulled high, it will enter Camera Power Down mode.

Datasheets

Softwares

Factory Firmware (WiFi Image Transmission)

Arduino

ESP-IDF

EasyLoader

Easyloader Download Link Notes
M5Camera AP Firmware Easyloader download /

Video

  • M5Camera Application - M5Camera and M5Core Image Transmission

Product Comparison