You are viewing an older revision! See the latest version

Car Diagnostics with CAN Communication

Device Description

Using CAN communication protocol we sought to connect to a vehicle's computing unit in which we would obtain real time data that would be displayed on an LCD screen. A mbed LPC1768 micro controller was used for this project.

Hardware

ARM microcontroller (mbed LPC1768), IC Transceiver CAN (MCP2551), DB9 breadboard adapter , OBDII cable, LCD display/resistive touch 2.4” 240x320 (DM-TFT24-104), 220 Ohm resistors (x 2)

Software

Five files in the project: globals.h, globals.cpp, OBDII.h, OBDII.cpp, and main.cpp. The main.cpp just serves to call the functions in the rest of the files, and only features a few lines of code. The global files are used just for making the CANMessage and CAN output, as well as a few other miscellaneous items. The OBDII files are where most of the magic happens, this is where the PID codes are defined, as well as the majority of the code, which still is much. The reading, writing, and decoding of the CAN information is all done in these OBDII files.

Program Flow

/media/uploads/Nrode17/screen_shot_2016-01-26_at_3.44.25_pm.png


All wikipages