Raspberry Pi Camera module intended for Drone/Flight devices.
- Raspberry Pi Model 3 B+
- Raspberry Pi Camera Module
- picamera module (pre-installed with raspbian)
- time module (pre-installed with raspbian)
- os module (pre-installed with raspbian)
- random module (pre-installed with raspbian)
- USB (32GB+ Recommended for lengthy projects)*
*You can use the Raspberry Pi as the directory to save folders, but this is not recommended, unless if you're SD card can fit multiple videos during unhandled flight.
- Bootup Raspberry Pi
- Clone/Download the repository
- Open python file, and replace the "path" variable with the raspberry pi to your USB.
- Check if the USB path is correct, and change opacity & time settings to your liking.
- Program intializes picamera module, and checks if the USB directory exists.
- In the directory set, check if there is already a folder that exists with the set video name ('folder' in this case), if there is, iterate, until the folder name does not exist, set folder name as 'folder#' (# replaced with highest folder number).
- In video directory, do the same execution as setting a folder directory.
- Run Camera Module using opacity and time settings, save video as 'video#.h264', and repeat step 3, until the program is interrupted.