Mini-Camera using RaspberryPie-3 MODB+
Here in this Project I made a working mini-camera using RaspberryPie-3 MODB+
Mini-Camera using RaspberryPie-3 MODB+
Components:
Working:
I used Debian OS for this project downloaded from here
Flash the image to an SD Card above 4GB of size using balena
After Downloading, connect camera and button
Camera needs to be connected to CSI camera connector.
One terminal of the button is connected to GPIO21 and other to GND pin of RaspberryPi
Open ThonnyIDE in RaspberryPi
Write this code or get it from Github here
1
2
3
4
5
6
7
8
9
10
from gpiozero import Button
from picamera import PiCamera
button=Button(21)
camera = PiCamera()
camera.start_preview()
frame=1
while True:
button.wait_for_press()
camera.capture('/home/pi/frame%03d.jpg'%frame)
frame+=1Use this code
Preview of the Camera will appear on the display.
Press the Push Button to take photo
The photo will be saved in the location
1
/home/pi/
- Some of the photos
Thanks…
This post is licensed under CC BY 4.0 by the author.