F16: OBD2 Reader

From Embedded Systems Learning Academy
Revision as of 02:24, 18 December 2016 by 146 user15 (talk | contribs) (CAN Bus)

Jump to: navigation, search

Grading Criteria

  • How well is Software & Hardware Design described?
  • How well can this report be used to reproduce this project?
  • Code Quality
  • Overall Report Quality:
    • Software Block Diagrams
    • Hardware Block Diagrams
      Schematic Quality
    • Quality of technical challenges and solutions adopted.

OBD2 Reader

Abstract

OBD2

The OBD2 reader is an on board diagnostic device that will translate the diagnostic code from the vehicle's ecu to an understandable and readable data for the user. This device will use several protocols learned in 146 lab as well as other techniques featured in the Socialledge Wiki in order to implement the design. The cars onboard ECU takes all the sensory data from several sensors and units and translates this into hexadecimal number and outputs it through its OBD2 port. Our OBD2 ready device will link with the car’s ECU and takes this information and compares it to the database codes that will indicate the problem with the vehicle. Once the codes from the ECU to our board match they will display the result on the additional LCD device. The LCD device will be implemented on top of our board using the I2C protocol. This device will display the error with the vehicle with diagnostic suggestions and methods of approach.

CAN Bus

CAN(Controlled Area Network) Bus is the bus standard for all vehicles. CAN Bus allows multiple control units and devices to communicate with one another and no host computer is needed. Some devices that can be found connected to the CAN Bus are the control unit for the airbags, the anti-lock braking system, the power steering system,the sensor that detects when an object is too close to your car and the OBD connector.

The CAN Bus is made up of two wires: CAN-H (CAN High) and CAN-L (CAN Low). Both wires connect to all devices on the bus. When the CAN-H receives a signal, the CAN-L also receives the same signal but with an opposite amplitude. The reason for this is to reduce the chance of the data being corrupted because it is less vulnerable to noise. The CAN-H wire can go from 2.5V to 3.75V and the CAN-L wire respectively can go from 2.5V down to 1.25V.

When the CAN Bus is implemented on a vehicle, both CAN-H and CAN-L wires must be twisted together with two 120 Ohm terminating resistors. By having the wires twisted together, they are able to eliminate any noise. The two terminating resistors are connected to both ends of the bus to eliminate any signals from reflecting.

Objectives & Introduction

This project aims to design an OBD2 reader using the SJOne LPC 1758 board. The reader will display a vehicle's Engine Control Unit (ECU) information via an LCD screen.

Objectives:

  • Interface the SJOne board with the OBD2 reader
  • Store and read external memory module through SJOne board
  • Interfacing SJOne to external LCD or OLED display

Sensors and Peripherals Used:

  • ECU (information source device)
  • SJOne (for processing information)
  • External Memory and Memory Interface
  • LCD or OLED (display vehicle diagnostics)

Team Members & Responsibilities

  • R Nikfar
    • Electrical Engineering Advising, Can Bus protocol Design, Eagle PCB design, Electrical Components, Firmware Coding, and Mechanical Engineering sensor and Component Debugging.
  • Samira Oliva
  • Samuel Palomino
  • Erik Sanchez

Schedule

Week # Start Date End Date Planned Tasks Status Actual Outcome
1 10/30/16 11/05/16
  • Project proposal
  • Research parts
  • Order basic parts
  • Rough design
Completed
  • Proposal approved.
  • Purchased OBD2 to DB9 adapter.
  • Ordered OLED Display.
  • Finalized group logistics.
2 11/06/16 11/12/16
  • Order remaining parts
  • Finalize design
  • Generate schematic
In Progress TBA
3 11/13/16 11/19/16
  • Set up interface OBD2 to SJOne
  • Set up interface SJOne to external memory
  • Set up interface SJOne to OLED display module
Incomplete TBA
4 11/20/16 11/26/16
  • Decode OBD2 outputs using external memory
  • Fetch & store procedures with external memory
  • Implement display module driver software
Incomplete TBA
5 11/27/16 12/03/16
  • Finalize fetch & store procedures
  • Integrate display module driver with fetched data
Incomplete TBA
6 12/04/16 12/10/16
  • Finalize software interface
  • Debugging & testing
  • Create housing/enclosure box for system
Incomplete TBA
7 12/11/16 12/17/16
  • Debugging & testing
  • Write Report
Incomplete TBA
8 12/18/16 12/20/16
  • Finish report
  • Demo Presentation
Incomplete TBA

Parts List & Cost

Give a simple list of the cost of your project broken down by components. Do not write long stories here.

Item Qty. Price (Total) Description
SJOne Board 1 $80.00 SJOne board
OBD2 to DB9 Adapter 1 $6.99 Connects the vehicle's ECU to SJOne board
OLED Display 1 $9.99 I2C 128x64 Display Module
TBA X $X TBA

Design & Implementation

The design section can go over your hardware and software design. Organize this section using sub-sections that go over your design and implementation.

Hardware Design

Discuss your hardware design here. Show detailed schematics, and the interface here.

Hardware Interface

In this section, you can describe how your hardware communicates, such as which BUSes used. You can discuss your driver implementation here, such that the Software Design section is isolated to talk about high level workings rather than inner working of your project.

Software Design

Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedocode and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.

  • communication Protcols

Implementation

This section includes implementation, but again, not the details, just the high level. For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash. You can include sub-sections for each of your component implementation.

Testing & Technical Challenges

Describe the challenges of your project. What advise would you give yourself or someone else if your project can be started from scratch again? Make a smooth transition to testing section and described what it took to test your project.

Include sub-sections that list out a problem and solution, such as:

My Issue #1

Discuss the issue and resolution.

Conclusion

Conclude your project here. You can recap your testing and problems. You should address the "so what" part here to indicate what you ultimately learnt from this project. How has this project increased your knowledge?

Project Video

Upload a video of your project and post the link here.

Project Source Code

References

Acknowledgement

Any acknowledgement that you may wish to provide can be included here.

References Used

List any references used in project.

Appendix

You can list the references you used.