pdf-icon

Arduino Guide

M5Unit CAM Program Compilation and Uploading

1. Preparation

2. USB Driver Installation

Click the link below to download the driver for your operating system. The CP34X driver package is suitable for the CH9102 chip. After extracting the package, select the installer corresponding to your system's architecture to install. If you encounter issues where the program cannot be downloaded properly (timeout or "Failed to write to target RAM" error), try reinstalling the device driver.
Driver Name Compatible Chip Download Link
CH9102_VCP_SER_Windows CH9102 Download
CH9102_VCP_SER_MacOS v1.7 CH9102 Download
Port Selection on MacOS
On MacOS, there may be two available ports. When using them, please select the port named wchmodem.

3. Port Selection

Connect the device to your computer via USB. After completing the driver installation, select the corresponding device port in Arduino IDE.

4. Program Compilation & Uploading

  1. Open the sample program “CameraWebServer”
  1. Select the camera module CAMERA_MODEL_M5STACK_UNITCAM
  1. Change the Partition Scheme to Huge APP
  1. Enter the WiFi SSID and password in the code
  1. Click the upload button, and the program will automatically compile and upload.

5. Program Results

  1. Open the serial monitor, set the baud rate to 115200, reconnect the data cable to reset, the display will show that WiFi is connected. Copy the IP address to the browser and click Start Stream.
  1. The result will be as follows:
On This Page