A data recording and video capturing module written in Python for a Chevy Volt.
- CANtact OR CANable
- Raspberry Pi or other small computer/mini PC running Linux (if you use a Pi, you may want to also get a UPS for it as well for data backup operations after the car is turned off)
- Any secondary PC at home that is always on (preferably running some Linux distribution, but not necessary)
- A reasonably priced good to high quality webcamera. Personal recommendation: Microsoft LifeCam HD-3000
- Setup an SSH server on a home computer that will always be on.
sudo apt-get install openssh-server
- Create a public/private key pair on the car PC to use to login to your SSH server instead of using a password
ssh-keygen -b 4096
- Transfer the public key to the remote home computer
ssh-copy-id username@hostIP
- Create backup folder in home directory on the remote computer.
mkdir ~/backup/
- Specify the server IP, username, password, port number (default is 22 for SSH), and make sure
ifPassword = True
and setsshPass
in config.cfg.
- Specify the server IP, username, private key location, port number, and make sure
ifPassword = False
in config.cfg.
- On PC for car installation, clone a copy of Autom anywhere.
- Add
gnome-terminal -e "path/to/Autom/run.sh"
to startup applications on the car PC. If you are using Ubuntu, you can do this bycd
'ing to the root directory of this project and executing the following command:
echo -e "[Desktop Entry]\nType=Application\nName=Autom\nExec=gnome-terminal -e \"`pwd`/record/run.sh\"\nIcon=\nComment=\nX-GNOME-Autostart-enabled=true" >> ~/.config/autostart/Autom.desktop
- Make sure car PC has the home network as a known network.
- Plug in CANtact/CANable into vehicle OBD-II port and then into car PC usb port.
- Attach webcamera to front of rearview mirror to get a view of the road, then plug into car PC.
- Attach car PC to vehicle power source.
- Power on the PC and the car and start driving.