Introduction: An Easy Way to Get Data From Your Vehicle

About: open source hardware | MCU | CAN Bus dev board | electronic modules | PCS (product customization service)

Here we introduce an easy way to get data from OBD-II connector of your vehicle, as well as GPS data. OBD-II, the Second On-Board Diagnostics, is an automotive term referring to a vehicle's self-diagnostic and reporting capability. OBD systems give the vehicle owner or repair technician access to the status of the various vehicle subsystems.

Step 1: What Do We Need

We need,

1. An OBD-II CAN Bus GPS Development kit from Longan-Labs.

2. An micro SD card

The development kit allows you to access your vehicle’s CAN bus via the OBD-II connector. The development kit can be connected (plugged) to your vehicle’s OBD-II port (On-Board Diagnostics port). The base board of the development kit is integrated with an Atmega32U4 microprocessor.
The CAN-Bus library is available to write sketches using Arduino IDE to send and receive messages from the CAN bus network and also allows you to fetch useful data from the messages. The output data can be taken through the USB Type-C port or you can store them to a micro-SD card (TF card) by inserting to the microSD slot. The main board in the kit is based on MCP2551 CAN transceiver and MCP2515 CAN receiver, which provides baud rate from 5kb/s to 1Mb/s. A NEO-6 GPS breakout is seated on the base board allows you to track your vehicle with this fantastic small module by logging the GPS data to a microSD card.

Step 2: Software

Few steps to follow:

1. Download the sketch from Github, which include the demo code and libraries.

2. You need a Typy-C usb cable for connect the board to a PC.

3. Open your Arduino IDE, and upload the sketch to the board. More details.

Step 3: Insert the Device to Your Vehicle

Insert a micro SD card to the board, then you can put the board to OBD-II connector of your vehicle.

OBD-II interface is generally below the steering wheel, you won't miss it.

Step 4: View the Result

You will get 2 file for each trip, an .csv file and a .kml file.

You can open the csv will with MS Excel, to get the speed, rpm as well as some others data.

KML file is the GPS logs, you can open it with Google Earth.

Enjoy your hacking!