OBD II Based Vehicle Management System

All modern vehicles today include an Engine Control Unit (ECU). This unit is responsible for the co-ordination of all sub systems of the vehicle such as the Anti-Locking Braking system (ABS) and the fuel ignition system etc. The ECU reads sensor values from various parts of the engine and depending

2025-06-28 16:34:17 - Adil Khan

Project Title

OBD II Based Vehicle Management System

Project Area of Specialization Electrical/Electronic EngineeringProject Summary

All modern vehicles today include an Engine Control Unit (ECU). This unit is responsible for the co-ordination of all sub systems of the vehicle such as the Anti-Locking Braking system (ABS) and the fuel ignition system etc. The ECU reads sensor values from various parts of the engine and depending on these values it performs the appropriate actions. If errors occur in the engine management system, such as a miss-fire in the engine, the ECU must log this error and if serious enough, illuminate the Malfunction Indicator Lamp (MIL) on the dashboard to notify the driver. All this information is made available to scan tools and fault code readers using the Onboard Diagnostics (OBD) protocol. We intended to develop an OBD compliant device capable of communicating with OBD enabled cars and perform basic performance testing and diagnostics in real time along with additional features by developing a low cost OBD complaint data analyzer and logger that would work on cars of different brands. Additional features include maintaining event logs onboard besides enabling local technicians/mechanics with a low-cost indigenous solution for quick diagnosis and other data analytics for future applications.

This system is supposed to provide a measure of real-time diagnostic information, since the OBD system monitors vehicle performance while the vehicle is being operated. The system also stores engine operating conditions and parameters upon the detection of a malfunction. These performance measurements, and the reporting of performance via stored codes, provides a repair technician with on-road engine parameter data that may not be available via tests conducted at a repair facility. The purpose of this project is to make a low-cost module that can ensure that real time as well as logged/stored information is freely available to drivers and mechanics. This can give the driver more insight into what is occurring in their car in real time. The driving behaviors that are monitored are ones that influence the likelihood of the driver crashing or the severity of the crash and for mechanics useful information is about vehicles health. The objective of this project is to design a low cost On Board Diagnostic device indigenously for all major manufacturers. The solution will be acquired using modern technology by interfacing microcontrollers and other devices within a given period of time.The futuristic projection is towards development of an IoT enabled platform for Big-data analytics that may ensure safe and smart transportation.

Project Objectives

We intend to design and develop an OBD data-logging system to monitor a wide range of engine parameters. Microcontroller’s will be used to tap into the CAN Bus, decode its signals and store/display the extracted parameters according to users’ instructions. Overall goal is to provide a flexible indigenous solution that will keep track of vital engine parameters throughout its lifetime, which is crucial for vehicle’s security, performance, fault diagnosis in advance analyzing driver's behavior and enabling local technicians/mechanics with a low-cost solution for quick fault identification for cars presumably from most common vendors. This prototype will be the enabler platform for IoT multi-node communications and may act as a crucial development towards safer and smarter transportation by integration of Big data analytics.

The main objectives of this Final Year Project are:

Project Implementation Method

The systematic breakdown in developing our solution includes:

The solution consists of three major subsystems as depicted in the following functional block diagram of our project.

OBD II Based Vehicle Management System _1582925425.png

Subsystem 1: Includes power scaling circuit Functional Unit (FU) 2.5 to provide power from OBD data link connector. This unit will take 12V supply from car’s battery and translate it to 5V supply to the entire module.

Subsystem 2: Includes an OBD data reader FU 2.1 supporting OBD 1.5 and OBD 2.0 protocols to directly interface with the CAN Bus for fetching the engine parameters for data logging and fault codes for runtime diagnostics as desired by the user. Functional units 2.2, 2.3 and 2.4 represent the decoding, processing and directing the fetched data towards display LCD and onboard storage. These processes are to be accomplished using an AVR Microcontroller by defining proper architecture in coding. 

Subsystem 3: This subsystem includes onboard storage module (a micro SD card) for data logging and an LCD along with keypad/joystick for visually inspecting data in the runtime for displaying previous event logs and navigation through the software defined menus.

Benefits of the Project

This indigenous invention will benefit users from various avenues starting from empowering local electronics manufacturing industry to supporting our country’s economics by reducing imports for other countries, as no such device is being manufactured locally in Pakistan. Devices that are being used currently do not offer such features in the first place and are expensive and put burden on the GDP as we are bound to import them. This system may provide an opportunity for a motorist to have emissions problems (or potential problems) corrected before or soon after they occur by monitoring logs, which may lead to an ecofriendly solution.

The service and repair industry may benefit from diagnosis of all major makes and models that is provided by OBD compliant vehicles by significant reduction in the complexity and cost of instrumentation hardware for repair facilities. For areas that employ Inspection and Maintenance programs as a tool for reducing excess emissions from in-use vehicles.So, this device can provide benefits for both the motorist and the repair industry. Other application areas that may benefit broadly from this device includes:

Technical Details of Final Deliverable

Final deliverable will be a configurable electronic prototype module capable of performing all the desired tasks and routines. For proper coordination among all the devices as mentioned in implementation methods, AVR microcontroller (ATMEGA 32) will be programmed in such a way to display menus on the LCD and keypad/joystick shall be used for navigation though different menus. At engine startup the module will be enabled and shall start logging the parameters and events in the onboard storage element, using SPI protocol, with proper timestamp from the real time clock circuit, using I2C protocol, till the end of vehicle’s trip. Later these files can be accessed by the owner for data analytics for judging driver’s behavior during the trip. Similarly, another menu can be selected for extracting and displaying the desired ECU data in the runtime for diagnosing any faults in the engine or other sensors. The overall architecture of this project is shown below.

OBD II Based Vehicle Management System _1582925426.pngA general-purpose reconfigurable prototype developed so far for this purpose is shown below:

OBD II Based Vehicle Management System _1582925427.png

Final Deliverable of the Project HW/SW integrated systemCore Industry TransportationOther Industries IT , Energy , Finance , Manufacturing , Security Core Technology Clean TechOther Technologies Internet of Things (IoT), Big DataSustainable Development Goals Decent Work and Economic Growth, Industry, Innovation and Infrastructure, Climate ActionRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 11536
DS1307 DS1307N DIP8 RTC SERIAL 512K I2C Real-Time Clock Equipment435140
8pin Micro SD card slot connectors, SMD 4 Fixed feet TF card deck Equipment445180
LE33 Positive Voltage Regulator Equipment820160
2.2microFarad capacitor Equipment5315
330microFarad Capacitor Equipment5420
560 Ohms Resistors Equipment20120
330 Ohms Resistors Equipment20120
Resistor Pack Equipment61378
2.7K ohms Resistors Equipment20120
PCB Standoff 18mm Equipment45290
74HC125 Quad Buffer/Line Driver (3-State) Equipment425100
Dupont 40-Wire 30cm Cable Line color Male to Male Pin Connector Equipment1270270
40 Wire Multicoloured AWG26 Ribbon Cable (Per Foot) Equipment285170
BLOCK Connector L-Type 2POS 5.08MM 300V 15A Equipment51260
16 MHz Crystal Oscillators Equipment41560
10K ohms Potentiometer Equipment31545
22pF capacitor Equipment616
L7805CV Positive Voltage Regulator TO-220 Equipment51680
1K ohms resistors Equipment24124
4.7K ohms resistors Equipment20120
1K ohms potentiometer Equipment41560
33pF capacitors Equipment10110
220 micro Farad capacitor Equipment5420
470 micro Farad capacitor Equipment5630
Female Header Equipment21224
20 Pin Flat Base Equipment267182
diode 1N4007 Equipment6212
10uF 35V Polar Radial Electrolytic Capacitor Equipment10330
0.1uF 50V Polar Radial Electrolytic Capacitor Equipment12224
push lock button Equipment61060
push on Equipment1010100
DC Socket Equipment21632
40 Pin Zif Socket Universal SH C0E8 Equipment3125375
0.1 microFarad Multilayed Capacitor Equipment6530
ATMEGA32A-PU Atmel 16MHz 8-bit 32KB MCU Equipment2400800
double row female header Equipment42288
3 Way Plug with Lead JST-XH Equipment7856
74HC541 Octal Buffer/Line Driver (3-State) Equipment1240480
Power male jack adopter Equipment23570
2 way straight header Equipment21224
10 SEG Red Equipment32884
32.768 KHz Crystal Oscillators Equipment41352
2 pin female cable Equipment41040
LED Red Green (Centre Ground) DIP-3 Equipment12560
40 Pin Single Row Male Header 11mm (2.54mm Pitch) Equipment41040
Mini Shorting Jumper with Handle for 2.54mm Header Equipment10660
2Pin Female XH-Style Cable 2.5mm Equipment2612
Tact 2 Pin 6x6x5mm long Equipment10440
80 Pin Double Row Male Header 11mm (2.54mm Pitch) Equipment21632
100 Ohm 1/4W 5% Resistor Equipment20120
8 Pin Flat Base IC Socket DIP-8 Equipment4520
14 Pin Flat Base Equipment4520
200 Ohm 3386 Potentiometer Variable Equipment41560
CR-2032 Cell Equipment51260
2GB Memory Card Equipment1300300
LED Bar Graph Equipment840320
Resistor Pack Equipment61378
Female Header Equipment91090
100pF capacitor Equipment6318
LCD 20x4 Equipment1650650
Soldering Iron Equipment2350700
Soldering paste Equipment32060
Soldering wire Equipment1160160
Soldering iron tips Equipment2100200
Soldering iron element Equipment1100100
Male to Female wire connectors Equipment12448
Wire crimp shell connector Equipment206120
OBD-II to DB9 Cable Equipment118071807
CAN Bus Shield Equipment122002200

More Posts