Saturday, August 16, 2008

Making Aldl Cable To Connect PC To OBD1 Ecu

I've always wanted to connect my laptop to my GMC van OBD1 based ECU , a little research on the internet lead me to a simple circuit that could make that happen .

Simple One Transistor Circuit:
Aldl has a port for sending data and the RS232 on PC has a receive data pin (RxD) so the easiest way is to connect them directly but since each system uses a different voltage we should put a transistor between them .

The simplest ALDL interface circuit i could find consisted of one transistor and two 10k resistors it simply connected the data pin on the ALDL plug to the RxD(Receive Data) port on the RS232 on the PC through the transistor .
one transistor aldl circuit for connecting to gm obd1This circuit worked , but for some reason the response was slow , i couldn't make it work with a Usb-to-Serial converter , and on some PCs you can't take power from Pin4 so you have to connect it to 12v external power source (the resistor stays).

Two Transistor Circuit:
Since the first circuit performance wasn't great and the whole thing was messy , instead of refining the first circuit i thought i should try a new design .
This circuit consisted of two transistors one connecting the "ALDL data" to "RS232 Receive" , the other connects the "RS232 Send" to "ALDL Ground" .


The Circuit Diagram :
Two Transistor aldl Circuit for connecting to gm obd1
Parts Needed:
  1. 2 2N3904 NPN Transistor
  2. 3 10K Resistors
  3. 1 1N4148 Diode
  4. StripBoard
  5. DB9 Connector
  6. Car cigarette lighter Plug
Here is a picture the resistors , transistors , diode and DB9 connector:

resistors , transistors , diode and DB9 connector components of Two Transistor aldl Circuit for connecting to gm obd1
The Strip Board:

A strip board
The ALDL interface circuit components soldered to board:
soldered components on a strip board for the Two Transistor aldl Circuit for connecting to gm obd1...and the ALDL circuit with all the wires connected:
completed Two Transistor aldl Circuit for connecting to gm obd1a closer shot of the finished ALDL circuit:
completed Two Transistor aldl Circuit for connecting to gm obd1

Important definitions:
OBD1 / OBD2 : On-Board Diagnostic system is the ECU's operating system OBD1 was implemented early 1980's to 1996 , OBD2 from the year 1996 to present.
ECU / ECM : Engine Control Unit / Engine Control Module a device used in modern engines to control engine's operation .
ALDL : Assembly Link Diagnostic Link is an interface for communicating with the Ecu developed by GM for pre-OBD2 ECUs.


14 comments:

Unknown said...

sir it is a nice and informative post indeed. I want to know which software to use with it. I am planning to connect the daewoo cielo engine with this kit.

Thanks and regards

Mafak said...

Thanks, try using WinAldl its a great program you can find it here http://winaldl.joby.se/

Unknown said...

sir,

Thanks for the prompt response. I have another question. Can db-25 port (printer/parallel) can be used by using pin 3 (RxD), pin 2 (TxD) and pin 7 (Ground). (found from http://www.geocities.com/vbmcomputers/pinout/)

Hoping for prompt response.

Thanks and regards.

Unknown said...

Also another question. Is the ground you mention on the two transistor circuit, the car battery ground shorted with the aldl ground and db-9 ground

Thanks and regards.

Mafak said...

Yes you can use the LPT(printer/parallel) Port in theory but not with the winaldl software , i can't find a software that supports this port , and the ground is not connected to the car's battery ground , its only between the PC's and ECU ground . what year is your car and what engine size do you have ?

Unknown said...

I have a daewoo cielo dohc a15mf with 1.5 displacement. This engine is also analogous to opel kadett and vauxhaul astra.

I have another question i.e., if I use usb to db9 converter then is there need to install a driver for windows.

Thanks and regards.

Mafak said...

Hey Sander ,
Am not expert in electronics , so i don't know if it will work without the diode , but the one transistor circuit should work , try to connect the "DTR power pin" to the 12v from the car and 10k resistor .

I had too many problems when i tested this circuit , the location of the Data pin on the ALDL was different than i was told , i found it by trial and error , it maybe different on your car.

Usb to serial converters didn't work on my laptop , so i had to buy a PCMCIA serial card , which worked like a charm.

You can eliminate the ground link to the ALDL ,and connect the transistor's emitter and Pin5 of the serial port to the battery's negative.

Mafak said...

According to this website http://www.obd-ii.de/tech_com-uebe.html your car is OBD2 that uses the J1850-VPW protocol , so this circuit shouldn't work .

Unknown said...

The problem with the 1 transistor ckt is the collector pull-up. It needs to be 1/10 of the base R, or about 1k.

Jack said...

Hopefully someone is still here to answer a few questions I have about this. The 12v plug appears to have the wires twisted together and then both connected to the resistor. Is that correct?

Fabrice said...

I made exactly the same, except that I used 2N2222 transistors, as they say on http://winaldl.joby.se/aldlcable.htm 4 different references of transistors can be used for the first diagram, and one part of it, is this the case for this?
Since my computer does not have RS232 I bought a USB RS232 converter, the signal passes with Winaldl but it displays only the first 5 rows of raw data and all other pages are blank lines and the same is DASH to zero, I have a 12V cigar lighter of (with 14V alternator load).
What can it come?

xJWx said...

i know its been a while since this so i hope u still follow it. is it possible to use usb2.0 or firewire instead of i/o? and if so what would the pinout be?

thanks either way,this was really helpful!

xJWx

Unknown said...

I'm not great with electronic diagrams but hold my own. I would like to know if this would work using a USB cord instead of the serial port. I have the cable but can't find anything on line to convert it to a aldl connector. I'm going to hook up to my 93 Saturn sl2 for HHO tuning.

Thanks

msa said...

maybe i try . something happen ?