• sales

    +86-0755-88291180

PICO-Cam-A Guide


Resource

Demo

Schematic

Official Resources

Raspberry Pi Official Datasheet

Raspberry Pi Open-source Demo

Development Software


Overview

PICO-CAM-A is a high-performance microcontroller camera development board designed by Waveshare. With an HM01B0 grayscale camera and a 1.14-inch IPS display screen, it also has onboard 13 GPIO pin headers and a Debug interface, making it easy for users to develop with better integration into applications.

Features

  • RP2040 microcontroller chip designed by Raspberry Pi in the United Kingdom.
  • Dual-core Arm Cortex M0+ processor, flexible clock running up to 133 MHz.
  • 264KB of SRAM, and 16MB of onboard Flash memory.
  • Type-C connector, keeps it up to date, easier to use.
  • On-board HM01B0 grayscale camera.
  • Onboard 1.14inch 240×135 pixels 65K colorful IPS LCD for clear color pictures.
  • USB 1.1 with device and host support.
  • Low-power sleep and dormant modes.
  • Drag-and-drop programming using mass storage over USB.
  • 13 × multi-function GPIO pins.
  • Accurate clock and timer on-chip.
  • Temperature sensor.
  • Accelerated floating-point libraries on-chip.
  • 8 × Programmable I/O (PIO) state machines for custom peripheral support.

Parameters

LCD Specifications
ControllerST7789VResolution135(H)RGB x 240(V)
Communication InterfaceSPIDisplay Dimensions14.864(H)x 24.912(V)mm
Display PanelIPSPixel Size0.1101(H)x 0.1035(V)mm

Pinout


Dimensions


Get Started with Pico

Introduction

C/C++ Series

Open-source Demo

Sample Demo

C Demo

Demo Explanation

Demo Explanation
This example primarily involves capturing images through the camera and displaying them on a 1.14-inch LCD. The demo utilizes multi-core processing, with Core 1 responsible for acquiring image data and image processing, while Core 0 handles the image display.
Core 1 Demo Explanation

  • Data Pushing
    multicore_fifo_push_blocking() is a function provided by Pico SDK for pushing data to the FIFO (First In, First Out) queue of the multi-core system. Here, Core 1 will push the data to FIFO, and Core 0 will block to wait for the FLAG_VALUE data from Core 1.
multicore_fifo_push_blocking(FLAG_VALUE);
  • Wait for Data
    Core 1 blocks and waits for the data from Core 0.
uint32_t ack = multicore_fifo_pop_blocking();
  • LCD Initialization
    Call DEV_Module_Init() to initialize the pins and buttons related to the LCD, and call LCD_1IN14_V2_Init() to initialize the LCD.
DEV_Module_Init();
LCD_1IN14_V2_Init(HORIZONTAL);
LCD_1IN14_V2_Clear(BLACK);
UDOUBLE Imagesize = LCD_1IN14_V2_HEIGHT * LCD_1IN14_V2_WIDTH * 2;
UWORD *BlackImage;
if ((BlackImage = (UWORD *)malloc(Imagesize)) == NULL)
{
    printf("Failed to apply for black memory...\r\n");
    exit(0);
}
  • Display Image
    Call Paint_DrawImage() to draw imahes, and call LCD_1IN14_V2_Display() to display the images on the LCD.
Paint_NewImage((UBYTE *)BlackImage, LCD_1IN14_V2.WIDTH, LCD_1IN14_V2.HEIGHT, 0, WHITE);
Paint_SetScale(65);
Paint_SetRotate(ROTATE_0);
Paint_DrawImage(gImage_waveshare, 0, 0, 240, 135);
LCD_1IN14_V2_Display(BlackImage);
DEV_Delay_ms(500);
  • Camera Initialization
    This code segment calls cam_config_struct() to initialize the camera configuration structure "config" and then proceeds to initialize the camera by calling cam_init().
struct cam_config config;
cam_config_struct(&config);
cam_init(&config);
  • Image Processing
    This code segment is a loop where the camera captures a frame in each iteration, processes the image, and ultimately stores the processed image data in "displayBuf". The "imageReady" flag is then set to 1, indicating that the image is ready for display.
while (true) {
    cam_capture_frame(&config);

    uint16_t index = 0;
    for (int y = 134; y > 0; y--) {
        for (int x = 0; x < 240; x++) {
            uint16_t c = image_buf[(y)*324+(x)];
            uint16_t imageRGB = (((c & 0xF8) << 8) | ((c & 0xFC) << 3) | ((c & 0xF8) >> 3));
            displayBuf[index++] = (uint16_t)(imageRGB >> 8) & 0xFF;
            displayBuf[index++] = (uint16_t)(imageRGB) & 0xFF;
        }
    }

    imageReady = 1;
}

Core 0 Demo Explanation

  • Boots Core1
    multicore_launch_core1 is the function provided by Pico SDK for booting Core 1 on the Raspberry Pi Pico. This code boots the function specified by Core 1 through calling multicore_launch_core1().
multicore_launch_core1(core1_entry);
  • Wait for data
    Core 0 blocks and waits for data from Core 1, if successfully received data FLAG_VALUE then send data to Core 1.
uint32_t ack = multicore_fifo_pop_blocking();
if (ack != FLAG_VALUE)
    printf("Error: Core 0 failed to receive acknowledgment from core 1!\n");
else {
    multicore_fifo_push_blocking(FLAG_VALUE);
    printf("Success: Core 0 Received acknowledgment from core 1!\n");
}
  • Main Loop
    Continuously checks the "imageReady" flag in the main loop. Once the flag is detected as 1, indicating that the image is ready for display, it calls LCD_1IN14_V2_Display() to show the image. After the display, it resets the "imageReady" flag to 0.
while (1) {
    if (imageReady == 1) {
        LCD_1IN14_V2_Display((uint16_t*)displayBuf);
        // Reset the imageReady flag after displaying the image
        imageReady = 0;
    }
    DEV_Delay_ms(1);
}

Run the Demo

  • After programming the firmware and powering up, the PICO-Cam-A displays the boot-up screen and then shows the camera's captured images in real-time.


TAG: ESP32-S3 A7670E 4G development board supports LTE Cat-1/2G/GNSS positioning/WiFi/Bluetooth Raspberry Pi 5 Fan Raspberry Pi OpenWrt Tutorial 2 DeepSeek XiaoZhi AI Voice Chat ESP32-S3 All-in-One-PCB-Kit N16R8 WROOM-1-N16R8 DevKitC-1 Development Board MPW7 Raspberry Pi 5 PCIe to WIFI7 Adapter Board HAT Pi5 For Google TPU BE200 AX210 AI Raspberry Pi Camera V2 ESP32 S3 R8 MP3 Board 2.8inch LCD TouchScreen Display Speaker/SD-Card/Battery/QMI8658-6-Axis-Sensor ESP32 S3 4inch LCD Development Board 480x480 TouchScreen Display TVBOX LVGL HMI Sensor CAN RS485 Arduino MLX90640 Omni-Directional Lidar Raspberry Pi Pico 2 RP2350 2 inch LCD Capacitive TouchScreen Development Board 240x320 Display QMI8658 6-Axis /OV5640 Camera /SD /Battery Port Raspberry Pi screen Intel BE200 Wireless WLAN Card Gigabit Tri-Band WiFi7 Bluetooth 5.4 M.2 MU-MIMO IEEE 802.11 Milk-V Duo User Guide Raspberry Pi 11.6 inch LCD HDMI /Type C Display In-Cell Capacitive TouchScreen 1768x828 For Jetson Nano/mini Computer PC development board UART Serial Server Raspberry Pi 5 Box Case Ki-A PCIe to RJ45 Gigabit Ethernet All Ports To Pi's USB Side Jetson Orin Nano UGV Beast PT ROS2 AI OpenCV Robot Car MediaPipe MP2.5GD Raspberry Pi 5 PCIe to Dual 2.5G Double Ethernet HAT Pi5 RTL8125