Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving images on the Raspberry Pi 4B from the OV5642 camera #572

Closed
emmanuel-nwogu opened this issue Mar 24, 2023 · 1 comment
Closed

Saving images on the Raspberry Pi 4B from the OV5642 camera #572

emmanuel-nwogu opened this issue Mar 24, 2023 · 1 comment

Comments

@emmanuel-nwogu
Copy link

How do I save images from an OV5642 cam connected to a Pi 4B? The most recent support message concerning this points to https://github.com/ArduCAM/RaspberryPi/tree/master/SPI_Camera but this mini-library streams images to an app and does not seem to save them onto the Pi itself. I would appreciate any pointers on how to do this.

@emmanuel-nwogu
Copy link
Author

I was able to get this fix to work for me. I forked @dhylands's version here and changed the following for my version:

  • Uncomment the BCM2835_PERI_BASE for raspberry pi 4 and comment the others in bcm283x_board_driver.h.
  • Set the CAM_CS1 in Arducam.h to the correct GPIO I was using

Inspired by ArducamDemo.c, I then wrote a Save_To_Pi.c that continuously wrote images to a text file. Here it is. It's very bare-bones but it's simple enough to let you (and future me) know how to save images. After writing this c code, I changed the makefile to build an executable for it instead. Here is the new makefile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant