{"title":"Adafruit PiCowbell Camera Breakout - Autofocus 120 Degree Lens","handle":"adafruit-picowbell-camera-breakout-autofocus-120-degree-lens-ada5946","url":"/products/adafruit-picowbell-camera-breakout-autofocus-120-degree-lens-ada5946","description":"The Adafruit PiCowbell OV5640 Camera Breakout with Autofocus adds a 5-megapixel camera with a 120-degree wide-angle lens and autofocus motor to your Raspberry Pi Pico or Pico W. Capture raw RGB images for analysis or use the OV5640's built-in JPEG encoding to save photos to a microSD card or upload them to the cloud.\n\nThe RP2040's fast PIO peripheral handles the 8-bit parallel DVP camera interface, while the onboard 16 MHz oscillator provides the required clock signal. A microSD card slot, shutter button, reset button, and STEMMA QT connector are all included on board, with 6 GPIO pins still available after all connections.\n\nKey Features\n\n\nOV5640 5MP Camera with Autofocus – 120-degree wide-angle lens with motor-driven focus\n\n8-bit DVP Interface – Uses RP2040 PIO for fast parallel data capture (GPIO 0–14)\n\nMicroSD Card Slot – SPI on GPIO 16–19, optional card detect on GPIO 15\n\nShutter Button – Dedicated button on GPIO 22\n\nSTEMMA QT / Qwiic – I2C connector on GPIO 4/5 for additional sensors\n\n16 MHz Onboard Oscillator – Generates XClock for the camera module\n\nReset Button – Quick restart access\n\n\n\nNote: Autofocus requires loading a firmware binary over I2C, then controlling focus with I2C commands. The VMotor line is connected to 3.3V for the autofocus motor. Otherwise, the camera behaves identically to the fixed-focus OV5640.\n\n\nPin Assignments\n\n\nCamera – VSync (0), PWDN (1), HSync (2), PCLK (3), SDA/SCL (4/5), D0–D7 (6–13), Reset (14)\n\nMicroSD – SPI (16, 18, 19), CS (17), Detect (15)\n\nShutter – GPIO 22\n\n\n\nTip: Since the camera points upward, a PiCowbell Doubler lets you mount the Pico on one side with the BOOT button accessible and the camera on the other.\n\n\nIdeal For\n\nImage capture requiring variable focus distances\nClose-up photography and macro imaging with Pico\nComputer vision and image processing projects\nIoT camera applications with Pico W\n\n\nAlso Consider\n\n\nPiCowbell Camera – 120° Low Distortion (Fixed Focus) – No autofocus, lower lens distortion\n\n\nPackage Contents\n\n1× PiCowbell Camera Breakout PCB (assembled)\n1× OV5640 Camera Sensor with autofocus and 120-degree lens\n2× 20-pin header strips (soldering required)\n","vendor":"Adafruit","product_type":"physical","in_stock":true,"options":[],"variants":[{"id":1109,"title":"Default Title","sku":"AF-5946","mpn":"ADA5946","price":40.0,"compare_at_price":0.0,"on_sale":false,"in_stock":true,"available_quantity":69,"option1":"Default Title"}]}