Difference between revisions of "F12: OBD-II Android Monitor"

From Embedded Systems Learning Academy
Jump to: navigation, search
(Schedule)
(Schedule)
Line 78: Line 78:
 
* Purchased Android tablet
 
* Purchased Android tablet
 
* Implement app GUI  
 
* Implement app GUI  
* App connects to ELM327 through bluetooth
+
* App can connect to ELM327
 
</td>
 
</td>
 
</tr>
 
</tr>

Revision as of 08:21, 9 November 2012

OBD-II Android Monitor

Abstract

Interfacing an ELM Electronics ELM327 OBD-II to RS232 interpreter to an Android mobile device. The Android mobile device connects to the interpreter via Bluetooth and gathers information through a designed application. The designed application will be able to gather real time information from the vehicle such as RPM, MPH, and intake temperature. The designed application will also be able to clear diagnostic trouble codes.

Features & Objectives

The OBD-II Android Monitor project establishes a wireless Bluetooth communication link between an Android mobile device and an automobile’s On-Board Diagnostics system (OBD). Information is transmitted between these components using an ELM Electronics ELM327 microcontroller. The ELM327 converts data from OBD-II protocols to RS-232, emulating the Bluetooth communication to run in serial port profile (SPP). To interface an Android device with the ELM327, an application will be designed. This application will have a graphical user interface (GUI) which will be able to display vehicle information such as MPH and RPM. The objectives for the OBD-II Android Monitor project is shown below.

  • Establish communication with vehicle on board diagnostics computer with Android device
  • Design and create Android Application with features of:
a) Gather real time vehicle engine information such as Intake temperature, Engine coolant temperature, MPH, RPM, MPG, etc.
b) Read and clear check engine lights (CEL)

Team Members

  • Ryan James Cristobal
  • Jonathan Luong

Roles & Responsibilities

Schedule

Week Number Date Tasks Tasks Completed

1

10/20 - 10/26

  • Gather and order parts
  • Install Android SDK and tools
  • Review component data sheets
  • Parts ordered on 10/25
  • Installed SDK on Eclipse and ADT (Android Emulator)
  • Obtained PDF of OBD-II datasheet

2

10/27 - 11/2

  • Gather and test components
  • Establish Android app requirements
  • Begin Android app design
  • ELM327 Controller Obtained, and tested.
  • User Interface Requirements Established
-ELM327 will use SPP to communicate between OBD-II and Android device
  • Android App functions:
-One screen to display data parameters
-Displayed data will be refreshed in real-time

3

11/3 - 11/9

  • Finalize Android app design
  • Begin Android app implementation
  • Establish App requirements
  • Purchased Android tablet
  • Implement app GUI
  • App can connect to ELM327

4

11/10 - 11/16

  • Establish communication link between OBD-II and Android phone
  • Develop UI design
  • ____
  • ____
  • ____

5

11/17 - 11/23

  • Continue UI design
  • Prepare system testing
  • ____
  • ____
  • ____

6

11/24 - 11/30

  • Begin system testing
  • Begin finalizing project report
  • ____
  • ____
  • ____

7

12/1 - 12/7

  • Finish project report
  • Finish system testing
  • Demo project
  • ____
  • ____
  • ____

Parts List & Cost

Hardware

  • ELM327 Bluetooth Microcontroller [$22]
  • Android Device (Android 2.2 or higher)

Software

  • Windows Vista / 7 (32 or 64-bit)
  • Eclipse IDE
a) Must be 3.6.2 (Helios) or higher
b) JDT Plugin (newer IDE packages will have this plugin included)
  • Android SDK
  • ADT Plugin (recommended but not required)
a) 20.0.0 or higher

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.

Android Application Requirements:

R1. The Android OBD-II Monitor application shall have a graphical user interface.
R2. The Android OBD-II Monitor application shall use Bluetooth wireless communication to connect to the ELM327 microcontroller.
R3. The Android OBD-II Monitor application shall be able to read engine trouble diagnostic codes.
R4. The Android OBD-II Monitor application shall be able to clear engine trouble diagnostic codes.
R5. The Android OBD-II Monitor application shall display multiple vehicle parameters on screen.
R5-a. Parameters can be determined by user (MPH,RPM, coolant temperature, air temperature, engine load percentage).

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:

Wifi Connection Issues

Many wifi connection issues were encountered. To solve this problem, a dedicated task was created to re-connect to wifi if the connection was ever lost.

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

Send me your zipped source code and I will upload this to SourceForge and link it for you.

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.