Post

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:

  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

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 
  1. Preview of the Camera will appear on the display.

  2. Press the Push Button to take photo

  3. The photo will be saved in the location

1
/home/pi/
  1. Some of the photos

frame001 frame001

frame002 frame002

Thanks…

This post is licensed under CC BY 4.0 by the author.