construction tips
home products help
obd help

application notes
faqS

The following tips should help if you are having trouble designing or building a circuit. This section deals with general issues, so if you are having troubles with an OBDII circuit, be sure to also see our help > obd > circuit tips section.

Components & Design Choices
Crystals
Integrated Circuits
Transistors
Connectivity

Testing & Troubleshooting
Choosing Software
Hardware Problems

Reference
RS232 Information


Components & Design Choices



Crystals
I do not live in North America, so I substituted a PAL crystal for the NTSC one shown in your ELM624 circuit but am still having trouble. What next?
Put the NTSC crystal back in the circuit! That frequency was chosen because those crystals are inexpensive, and readily available. It has nothing to do with the video parameters. By using a different frequency, you have shifted all of the timing proportionally.

Can I use a 3.6864Mhz crystal instead of the 3.579545?
No. The circuit's time delays are all calculated based on the use of a TV type colourburst crystal being connected to the chip. While the oscillator will still function if another frequency crystal is used, the period of the oscillator will be different, and all timing will be in error. You can certainly try the other frequency, but don't be surprised if the circuit doesn't work properly.

Do I have to use 27pF capacitors with the crystal?
No. The loading capacitors depend on the crystal chosen, so some experimentation may be

My crystal says to use 15pF of loading capacitance, but I can't find 7.5pF capacitors. What should I do?
Use the 27pF shown in the example applications, and failing that, use 33pF. Many people initially think that the two capacitors are essentially 'hung in parallel' across the circuit, so automatically assume they need half the value for each. You have to put yourself in the crystal's position however, to see that the two capacitors are in fact in series across the crystal. The 27pF shown, along with typically 5pF or more of stray capacitance across them results in about 16pF of effective parallel capacitance.
Having said this, in a pinch anything from 22pF to 47pF will likely work just fine with almost any crystal.

Integrated Circuits
What are SOICs and PDIPs?
These names refer to the type of integrated circuit package that our ICs are supplied in. SOIC refers to a small outline IC (surface mount) while PDIP refers to a plastic dual inline package (socket or through-hole mount).
All of our products are available in either case type. When ordering, simply choose the product with the 'P' or 'SM' at the end of their name.

relative chip sizes


What material do you use for your chip labels?
It's a high-temperature polyimide material that is specially produced for this purpose (we use Brady types B-426 and B-652). The labels can be exposed to as much as 330C/626F for 80 seconds, 280C/536F for 5 minutes, and 180C/356F continuously (1000hrs) without damage.

Is the label adhesive permanent?
Yes. When initially applied, they can be repositioned, but after a few days become permanently affixed.

I can't find a 78L05 regulator. Will a 7805 do?
It will work, as the output voltage is the same, but you should understand that the two regulators limit the output current to different values. The 7805 will allow more than 1A of current to flow if the output is shorted, and this could damage components or wiring. For some of the OBD circuits, the 78L05 was specified in order to limit currents to a safe level. You can substitute, but be aware of what you are doing.

Transistors
Do I have to use the 2N3904 and 2N3906 transistors?
No, pretty well any general purpose transistor should work. For the 2N3904, there are many types that can be used - look at the BC546, BC547, BC548, BC549, BC550, 2N2218, or the 2N2222. Similarly, there are many options if you can not locate a 2N3906 - look at the BC556, BC557, BC558, BC559, BC560, and the 2N2905 for example. As long as the transistor has reasonable gain, it should work as the required frequency response is not too high.

How do I know which transistor wires are which?
This is not always that easy to do. Some digital multimeters are able to tell you, but if you do not have one, it can be difficult. See our "Application Note AN01 - Transistor Testing" for one method that works.

Connectivity
Can I use a MAX232 IC for the RS232 interface?
Yes, it can be used but you need to be aware that the RS232 Rx inputs on the ELM621, and ELM624 are inverted from what they should be (for a standard interface). By placing another inverter in series with the Rx input, Maxim's interface IC's can be used.

Here is how you might typically connect a MAX232 to provide both the RS232 interface, and the inversion on the Rx input:

max232

Note that the ELM630, ELM633, and ELM634 do not need to have their Rx input inverted, as an RXmode input is provided to do this for you.

I would like to connect directly to my microprocessor. Can I do that?
Sure. You don't need the RS232 voltage levels to transfer data if it is going to another circuit on your board. RS232 voltages are really for going longer distances.
The RS232 Receive inputs on the ELM621 and ELM624 are inverted from what they should be (for a standard RS232 interface), so to correct for that you need to add another inverter. If you have a spare one on your circuit board, then use it. If you do not have an inverter, you can make one. A simple circuit such as this will work well:

RS232 Inverter

This one transistor circuit is placed between your microprocessor transmit output, and the ELM IC's receive input to invert the signal for you. Your microprocessor receive input can be connected directly to the ELM's transmit, and your RS232 is all set. Note that the the circuits must all be powered by the same supply (so that you don't try to backfeed through the protection diodes).

Note that the ELM630, ELM633, and ELM634 do not need to have their Rx input inverted, as noted in the previous question. Also, the ELM327 does not need an inverter - see the 'Microprocessor Interfaces' section of the ELM327 data sheet for more information.



Testing & Troubleshooting



Choosing Software
What software do I need in order to talk to my ELM IC?
All of the ELM ICs that have RS232 interfaces 'talk' in plain ASCII. This means that virtually any terminal program can be used with them, and no special software is required (but you may want to add your own, in order to provide a more 'user-friendly' interface).
Here are some examples of terminal programs:

Macintosh

Windows 95, 98, XP

Windows Vista

Windows CE

Palm



The received data keeps overwriting on itself. What is wrong?
Your ELM chip is not generating linefeeds after carriage returns. Either turn them back on (AT L1) or set your terminal software to automatically insert linefeeds on receipt of carriage returns. (Some software calls this 'Append line feeds to incoming line ends'.)

Hardware Problems
I've connected the RS232 but get nothing from my ELM IC. What should I do now?
All of the ELM chips that have an RS232 interface will power up with a text message saying its device name and version number. Before even trying to control something with your ELM IC, you need to see this message.

Some of the ELM RS232 Example Applications show RS232 connections for an older style 25 pin connector. This connection was very common for external modems and other computer peripherals, but is almost extinct at this point. Be sure that you are using the correct pinouts for the type of connector that you are using. Here is a pin cross-reference for you:

FunctionDB25DB9
Transmit Data (from PC)23
Receive Data (to PC)32
Request to Send (from PC)47
Clear to Send (to PC)58
DCE Ready (to PC)66
Signal Ground 75
Data Carrier Detect (to PC)81
DTE Ready (from PC)204
Ring Indicator (to PC)229

If you are sure that you have connected to the correct pins (there should a be tiny little number beside each of the pins), then perhaps you have a component problem. The following shows the typical voltages that you should see in your circuit - simply compare them to what you see for your circuit:

ELM RS232 interface voltages

Note that we've provided typical voltages on the circuit above. If you have a multimeter available (you should if you're building an electronic circuit) then connect it with the negative lead to circuit common and probe around this circuit. The typical voltages that you would expect if all connections are correct are shown in red in the above diagram. The most negative point in the entire circuit must be the computer's TxD line (shown here at -9.3V). Don't worry if your voltage is a little different as each computer is different - it is the relative magnitude and the polarity of the voltage that is important.

Several people have pointed out that the Rx pin on the ELM chip actually sits at a slightly negative voltage in this circuit, but voltages less than Vss are not recommended for an IC. Actually, it is not recommended if there is no means of limiting the current through the input pin (as it could cause a problem known as 'latchup'). In this case a large series resistor limits the current to a safe level, so the -0.5V is quite acceptable.

I've connected the RS232 but get random characters from my ELM IC. What should I do now?
Random characters almost certainly mean that you have the baud rate set wrong. Check your terminal program's setting.

I've purchased a USB to RS232 converter for my PC, but it does not work with my circuit. What can I do?
Most RS232 ports could be used with our simple 'three wire systems' by turning the hardware handshaking off. Some USB to RS232 converters do not offer this option, however, so these devices need to be fooled into believing that the handshaking signals are present. Typically, all you need to do is to install a couple of jumpers on the handshaking pins (1, 4, 6, 7, and 8) of your 9-pin connector:

USB232

Give this a try before tearing into your circuit, thinking that you have made a mistake in the wiring.


Reference



RS232 Information
I really don't understand RS232. Can you point me to some tutorials?
Sure. We all had to learn at some point. Here are some to try:





help  > construction tips

©2010 Elm Electronics