-
Where did you get the camera module(s)? Arducam
-
Model number of the product(s)? Arducam Mega 3MP-NoIR (B0435)
-
What hardware/platform were you working on? Arduino Portenta H7
-
Instructions you have followed. (link/manual/etc.) Example Sketches - Arducam Wiki
Hi, I see there are resources on using SPI camera with Arducam SDK, but I would like to ask if there’s a simple tester program that saves a picture clicked using Micropython. I am using OpenMV based firmware that’s supported on ArduinoPro devices.
I came across this by CoreElectronics for Pico and tried modifying the program for Portenta in the following manner, but have had no luck.
import pyb
from machine import Pin, SPI,
from camera import *
spi = SPI(1, baudrate=8000000)
cs = Pin("D7", Pin.OUT)
onboard_LED = pyb.LED(2)
cam = Camera(spi, cs)
cam.resolution = '1280x720'
onboard_LED.on()
cam.capture_jpg()
pyb.delay(50)
cam.saveJPG('image.jpg')
onboard_LED.off()
PC