Shop OBEX P1 Docs P2 Docs Learn Events
Maximum input voltage — Parallax Forums

Maximum input voltage

Series8217Series8217 Posts: 16
edited 2006-08-10 14:37 in BASIC Stamp
I want to connect the turn signal indicators and high beams indicator to my digital dash project (runs on a BS2p40) so I can see their status on my LCD. Rather than the usual setup where the switches ground the indicator lights, the turn signal and high beam lamps work by the appropriate switches providing unregulated positive voltage to the lamps. This can be anywhere from 12v+ to 18v+.
Is 18v within the maximum voltage range for the BS2p inputs? If so, how do I figure out how big the current limiting resistors should be for the inputs?
If not, how should I go about hooking these up?

-Steven

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-08-10 14:16
    You could check out the PIC 16C54 data sheet, for the max current the 'protection diodes' can take.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-10 14:25
    18V is definately too much for the pin...I would use an Opto-Isolator for this connection.· Not only will it isolate the BASIC Stamp I/O from the voltage, but depending on the package you use it could simply multiple connections.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Mike GreenMike Green Posts: 23,101
    edited 2006-08-10 14:37
    You can also use a simple voltage divider with perhaps a 100K resistor connected to the switches and a 33K resistor between the other end and ground. That would divide down the 12-18V to 3-4.5V and the 100K resistor would certainly protect the Stamp pin. Actually, anything from 10K/3.3K on up would be more than adequate.
Sign In or Register to comment.