Python program for Raspberry Pi to take pictures, images and stream to hdmi output by using GPIO pins and Raspberry Pi camera module.
β Take picture by just pressing on the picture/video button.
β Record video by holding the picture/video button.
β Stream camera preview to hdmi output by pressing hdmi button.
β Automatically converts recorded videos from .h264 to .mp4.
β Creates thumbnail pictures of the recorded media (video & picture).
β Pictures, videos and thumbnails are recorded into the following directory "./Raspberry-Pi-Action-Camera/media/"
β Pictures and videos are recorded with a name based on the date format and amount of pictures/videos in target folder.
β LED's are used to indicate the current process of the program, see below.;
β Green Led (cont.) -> Program is ready to take commands.
β Blue Led (cont.) -> HDMI mode is active, see hdmi output.
β Red Led (cont.) -> Taking picture.
β Red Led (blink) -> Recording video.
β Enable camera support with the following commands:
β sudo raspi-config
β Select Option "5 Interfacing Options", then "P1 Camera", then Yes.
β Exit and reboot your Pi.
β Update your RPi with the following commands:
β sudo apt-get update
β sudo apt-get dist-upgrade
β sudo apt-get install git
β Clone the code from github with the following commands:
β git clone https://github.com/sbkomurcu/Raspberry-Pi-Action-Camera.git
β cd Raspberry-Pi-Action-Camera
β Connect buttons and leds onto GPIO pins on the RPi based on the following pins ( see below for connection scheme);
β Green Led -> GPIO 13
β Blue Led -> GPIO 19
β Red Led -> GPIO 26
β Picture/Video Button -> GPIO 5
β Hdmi Button -> GPIO 6
β Run python program with the following command;
β sudo python3 main.py
