Ever want to capture video from a model rocket? With the new low-cost Raspberry Pi Zero, now you can!
Properly configured, this script will run when you boot your Pi. If it detects that the camera is attached, it will turn on the LED attached to GPIO pin 17 and begin recording. It will record for 2 minutes, stop capture and power off the Pi.
The initial version of this project just captured video and stored it in the Videos folder of the current user. With this verison, GPS data is captured as well.
We weren't able to get gpsd to work reliably, so we just capture the raw NMEA data from the serial port which is why the script
must be run via sudo
.
- Adafruit Ultimate GPS Breakout - 66 channel w/10 Hz updates - Version 3
- PowerBoost 500 Basic - 5V USB Boost @ 500mA from 1.8V+
- Raspberry Pi Camera Board v2 - 8 Megapixels
- Raspberry Pi Zero v1.3 Camera Cable
- Lithium Ion Battery - 3.7v 2000mAh
- Raspberry Pi Zero - Version v1.3
Clone this repo on your Pi. Edit your .bashrc to run rocket.py. This should be the last line -- and you'll need to run it as root to access the serial port:
sudo rocket-pi/rocket.pi