top of page

Mini-Camera using RaspberryPie-3 MODB+

Here in this Project I made a working mini-camera using

RaspberryPie-3 MODB+



Components:


  1. RaspberryPi-3MODB(link)

  2. RaspberryPi Camera(link)

  3. Push Button(link)

  4. Breadboard(link)

  5. Jumper wires(link)


Working:


  1. I used Debian OS for this project downloaded from here

  2. Flash the image to an SD Card above 4GB of size using balena

  3. After Downloading, connect camera and button

  4. Camera needs to be connected to CSI camera connector.

  5. One terminal of the button is connected to GPIO21 and other to GND pin of RaspberryPi

  6. Open ThonnyIDE in RaspberryPi

  7. 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...

13 views0 comments

Recent Posts

See All

Comments


bottom of page