I wanted to make my own helmet cam which would also show data about what was going on (e.g. speed, altitude, temperature).
The starting point was my Raspberry Pi GPS Tracking Car Dash Cam, this gave me some code for gathering GPS data, recording video and generating data overlay video’s.
I came up with a 1 led, 1 button design; the led flashes when the cam is ‘ready’ (quickly when there isn’t a GPS fix, slowly when there is GPS fix), the led comes on when the camera is recording, a short button press starts / stops the camera and a long button press shutdowns the helmet cam.
I set about writing the code which would run at start-up of the Pi and control the camera, waiting for the button to be pressed, controlling the led, reading the GPS data and temperature data and start / stop the camera….