-   OpenGauge / MPGuino FE computer (
-   -   opengauge development: vehicle interface circuits. (

dcb 04-14-2008 11:18 PM

opengauge development: vehicle interface circuits.
I haven't heard much about this lately. Is there any concensus?

big resistor and a 5v zener?

resistors and a Transistor? Which transistors?

Should there be a small board by the signal source? Or should the signal be converted to 5v by the duino.

is the injector being switched on and off at the ground connection a challenge?


dcb 04-16-2008 12:38 AM

Here is one possibility using commonly available components (radio shack, mouser)

5V should come from the freeduino.

diesel_john 04-16-2008 12:51 AM

1 Attachment(s)
ideally the 100k resistor would be right at the injector for safety.

Pulse width can be as short as 3ms at idle.

what's a diode clamp do?

dcb 04-16-2008 08:39 AM

Thx John. I need to talk through this circuit a bit.

for the injector:
when it is closed, there will be voltage applied to the emitter of about 1 volt, which should turn on the transistor and pull pin 2 HIGH.

when the injector is open, .7 volts is applied to the 100k resistor. The voltage at the emitter should be even less (like 0.00009 V) given the resistors, so the transistor is basically off, and pin 2 is pulled LOW.

So what about that diode? When the injector ground circuit opens (closing the injector), the injector coil creates, or induces, a large spike in voltage in the opposite direction (positive spike on the ground side of the injector). So this spike will be attenuated by the 100k resistor and dropped another .7 volts by the diode, before (hopefully) being absorbed by the 5v voltage regulator. But the transistor should have already been off so it should not trigger additional interrupts on pin 2. Of some concern however is the oscillations that occur after the injector circuit is opened and if they will trigger false interrupts on pin 2:

Note: maybe the software can reject pulses that are "obviously" too short and/or disable interrupts on pin 2 for a brief period after getting a good looking pulse.

All times are GMT -4. The time now is 12:25 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright