Arduino-based OBD-II Interface and Data Logger. CS 497 Independent Study Ryan Miller Advisor: Prof. Douglas Comer April 26, 2011

Similar documents
ALM-Inline. Accurate Lambda Meter V1.1.2 COPY RIGHTS ECOTRONS LLC ALL RIGHTS RESERVED.

Diagnostic Report. Monitor Status Report. Page 1 of 12. Date: 12/18/2016 9:17:03 PM

ELM327 OBD to RS232 Interpreter

ECUSimLite System User Manual

CAN-bus. Scanning of diagnostic trouble codes via OBD-II connector

Application Note: CANBus Commissioning

ELM327 OBD to RS232 Interpreter

Service Bulletin Buses

Testing Expo Comparison of OBD II Scan-Tool diagnostics for light-duty vehicles and heavy-duty trucks. Peter Stoß Director RA Automotive

Adaptive Cruise Control System Overview

Sensing the position of throttle valve using Throttle Position Sensor

Issue 2.0 December EPAS Midi User Manual EPAS35

Cat Electronic Technician 2016C v1.0 Product Status Report 3/6/ :16 AM

AiM Infotech. AiM Sequential CAN+UART protocol. Release 1.00

ZT-USB Series User Manual

SentryGOLD Fully-Automated Fuel Management System

QLS+ RC Series NEW QUALITY & LEVEL SENSOR (QLS+): ALL IN ONE SOLUTION FOR DIESEL EXHAUST FLUID (DEF) / ADBLUE TANK

EV Powercharger CAN protocol

USING OF dspace DS1103 FOR ELECTRIC VEHICLE POWER CONSUMPTION MODELING

Build Your Own Hive Monitor

SSI Technologies Application Note AT-AN6 Acu-Trac Off Vehicle Applications and Fuel Data Messaging. Table of Contents

5 FEATURES DDEC FOR MBE900 AND MBE4000

INDEX. 1.Safety Precautions and Warnings...3

Cat Electronic Technician 2017A v1.0 Product Status Report 7/10/2017 9:49 AM

Caterpillar Electronic Technician 2012C v1.0 Product Status Report 11/23/2013 2:25 PM

DIAGNOSTIC REPORT. Vehicle Components. Engine Cummins 15.0L ISX B0 BAC Brakes Bendix EC-60 Advanced ABS P

Table of Contents 1. INTRODUCTION GENERAL INFORMATION-ABOUT OBDII/EOBD PRODUCT DESCRIPTIONS OPERATIONS...11

SHARKY 775 COMPACT ENERGY METER ULTRASONIC

Energy Harvesting Platform

RS232. CAN. Integration with Tachograph Continental VDO DTCO

Technical Service Information Bulletin

IDST (Isuzu Diagnostic Service Tool) User Guide Table of Contents

Controller Area Network

Additional Instructions MHC-1 J1939

Alternative Fuel Engine Control Unit

IT IT R&D R&D Gl Glo Gl ba b l L ea L der d Idle Stop Technologies using ICT for high gas mileage Dr. Myunghee Son Nov.

The FLEX processes valuable vehicle data

Based Development of a PC and Smartphone Based Wireless Automobile Diagnostic System

CANBUS device reconfigure

INDEX: Eight Gauge Instrument Cluster: TM2 Code Page Description Number

OBD2DISPLAY MANUAL. 195 mm Length, 81 mm Width, 32 mm Height, OBDII connector + cable 1500 mm

Collision Avoidance System CAS-M light. Manual

WTEC III SHIFT SELECTOR

Motronic MS Electronic design. Functionality. Mechanical data. Conditions for use

Vehicle Anti-Theft Hand Brake System Using Finger- Print Scanner

Preliminary Design Report. Project Name: Digital Dashboard. Team Name: Uncensored Sensors

Build Manual. for Studying Electrical Conductivity using a 3D Printed 4-Point Probe Station

Caterpillar Electronic Technician 2012A v1.0 Product Status Report 9/23/2013 2:35 PM

AFP TM EAC Electrical Rotary Actuator

USER GUIDE incardoc ios

DASH RETRIEVED FAULT CODES C ONVENTIONAL FS65 SAF T LINER C2, C2E H YBRID SAF T LINER HDX, HD, ER SAF T LINER EF, EFX A LL Y EARS

The next generation car to smartphone technology is here. Kiwi 3 User Manual V1.0.6

Embedded System Based On Board Diagnostic (OBD) Tool for Vehicle Management and Safety

X11CA-IM MASTER MODULE

With PRO+ Datalogger:- Lambda (Air/Fuel Ratio)* Turbo Boost* Brake Pressure Front & Rear +Brake Bias*

OBD2 ECU Simulator. User Manual IMSB5010.

Automated Seat Belt Switch Defect Detector

How-To Convert a W8 Cluster for Use in a MKIV TDI By Greg Menounos

IFC-BL02 Interface Free Controller Brushless Motor Card

Owner s Manual. MG2000 Speedometer IS0211. for use with SmartCraft Tachometer

MARELLI MF4 Toyota ECU

2008 F-Super Duty Workshop Manual

SAFETY PRECAUTIONS. Warning: Read and understand all instructions in this. Electrical. Use and Care

Your smartphone is now a powerful automotive tool.

ALLIGATOR sens.it sensor intelligent technology. The universal TPMS solution for professionals

QLS-PL Series In Tank Urea Sensor

PRODUCT REQUIREMENTS

5 5 Supervisor Engine GE (Active) VS S720 10G SAL1313MAFM

Mercury HP gas-turbine. January 2008

New System of Controlling Electric Car Using Concept of Accelerometer

Holden VZ 3.6L ECU & Powertrain Interface Module Linking Instructions

Caterpillar Electronic Technician 2012C v1.0 Product Status Report 9/28/2017 8:32 AM

or, with the time and date option enabled using the CommFlags command:

DTC Summaries. W5A-580 Transmission Control System 1998 MY

DIAGNOSIS AND TESTING

EMISSION CONTROL SYSTEM

Declaration. EZ400 Diagnosis System

UniverSOL Charge Station

Connection. 1. Diagnostic socket 2. Adaptor 3. Main cable 4. PC-MAX main unit 5. PC 6. Wireless adaptor

USER S GUIDE. DHP PowrTuner User s Guide /21/2005 Page 1 of 137

9. Subaru Select Monitor

Parts Certificate Certificate for a part of a measuring system for LOTW

Cannondale Diagnostic Tool Manual

PLCC-28 OE91C1110. KWP2000 simulator v Features

MARELLI SRA EDL8 ECU

Orion BMS Purchasing Guide Rev. 1.2

PRODUCT REQUIREMENTS

Rotel RSX-1065 RS232 HEX Protocol

Vehicle Diagnostic Logging Device

Temperature Sensor. Positive + (to 5 volts.) Ground. To A0 To GND Signal. To 5v

EPAS Desktop Pro Software User Manual

Dispenser Communication Error Codes for units containing the DeLaRue SDD-1700 feeders only

AUDI ECU for A3, A4, TT (1800 cc) A6 ( cc)

RAM-Type Interface for Embedded User Flash Memory

Car Jackers - Project Proposal CS 3992 (Spring 2012) Team members: Jeremy Bonnell Tong Wu

SHIFT SELECTOR OPERATION AND CODE MANUAL

MISHIMOTO ENGINEERING REPORT

Quick Installation Guide for X50 Plus Car OBD Multi-function instrument Product introductions

ALM LSU ADV Manual. Accurate Lambda Meter With built-in LED display COPY RIGHTS ECOTRONS LLC ALL RIGHTS RESERVED.

University of New Hampshire: FSAE ECE Progress Report

Transcription:

Arduino-based OBD-II Interface and Data Logger CS 497 Independent Study Ryan Miller Advisor: Prof. Douglas Comer April 26, 2011

Arduino Hardware Automotive OBD ISO Interface Software Arduino Italy 2005 ATmega328 microcontroller 14 digital I/O pins 16 MHz clock speed 32 KB memory About $30 online Data Conclusions

Arduino Program sketches in Multi-platform Javabased IDE Code in C/C++ Serial Communication (currently USB)

Arduino Hardware Automotive OBD ISO Interface Software Hardware Goals of this project: Communicate with an automotive engine control unit (ECU) via the Arduino Gather and record instantaneous data that is reported by the vehicle Data Conclusions?

Hardware Vehicles produced in the U.S. after 1996 are required to have an OBD-II (on-board diagnostic) connector

Hardware OBD-II Interface Very simple connection for most applications Most important pins K-Line Ground +12V

Hardware Open-source project called OBDuino offered the interface schematic (which is fortunate, because I am not an EE major)

Hardware Open-source project called OBDuino offered the interface schematic (which is fortunate, because I am not an EE major)

Hardware Freescale MC33290 handles the tricky parts K-Line, Ground, and +12V go in Serial Tx/Rx come out

Hardware OBD-II

Arduino Hardware Automotive OBD ISO Interface Software Software A few functions to perform: Initialize ISO connection Request data from vehicle s ECU Display the result on the LCD and record the value to retrieve later Data Conclusions

Software Initialization: Starts by bit-banging 0x33 at 5 baud i.e. 0 0 1 1 0 0 1 1 200ms pause = 1.6 seconds

Software Initialization: Starts by bit-banging 0x33 at 5 baud Code: byte b = 0x33; for (byte mask = 0x01; mask; mask <<= 1) { if (b & mask) // Choose bit digitalwrite(k_out, HIGH); // Send 1 else digitalwrite(k_out, LOW); // Send 0 } delay(200);

Software Then you can start 10.4 kbps communication and perform these steps to finish initialization:

Software Parameter IDs (PIDs) SAE J1979 standard Examples: PID Bytes Description Formula 0x0C 2 Engine RPM ((A*256)+B)/4 0x0D 1 Vehicle Speed (km/h) A 0x11 1 Throttle Position (%) A*100/255 0x3F 2 Catalyst Temp (B2, S2) ((A*256)+B)/10-40

Software Steps: 1. Request PID with hex value 2. Continuously read data from ISO until successful checksum or timeout 3. Convert returned value with formula 4. Display / record value and repeat

Software 1. Request PID with hex value byte message[6]; Index Value Description 0 0x68 SAE J1979 standard 1 0x6A OBD-II request 2 0xF1 Off-board tool 3 0x01 Mode 1 PIDs 4 pid Hex value for PID requested 5 Checksum Computed from message for (int i = 0; i < 6; i++) iso_write_byte(message[i]);

Software 2. Continuously read data from ISO until successful checksum or timeout byte buf[11]; Byte(s) Description 0 Message Header 1 1 Message Header 2 2 Source Address 3 9 Data (up to 7 bytes) Final byte Checksum

Software 3. Convert returned value with formula ie.: PID Bytes Description Formula 0x0C 2 Engine RPM ((A*256)+B)/4 double rpm; rpm = ((double)buf[0] * 256) + (double)buf[1]) / 4.0;

Software 4. Record/display value and repeat Displaying on an LCD screen: LiquidCrystal lcd; lcd.print(rpm);

Software 4. Record/display value and repeat Writing to an SD card: File log; log.print(rpm);

Software One last note on PIDs PID Bytes Description Formula 0x10 2 Mass Air Flow Rate ((A*256)+B)/100 This gives you the rate of air in grams / second

Software You can convert g air s into gal gasoline h And then use vehicle speed to convert to miles gal gasoline or MPG

Arduino Hardware Automotive OBD ISO Interface Software Data Conclusions Data Scanned four PIDs over a 20-minute interval every 1-2 seconds Vehicle Speed Engine RPM Engine Coolant Calculated MPG

Data mph

Data mph rpm

Data C

Data C mph

Arduino Hardware Automotive OBD ISO Interface Software Data Conclusions Conclusions Embedded computing is ubiquitous Massive amounts of data generated by everyday machines Elec. Engineering and CS can come together to make some pretty cool things

Questions?