









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










By Sung Taek Kim David N Werner ECE 445, SENIOR DESIGN PROJECT FALL Spring 2005 TA: Chirantan Mukhopadhyay 3 May 3005 Project No. 27 i
One of the most useful tools an automotive technician or enthusiast has is a scantool. Starting in the late 1970s, many automotive manufacturers have added computers to engines, helping to finely control and tune operations, as well as indicate certain malfunctions. During the 1980s, the state of California mandated a series of standard outputs from these computers, known as powertrain control modules (PCMs) or engine control modules (ECMs) to also detect emissions violations. A malfunction indicator lamp (MIL) on the dashboard illuminates when the PCM detects an error, and data can be recovered from a standardized serial output, the J1962 standard. The current standard, the Onboard Diagnostic System II (OBD-II) is now mandated across the United States, as specified in the 1990 Clean Air Act. It covers all vehicles from the 1996 model year to today (and select 1994 and 1995 models). As the MIL activates, the mysterious words “Service Engine” confuse many drivers who are not tech- savvy, and often panic, thinking that their vehicle has a serious problem. The consumer then takes the car to a possibly unscrupulous technician, who can overcharge or make unnecessary repairs. A need for ordinary people to know what is wrong with their cars themselves and decide the priority of repairs for themselves presents itself.. The device described contains a simple, low-cost alternative to a commercial-grade code scanner that provides a clear, simple text message describing the meaning of the MIL to a driver.
1.1 Specifications The device functions by reading standard OBD-II protocol signals from the automobile’s ECM. The device only reads OBD-II error codes and displays the usually cryptic code in a human-readable format. Specific benefits over existing devices are: · Design for use by consumers, not technicians. The device supplements the existing “service engine” light in the dashboards by providing more detailed information about the vehicle’s state. · Less expensive than commercially-available scanners, which range in price from $200-$3000. · Instead of displaying error codes in the form Pxxxx, displaying useful information such as “Possible clogged fuel valve”. · Works with all vehicles built for sale in the US from the model years 1996-2008. Specific features include: · Compatible with the three standard OBD-II protocols: PWM, mainly used by Ford Motor Co., VMD, mainly used by General Motors, and ISO 9141 used by Chrysler and most foreign corporations. · Alphanumeric LCD display to display the diagnostic message. · Signal routing allows user to choose the appropriate OBD-II protocol. Designed as safety feature to prevent damage of internal microprocessor, vehicle ECM · Portable and lightweight. Some low-end commercial devices are approximately the size of a scientific calculator. The built device is the size of a large paper-bound book such as an almanac, Bible, or reference manual. 1.2 Subprojects The main portions of the project were to: build a preprocessing circuit that would detect a diagnostic trouble code and convert it to a standard microprocessor-readable format, to build a microprocessor unit that would look up, from the DTC sent, the appropriate text message and visually display it, to write a database of said text messages [10][11][12], and to provide basic user input. 1
2.1 Design Decisions The original plans for the preprocessing called for a TTL solution to select an OBD-II signal from a vehicle and read into the microprocessor. However, as OBD signals are in the 8-12V range, rather than the standard 5V, a different solution had to be implemented. The Elm Electronics corporation has chips, the ELM 320[2], ELM 322[3], and ELM 323[4], which respectively convert the PWM, VPW, and ISO 9000 protocols to standard RS232 formating[9]. Another early design that was abandoned was the use of a single PIC microprocessor. Instead, one PIC was used exclusively to control the Flash RAM, and the other handled input and output from the user, preprocessors, and the display. The reason why this decision was made was because a standard PIC 16F877A does not have the required amount of input and output pins to handle all of these data sources. 2.2 Tools Used The BP programmer and the microchip PIC C compiler were used to program the PIC processors[1][5]. Most other construction was used with a standard soldering iron.
3.2 Diagrams
From J 1962 (ECM Port)
User Input
Switches Serial Driver
Figure 3.1 Block Diagram Figure 3.2 The PWM preprocessing unit.
Figure 3.4 The ISO preprocessing unit.
Figure 3.5 Control and Processing Unit
One goal of the project was to make the device less expensive a commercial device, which range from $150 upward. The final estimated parts cost was approximately $120. Assuming economies of scale apply, a marketable version will retail in the low $100 range. Table 5.1 Budget Part Cost Number Used Total Cost Assorted Resistors $0.05 40 $0. Assorted Capacitors $0.05 30 $0. Assorted Diodes $0.10 20 $2. Green LEDs $0.37 4 $1. 3904 npn Transistors $0.10 8 $. 3906 pnp Transistors $0.10 10 $1. 7805 Voltage Regulator $0.25 5 $1. 7808 Voltage Regulator $0.25 1 $0. ELM 320 $15.00 1 $15. ELM 322 $15.00 1 $15. ELM 323 $15.00 1 $15. PIC 6F877A 2.65 2 5. AMD 29F002N BB Flash Ram 15.00 1 $15. Alphanumeric LCD $6.50 1 $6. J1962 Cable $15.95 1 $15. Wiring $5.00 N/A 5. PC Board 4.95 3 14. Labor: $25.00/hr x 8 hrs/wk x 2.5 20 x 15 weeks 15 $15000. Total $15115.
The device functioned properly, both displaying the proper messages for the correct OBD-II codes, and not falsely diagnosing vehicles with no error codes. The business world recognizes an unfulfilled demand for a device such as the one demonstrated. On 14 February, AutoXray Inc announced the CodeScout, a device that has a function very similar to the device described[13]. Additional features for later versions may include compatibility with manufacturer-specific codes, and more basic engine monitioring.
Websites: [1] PIC programming and test http://courses.ece.uiuc.edu/ece445/howtos/pic/designs/tstboard-1.1.ps [2] ELM 320 datasheet http://www.elmelectronics.com/thehome.html#ELM [3] ELM 322 datasheet http://www.elmelectronics.com/thehome.html#ELM [4] ELM 323 datasheet : http://www.elmelectronics.com/thehome.html#ELM [5] PIC program files : source codes from V:\ece445\PICC\TEST-1. [6] 74HCT139N datasheet http://www.ortodoxism.ro/datasheets/philips/74HC_HCT139_CNV_2.pdf [7] 74LS153 datasheet : www.ee.washington.edu/stores/DataSheets/74ls/74ls153.pdf [8] MAX232CPE datasheet: http://www.alldatasheet.com/datasheetpdf/view/MAXIM/MAX232CPE.html [9] RS-232 serial datasheet : http://eserver.bell.ac.uk/mirrors/dc100www/dc_008.htm [10] OBD-II reference: rec.autos.tech Manuals: [11] OBD-II reference: Chilton’s Auto Repair Manual 1995-1999, W.G. Nichols, 1998 [12] OBD-II reference: Chevrolet Lumina, Monte Carlo & Impala (FWD) 1995 thru 2001 Haynes Repair Manual, Haynes North America, Inc, 2001 Press Releases: [13] AutoXray Inc. Code Scouthttp://www.theautochannel.com/news/2004/11/02/269347.html