Capture monochrome images on your Raspberry Pi Pico with a Himax HM01B0 based camera module.
Learn more in the Raspberry Pi "Real-time monochrome camera input on Raspberry Pi Pico" guest blog post.
- RP2040 board
- SparkFun Micromod
HM01B0 | Raspberry Pi Pico / RP2040 |
---|---|
VCC | 3V3 |
SCL | GPIO5 |
SDA | GPIO4 |
VSYNC | GPIO6 |
HREF | GPIO7 |
PCLK | GPIO8 |
D0 | GPIO9 |
RESET | - |
MCLCK | - |
GND | GND |
GPIO pins are configurable in examples or API.
See examples folder.
git clone https://github.com/ArmDeveloperEcosystem/hm01b0-library-for-pico.git
- Set up the Pico C/C++ SDK
- Set
PICO_SDK_PATH
export PICO_SDK_PATH=/path/to/pico-sdk
- Create
build
dir, runcmake
andmake
:
mkdir build
cd build
cmake .. -DPICO_BOARD=pico
make
For SparkFun MicroMod RP2040 use: cmake .. -DPICO_BOARD=sparkfun_micromod
- Copy example
.uf2
to Pico when in BOOT mode.
The TinyUSB library is used in the usb_camera
example.
Disclaimer: This is not an official Arm product.