This is the Repo for the Core Electronics port of the Arducam Mega Cameras for the Raspberry Pi Pico (Micropython)
Status: Experimental This driver is very much experimental at the moment. Expect frequent, breaking updates.
This project is featured in the 27-July-2023 episode of The Factory - Core Electronics' Engineering and Product Development vlog.
Thank you to @chrisrothwell1 for getting burst reads working - significantly removing the same time for each image (#9)
Thank you to @wil-liammacleod for adding debug mode, a pin reference for the ESP32-S3 and testing on MicroPython 1.24 (#11)
Thank you to @koyuul for fixing up some errors, allowing main.py to be run out of the box, and adding an example for using many Cameras on the same SPI interface.
Project Status: Moved to TODO.md
Camera(spi_bus=, cs=, skip_sleep=False, debug_text_enabled=False)
The Cameras initialisation method.
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| spi_bus | SPI | Device dependent | N/A | The SPI Bus the camera is connected to. |
| cs | Pin | Device dependent | N/A | The Pin the CS wire is connected to. |
| skip_sleep | Boolean | True, False | False | Skips the auto-white-balance on the 5MP Mega |
| debug_text_enabled | Boolean | True, False | False | If enabled, prints the status of the camera |
Camera.capture_jpg()
Capture a JPG photo with the provided settings.
Camera.save_JPG(filename, progress_bar=True)
Requires Camera.capture_jpg() to be run first, saves the JPG to the filename provided (it should include the filetype extension .jpg.
Note: This function can over-write other photos, we recommend using the filemanager.
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| filename | str | N/A | 'image.jpg' | The file path for the image. |
| progress_bar | Boolean | True, False | True | Prints a progress bar as the image saves. |
This project is open source - please review the LICENSE.md file for further licensing information.
If you have any technical questions, or concerns about licensing, please contact technical support on the Core Electronics forums.