Loading...
Pages: [1]   Go Down
Author Topic: My home-brew Arduino OBD-II connection kit  (Read 14232 times)
0 Members and 1 Guest are viewing this topic.
Sydney
Offline Offline
Jr. Member
**
Karma: 1
Posts: 90
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

After many researches and attempts to connect an Arduino with my car through the OBD-II connector and having some successful works of car dashboard gadget, I’ve finally made a kit which enables those who want to playing with Arduino and their cars to jump start quicky.

I am maintaining an arduino library for OBD-II (with ELM327) as an open-source project on SourceForge.net. It provides Arduino developers an easy-to-use APIs to connect to and retrieve realtime data from a vehicle, which include:
  • Vehicle speed
  • Engine RPM
  • Throttle position
  • Calculated/absolute Engine load
  • Engine coolant temperature
  • Intake temperature
  • Intake pressure
  • MAF flow pressure
  • Fuel pressure
  • Barometric pressure
  • Ignition timing advance
  • Engine running time
  • Vehicle running distance
My kit consists of a modified ELM327-compatible adapter which can be wired with Arduino or other MCU boards. The adapter also provides 5V power supply, which is ignition controlled (put through when engine starts and cut off when engine stops). This  can provides power (up to 500mhA current, with reverse protection) for Arduino board, shields or some other attached devices, so a wire getting power from somewhere else is not needed. This helps to make the gadget you made looks tidy. The only interface to the car of the adapter is the OBD-II connector.





By having access to these data, the Arduino can compute, store or show the realtime vehicle status in any unique way.
Here is a fancy dashboard gadget I made for my car (with video).


If you are interested in my Arduino OBD-II connection kit, please see here for more details.
« Last Edit: March 14, 2012, 10:33:54 am by stanleyhuang » Logged


Netherlands
Offline Offline
Tesla Member
***
Karma: 90
Posts: 9414
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Familiar with this site - http://www.obd-codes.com/- ?

still on my wish list smiley
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does the kit come with an Arduino board?  I have an Arduino Uno and it doesn't look like the harness will work with it. I guess I would just have to take the 4 wires out of the harness and wire them to the appropriate pins?  What board is best to use with your adapter?
Logged

CO, USA
Offline Offline
God Member
*****
Karma: 4
Posts: 706
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like it's plugged into an Iteaduino. A Uno would be fine. Yes, you'd need to connect to VCC, GND, TX, and RX on your Uno, which aren't located in a 4-dip row as you see in the Iteaduino.
Logged

... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

London
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i am going to buy one for my wife's car. it will hopefuly prove how bad she drives.  smiley-eek
Logged

If only my wife was as easy to control as an atmega328!

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Stanley!
I would really like to buy your adapter but had a few questions about it.
1. It supports all protocols? And has the ELM327 autosearch mode (for non-CAN compliant cars)?
2. I want to add to your library by adding more AT commands - So does the adapter support all AT commands?
3. Can you let the power line be at 12v instead of 5v? I'd like the 12v to power other components on my arduino shields and let arduino's power converter deal with the 12v.

Thanks.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Stanleyhuang
I'm writing a similar application. I want to display the gear number in which the car is in but i'm having problem to get the pid or any relevant pids.
Can you provide me any formulas and any material or links which will help me. how where are you getting the gear number ?

cheers.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Stanly's website is down ...
I have bought the adapter, and I just got it ... and I can't find any documentation on how to connect it!!

Anyone used his adapter?
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 13
Posts: 1541
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did not see any problems with his web site.

The library itself is hosted on Sourceforge: http://sourceforge.net/projects/obdcon/
Logged

Smithfield, Rhode Island
Offline Offline
God Member
*****
Karma: 2
Posts: 825
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Where did you find the enclosure?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think this is awesome.

I've always used an OBDII reader on my car but always hassle with having to drag my laptop around or using up my phone, which also means I have to plan ahead and didn't have a seamless way with out sitting in the car getting everything started before driving. Should record everything even on quick trips around town without me doing anything or watching a screen.

I hope to give this a shot!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I'm looking to do the opposite, I have an aftermarket ECU which I can get data out of from via a serial cable but I'd like to make this available to the ODB port for the ELM to read so a standard ODB code reader/ODB software will work, is this likely to be possible with the experience you've gained from doing your project?

Thanks
Logged

Pages: [1]   Go Up
Print
 
Jump to: