Interfacing 12V Square Wave
tdeyle
Posts: 85
I need to interface a 12V Square Wave into the Propeller.
This is coming from a MSD 8913 Tach Driver. What it does is take the electrical signal from my engine's ignition coil and turn it into a square wave that is relative to the engine's RPM. I am unsure of the current output that this device can put out, so I do not think a series resistor is safe.
I am leaning more towards an optoisolator but am unsure as to how I am going to wire it into the prop.
This is coming from a MSD 8913 Tach Driver. What it does is take the electrical signal from my engine's ignition coil and turn it into a square wave that is relative to the engine's RPM. I am unsure of the current output that this device can put out, so I do not think a series resistor is safe.
I am leaning more towards an optoisolator but am unsure as to how I am going to wire it into the prop.
Comments
See this article on voltage dividers: www.doctronics.co.uk/voltage.htm
An optoisolator would also work well and would isolate the Propeller from the tach circuit. Search the web for "wiki optoisolator" and follow some of the links to get details on how to use them. Also read the manufacturer's datasheets.
Leon.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
If you figure a maximum 25V input and 500uA maximum current through the protection diode, that comes to about 42K for a series resistor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Line up the emitter on your source with 470ohm resistor and bias the detector with 3.3 volts from the prop.
If you decouple the Emitter output with a capacitor you will only illuminate the emitter when in the top half of the sin wave. That should be enough to get a very good zero crossing time figured out and you would not have to worry about transient surges at all.
J-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent, only $1.
Send cash and signature to CannibalRobotics.