Nothing Special   »   [go: up one dir, main page]

Skip to content

ArduCAM/PICO_SPI_CAM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PICO_SPI_CAM Examples

The example demonstrates how to use C or python language to drive the SPI Camera mini camera on the Pcio platform. This demonstration is made for ArduCAM_Mini_2MP/5MP, and it needs to be used in conjunction with PC software.

Download driver

git clone https://github.com/ArduCAM/PICO_SPI_CAM.git

Use C language to drive SPI Camera

To configure the development environment, please refer to the official manual, the link is as follows.

https://www.raspberrypi.org/documentation/rp2040/getting-started/#getting-started-with-c
  • Compile Select the driver to be compiled, the default is Arducam_MINI_2MP_Plus_Videostreaing. EasyBehavior
cd  PICO_SPI_CAM/C
mkdir build
cd build
cmake ..
make 

Copy PICO_SPI_CAM/C/build/Examples/Arducam_MINI_2MP_Plus_Videostreaing/Arducam_mini_2mp_plus_videostreaming.uf2 to pico to run the test. Open the PC software, configure the port number, baud rate, camera model, and click Capyure to see the image. EasyBehavior

Use Python to drive SPI camera

Note: The development system is Windows.

To configure the development environment, please refer to the official manual, the link is as follows.

https://circuitpython.org/

Development software download link.

https://thonny.org/

Copy the file under PICO_SPI_CAM/Python/ path except boot.py to the Pico device.

EasyBehavior

Open Thonny software, select environment and port number.

EasyBehavior EasyBehavior EasyBehavior EasyBehavior

Copy the boot.py from the PICO_SPI_CAM/Python/ path to the Pico device, restart the Pico, open the device manager, and use the new port number for USB communication

EasyBehavior EasyBehavior

Open the camera driver.

EasyBehavior EasyBehavior

Click Run, it displays [48], CameraType is OV2640, and SPI interface OK means that the camera is initialized.

EasyBehavior

Open hostapp.exe in the HostApp file,Select the port number for USB communication and click Image.

EasyBehavior

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published