An Easy Way to Get Data From Your Vehicle

by Longan Labs in Circuits > Arduino

5489 Views, 7 Favorites, 0 Comments

An Easy Way to Get Data From Your Vehicle

Can-Bus-GPS-in-Car-2.jpg

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.

What Do We Need

1030003-11_1.jpg
1030003-7_1_1.jpg
1030003-8_1_1.jpg
1030003-0_1.jpg

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.

Software

arduinoide.png

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.

Insert the Device to Your Vehicle

Case-Dimension-07.png
canbus-in-car.jpg

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.

View the Result

can_bus_gps_sz.jpg

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!