Here in this Project I made a working 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
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
8. Preview of the Camera will appear on the display.
9. Press the Push Button to take photo
10. The photo will be saved in the location
/home/pi/
11. Some of the photos
Thanks...
Comments