PiCAN2 CAN-BUS OBDII on the Raspberry Pi

PiCAN2 CAN-BUS OBDII on the Raspberry Pi

This project is a demo of PiCAN2 OBDII data logging for the Raspberry Pi.

The Pi and display are powered from the vehicle via SMPS on the PiCAN2 board.

Parts List

The software is written in python and can be downloaded from github. Before using the demo program, the PiCAN2 driver and Python-CAN need to be installed first.

To start logging start the program by:

python3 obdii_logger.py

To stop logging press CTRL C twice.

The data is stored in the SD card in CSV format. Example

1472070098.980251,55,38,761,0,13

The format are : time stamp, message count, temperature, rpm, vehicle speed, throttle position

Other values are possible depending on the vehicle type. A list of OBDII PIDs is available.

TODO. Need a better way to exit the program.

Sample Log file

Vehicle Speed plotted using Excel

Vehicle Speed plotted using Excel

Engine RPM plotting using Excel 

Engine RPM plotting using Excel