Pennock's Fiero Forum
  Technical Discussion & Questions - Archive
  Electronics question, MAX232-based interface

T H I S   I S   A N   A R C H I V E D   T O P I C
  

Email This Page to Someone! | Printable Version


Electronics question, MAX232-based interface by JazzMan
Started on: 06-15-2003 11:19 PM
Replies: 11
Last post by: JazzMan on 06-19-2003 11:49 PM
JazzMan
Member
Posts: 18612
From:
Registered: Mar 2003


Feedback score:    (7)
Leave feedback





Total ratings: 653
User Banned

Report this Post06-15-2003 11:19 PM Click Here to See the Profile for JazzManSend a Private Message to JazzManDirect Link to This Post
I cobbled this together tonight. I used the basic schematic from here:
http://www.techedge.com.au/vehicle/aldl8192/8192hw.htm

but changed the MAX232 output from the CTS pin to the RxD pin since that's what Andy's WinALDL seems to listen to:
http://w1.601.telia.com/~u60113744/software/winaldl/aldlcable.htm

I only built the 160 baud side of the circuit for now since I don't have any running 8192 baud cars.

Here's a pic of what I built:

Note, I'm using a 7805 powered from the car's 14.5v supply at the cigarette lighter. The MAX232 draws 10mA, so the 9.5V drop x 10mA gives me about 950mW power dissipation, that should be well within the limits of the 7805. I may put a heat sink on it just to be sure.

One question: should I connect the ground of the ALDL to the ground of the car? Is there a risk of ground plane potential difference causing current flow in the ECM where there should be none?

Look forward to your input.

JazzMan

[This message has been edited by JazzMan (edited 06-15-2003).]

[This message has been edited by JazzMan (edited 06-15-2003).] (someday I'll figure out this html thing)

[This message has been edited by JazzMan (edited 06-15-2003).]

IP: Logged
PFF
System Bot
JazzMan
Member
Posts: 18612
From:
Registered: Mar 2003


Feedback score:    (7)
Leave feedback





Total ratings: 653
User Banned

Report this Post06-16-2003 08:04 PM Click Here to See the Profile for JazzManSend a Private Message to JazzManDirect Link to This Post
Well crap, it didn't work. The LED I have in the output side (with a 1k resistor) is flickering, so I am getting some sort of signal out of the MAX232, but all WINALDL would do was scroll info on the PROMIDA and PROMIDB fields. I tried setting for different baud rates, different ECMs (mine should be the 7170), but to no avail My best guess is that I need to invert the signal, but does anyone else have any thoughts? Oh, there's a small square white window at the top of the WINALDL raw data screen that is not labeled, and it was flashing red with the number 5 in it. Mean anything to anyone?

Thanks!

JazzMan

IP: Logged
Darth Fiero
Member
Posts: 5921
From: Waterloo, Indiana
Registered: Oct 2002


Feedback score: (5)
Leave feedback





Total ratings: 361
Rate this member

Report this Post06-16-2003 11:30 PM Click Here to See the Profile for Darth FieroClick Here to visit Darth Fiero's HomePageSend a Private Message to Darth FieroDirect Link to This Post
Hey Jazz, I tried building an ALDL interface based on the MAX232 chip and it also did not work for some reason. However, I built a much simpler version based off 2 transistors and it works beautifully with WINALDL and DATAMASTER. Try this one:

let me know if it works for you.

------------------
Fiero-related Conversions Performed:

1985 SE 3800 Series 1 SC 4T60-E
1987 Coupe 3800 Series II Turbocharged 4T60-E
1987 SE 3.4 TDC 5-speed
1984 Coupe SBC V8 non-OD to 4T60 OD swap, electric power steering install
1985 SE 3800 Series II Supercharged 4T60-E

http://dtcc.cz28.com

IP: Logged
edhering
Member
Posts: 4031
From: Crete, IL
Registered: May 2002


Feedback score: N/A
Leave feedback





Total ratings: 108
Rate this member

Report this Post06-17-2003 12:47 AM Click Here to See the Profile for edheringClick Here to visit edhering's HomePageSend a Private Message to edheringDirect Link to This Post
 
quote
Originally posted by JazzMan:

Well crap, it didn't work. The LED I have in the output side (with a 1k resistor) is flickering, so I am getting some sort of signal out of the MAX232, but all WINALDL would do was scroll info on the PROMIDA and PROMIDB fields. I tried setting for different baud rates, different ECMs (mine should be the 7170), but to no avail My best guess is that I need to invert the signal, but does anyone else have any thoughts? Oh, there's a small square white window at the top of the WINALDL raw data screen that is not labeled, and it was flashing red with the number 5 in it. Mean anything to anyone?

Thanks!

JazzMan

I'm trying to figure out what you're trying to do, here. What does the MAX232 do? (too lazy to search for spec sheet right now... )

WinALDL just needs level conversion, not conversion to RS232. It may be that by converting the ALDL serial to an RS232 standard serial, you're confusing the hell out of WinALDL, because it's expecting to see raw serial data from the ECM, suitably level-translated for the PC's serial port.

Hope that helps, at least a little

Ed

IP: Logged
edhering
Member
Posts: 4031
From: Crete, IL
Registered: May 2002


Feedback score: N/A
Leave feedback





Total ratings: 108
Rate this member

Report this Post06-17-2003 12:51 AM Click Here to See the Profile for edheringClick Here to visit edhering's HomePageSend a Private Message to edheringDirect Link to This Post

edhering

4031 posts
Member since May 2002
https://www.fiero.nl/forum/Forum4/HTML/012844.html

This cable works perfectly and uses 1 transistor to read the ECM. You can get a schematic to build your own at
http://w1.601.telia.com/~u60113744/software/winaldl/aldlcable.htm

and this will work perfectly with WinALDL; that's the cable that the program is designed for.

Ed

IP: Logged
Marvin McInnis
Member
Posts: 11599
From: ~ Kansas City, USA
Registered: Apr 2002


Feedback score: N/A
Leave feedback





Total ratings: 227
Rate this member

Report this Post06-17-2003 09:22 AM Click Here to See the Profile for Marvin McInnisClick Here to visit Marvin McInnis's HomePageSend a Private Message to Marvin McInnisDirect Link to This Post
The MAX232 does not do data rate conversion, it only converts the signal voltage levels between ALDL (0-5 volts) and bipolar RS-232 (approximately +/- 8 volts). Most PCs will work fine with the simple one-transistor level shifter/inverter, but some will not. All PCs will work with the true-RS232 output of a properly wired MAX232.

You problem is most likely that you built the circuit such that the signal polarity out of the MAX232 is inverted (i.e. low when it should be high, and vice-versa). Since signal levels are all we're dealing with, you should be able to troubleshoot this with a simple voltmeter. When the ALDL output is near ground, the MAX232 output should be around +8 volts; when the ALDL output is high (around +5 volts), the MAX 232 output should be around -8 volts. You can simulate the ALDL output for testing.

Good luck.

------------------
'88 Formula
Project Testostarossa
"Anything worth doing is worth overdoing."

[This message has been edited by Marvin McInnis (edited 06-17-2003).]

IP: Logged
KlingonFiero
Member
Posts: 1503
From: Littleton,Co USA
Registered: Feb 2002


Feedback score: N/A
Leave feedback

Rate this member

Report this Post06-17-2003 10:53 AM Click Here to See the Profile for KlingonFieroClick Here to visit KlingonFiero's HomePageSend a Private Message to KlingonFieroDirect Link to This Post
[QUOTE]Originally posted by JazzMan:

I cobbled this together tonight. I used the basic schematic from here:
[URL=http://www.techedge.com.au/vehicle/aldl8192/8192hw.htm]QUOTE]

I will go ahead and throw my 2 cents in here.

The site that you got your info from did not work for me. It seems to be only for Austrtalian cars Or for a different ECM system.

I searched the Internet for a good month, trying a lot of different things.

I would try looking for a program called EFLive. It isn't free, but it has a schematic for a very simple interface that seems to work very well with the WinALDL program. I have been using it for about three months and have not had a problem.
http://www.autotap.com/products.html

Try that link and let us know.

------------------
1984 SE - 30800 out of 136840. Being modified!

IP: Logged
JazzMan
Member
Posts: 18612
From:
Registered: Mar 2003


Feedback score:    (7)
Leave feedback





Total ratings: 653
User Banned

Report this Post06-18-2003 11:50 PM Click Here to See the Profile for JazzManSend a Private Message to JazzManDirect Link to This Post
 
quote
Originally posted by edhering:

I'm trying to figure out what you're trying to do, here. What does the MAX232 do? (too lazy to search for spec sheet right now... )

WinALDL just needs level conversion, not conversion to RS232. It may be that by converting the ALDL serial to an RS232 standard serial, you're confusing the hell out of WinALDL, because it's expecting to see raw serial data from the ECM, suitably level-translated for the PC's serial port.

Hope that helps, at least a little

Ed

The MAX232 converts a square wave that's 0 to positive volts into a true RS-232 signal that's -12v to +12v, while itself only requires +5v to power it. It does this by using charge-pump capacitors. A nifty little chip that only costs a couple of bucks. WinALDL looks at the RS-232 signal on the serial port, it can't measure the voltages directly. The RS-232 decoding circuitry in the PC that manages the port does the conversion from +/- 12v to TTL.

JazzMan

IP: Logged
JazzMan
Member
Posts: 18612
From:
Registered: Mar 2003


Feedback score:    (7)
Leave feedback





Total ratings: 653
User Banned

Report this Post06-18-2003 11:54 PM Click Here to See the Profile for JazzManSend a Private Message to JazzManDirect Link to This Post

JazzMan

18612 posts
Member since Mar 2003
 
quote
Originally posted by edhering:

https://www.fiero.nl/forum/Forum4/HTML/012844.html

This cable works perfectly and uses 1 transistor to read the ECM. You can get a schematic to build your own at
http://w1.601.telia.com/~u60113744/software/winaldl/aldlcable.htm

and this will work perfectly with WinALDL; that's the cable that the program is designed for.

Ed


I built this interface night before last, and hooked it up yesterday at lunch, no workee. I hooked an LED up to the interface output and it's flickering, so I'm getting a signal to the serial port. The only thing I haven't done is put the 10k resister R3 across the diagnostic terminal. Does the 7170 ECM require this resister to output data? Maybe that's what the problem is. Looks like I'm trying again tomorrow at lunch.

JazzMan

IP: Logged
edhering
Member
Posts: 4031
From: Crete, IL
Registered: May 2002


Feedback score: N/A
Leave feedback





Total ratings: 108
Rate this member

Report this Post06-19-2003 12:41 AM Click Here to See the Profile for edheringClick Here to visit edhering's HomePageSend a Private Message to edheringDirect Link to This Post
 
quote
Originally posted by JazzMan:

The MAX232 converts a square wave that's 0 to positive volts into a true RS-232 signal that's -12v to +12v, while itself only requires +5v to power it. It does this by using charge-pump capacitors. A nifty little chip that only costs a couple of bucks. WinALDL looks at the RS-232 signal on the serial port, it can't measure the voltages directly. The RS-232 decoding circuitry in the PC that manages the port does the conversion from +/- 12v to TTL.

JazzMan

Then it has to be, as you surmised in your last post, that you are missing the 10k diagnostic resistor....

Ed

IP: Logged
ralpy
Member
Posts: 253
From: Southwest Missouri
Registered: Apr 2003


Feedback score: N/A
Leave feedback

Rate this member

Report this Post06-19-2003 12:44 AM Click Here to See the Profile for ralpySend a Private Message to ralpyDirect Link to This Post
Check out this site for ALDL interface, and software: www.euronet.nl/users/fo_elmo/techno.htm
IP: Logged
PFF
System Bot
JazzMan
Member
Posts: 18612
From:
Registered: Mar 2003


Feedback score:    (7)
Leave feedback





Total ratings: 653
User Banned

Report this Post06-19-2003 11:49 PM Click Here to See the Profile for JazzManSend a Private Message to JazzManDirect Link to This Post
Got it working!

It was the 10k resistor. I didn't think that it needed one, but it did in order to put it into ALDL mode.

Now I have lots of interesting data, but that's a whole 'nother thread.

JazzMan

IP: Logged



All times are ET (US)

T H I S   I S   A N   A R C H I V E D   T O P I C
  

Contact Us | Back To Main Page

Advertizing on PFF | Fiero Parts Vendors
PFF Merchandise | Fiero Gallery
Real-Time Chat | Fiero Related Auctions on eBay



Copyright (c) 1999, C. Pennock