Raspberry Pi CAN-Bus & Dash-Cam System

Project ODASHI

Project ODASHI (Onboard Diagnostics Assistant Serving Helpful Information) is a Raspberry Pi-based CAN-Bus reader and dash-cam system. It is designed to be a cost-effective solution for handling a variety of smart-car features in a secure manner. The system utilizes a Raspberry Pi 5, USB camera, and CAN-Bus interface to provide the following features:

  1. Car system diagnostics
  2. Dashcam recording
  3. Apple Carplay
  4. Voice activated commands

How to build your own Raspberry Pi Zero Dash-cam:

  1. Install Raspberry Pi OS Lite on a Raspberry Pi Zero
  2. Connect your USB camera of choice (I am using a Logitech Webcam)
  3. Update the system (sudo apt update && upgrade)
  4. Run
    v4l2-ctl --list-devices
    to show you your webcam's information
  5. Create the following script in /usr/local/bin/
                        
    #!/bin/bash
    cd /home/pi/videos
    find /home/pi/videos -type f -name "*.mjpeg" -mtime +14 -delete
    
    ffmpeg -f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 30 -i /dev/video0 -c:v copy -f segment -segment_time 60 -segment_atclocktime 1 -strftime 1 "dashcam_%Y%m%d_%H%M%S.mjpeg"
                        
                    
  6. Set the script to run on startup
  7. Install react-carplay
  8. Attach a CarPlay converter from CarlinKit
  9. Connect the Raspberry Pi to a touchscreen (I prefer the Adafruit 3.5" TFT LCD)
  10. Start customizing to your need!