BS2 with 12V pickup
clayjay
Posts: 11
I have an external 12V·that I want pulsein-P1 to accept.· What circuit (resistors, etc.) do I need to use to protect my BS2?· Thanks in advance.
Comments
A little more info would help.
You might be able to get away with a simple voltage divider. Do a google search, theres a ton of info on this.A long with the simple math.
I would read the voltages from the pulses before I hooked it up to the Stamp. A 5 volt zener across the I/O pin would add some more protection along with a current limiting resister.
________________$WMc%______
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············································ BoogerWoods, FL. USA
This is how the BS2 can recieve RS-232 signal levels (+/- 12 volts) with only a 22 Kohm resistor in series to drop the current.
Without the 22 Kohm resistor, you'll put too much current through the clipping diodes and they'll fail.
Here is the code:
Main:
SEROUT TX, LcdBaud, [noparse][[/noparse]LcdBLoff, LcdOn1, LcdCls]
COUNT Tach,1000,CoilCount
SEROUT TX, LcdBaud, [noparse][[/noparse]DEC CoilCount]
PAUSE 500
Tach=0
GOTO Main
END
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
50 72 6F 6A 65 63 74 20 53 69 74 65
·