This project is geared towards those with some intermediate computer skills, particularly the Linux command line. If the command line intimidates you don’t be afraid. There are plenty of samples for you to copy and paste. The car portion is easy: just plug it all in, put it out of the way, and you’re good to go.
You can even set all this up on a motorcycle.
This hardware provides everything you need for using your Pi. For use in the car, you’ll need something like an AC inverter. Some inverters also have USB plugs so that you can plug the Pi’s USB cable directly into the inverter. My favorite for years has been this affordable and durable
$25 Bestek. It has 2 AC outlets and 2 USB plugs.
Once this goes beyond hobby level you’ll also need a good case for the Pi. Standard cases won’t fit if you use the Pi UPS mentioned later. In future iterations this project will add extra sensors that’ll throw off the size and shape of the Pi. But for now, any random Pi case will do.
- Raspberry Pi (Model B)
- 32 GB SD Card (8 GB minimum. The more the better, especially for storing dash cam footage)
- USB Micro cable
- AC/USB adapter
- GPS receiver
- Pi UPS
- Basic computer hardware
- Linux command line
High Level Steps
- Setup the Raspberry Pi
- Run the setup script to register your Pi and store your data
- Plug the Pi into your car’s cigarette lighter for power and neatly tuck everything in
- Drive around and let the Pi record your car’s analytics
- Export, access, and make sense of all that data
Things to do post-setup
Advanced Hardware Setup
Let’s make the Pi more durable for your day to day car use. Firstly, it’s highly recommended you get this Pi UPS (Uninterruptible Power Supply). The Pi should not suddenly have it’s power plug pulled as this’ll eventually corrupt the SD card and damage the hardware. Since you can’t shut it down properly in your car, the Pi UPS allows your Pi to shut down properly when the car is shut off and power is suddenly unavailable.
Installation is really simple. Plug it in, then download and their software using the commands below:
cd /home/pi wget http://www.piups.net/support/piusvmonitor.deb sudo dpkg -i piusvmonitor.deb
After you’re done, unplug the Pi and plug the power cable (micro-USB) into the PiUPS instead of the Pi. Now the power is going through the PiUPS instead of directly to the Pi. So when your car is shut off and power is cut, the PiUPS will use its battery power to safely shut down the Pi.