Wide Voltage DC input circuit - anyone?
pacman
Posts: 327
Rather than re-invent the wheel, I thought I'd ask here...
(originally posted in Sensors forum, but better located here?)
Does anyone have a schematic that they would be willing to share that would accommodate a wide range (between {say} 8V to {say} 40V DC) to allow me to interface these inputs to a Propeller chip (3.3V).
These inputs would be 'monitoring' proximity switches in the field, so they _shouldn't_ (?) have to sink much current..
These inputs don't need to be high speed, and debouncing can be done in the Prop.
Currently I'm thinking of pull down resistors and mmbd4148se chips, but I'm thinking this might be be overkill - so if you have a "tried and true" circuit then I would love to hear from you
Thanks in advance
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
=================
The future is in our hands.
Which way to the future?
=================
(originally posted in Sensors forum, but better located here?)
Does anyone have a schematic that they would be willing to share that would accommodate a wide range (between {say} 8V to {say} 40V DC) to allow me to interface these inputs to a Propeller chip (3.3V).
These inputs would be 'monitoring' proximity switches in the field, so they _shouldn't_ (?) have to sink much current..
These inputs don't need to be high speed, and debouncing can be done in the Prop.
Currently I'm thinking of pull down resistors and mmbd4148se chips, but I'm thinking this might be be overkill - so if you have a "tried and true" circuit then I would love to hear from you
Thanks in advance
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
=================
The future is in our hands.
Which way to the future?
=================
Comments
The problem I'm having with this is that it's a bit input voltage dependant.
Lets say 12V input, (using some ball-park figures) gives me a 9K, 3K resistor combo (@ 1mA) but if the input voltage was to be a bit high, then I could exceed the magic 3.6V.
Input voltage @ {say} 15V, then same combo gives 1.25mA , which would give 3.75V across my 3K resistor.
And it gets worse from there (think 24+V input and I'm in all sorts of pain).
I was after a more 'tolerant' input circuit as the input voltage today, might not be the input voltage next week....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
=================
The future is in our hands.
Which way to the future?
=================
Post Edited (Mike Green) : 6/10/2009 11:03:16 AM GMT
Use 100K series input resistors (no divider) and a little trick is to place a small 470pF capacitor on the input pin not so much for switch debouncing but for detecting open/high/low inputs like this:-
1. Force I/O pin high then back to an input
2. If input is low then it is being forced low externally so INPUT = LOW
3. If input is high then force I/O pin low then back to an input
4. If input is high then it is being forced high so INPUT = HIGH
5. otherwise INPUT = FLOATING
*Peter*
At the risk of going way OT - You know it would be neat to have some kind of "tricks and traps" thread where we could localize this.
- Howard
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Got Electrons?
If the NPN and 10k resistor were configured as an Emitter follower the output would be consistent over a wide voltage range. Just make sure that the transistor that you select has a reverse breakdown voltage HIGHER than the voltage you are applying to the Emitter.
Note: The signal to the Emitter needs to be driven both HIGH and LOW.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
They are very sensitive, I have used a lot of 4n32 couplers...they are about 30 cents each.
I especially like your follower circuit. I think it needs a pullup on the collector, though, right? Or are you counting on some base-collector forward conduction to bias the input pin high when the transistor is switched off?
-Phil
The B-E junction of the transistor forms a diode as does the B-C junction regardless if the transistor is turned ON or OFF. In this case the pull-up resistor is the 10K resistor with 1 diode drop.
Since the PN junction diodes formed between the E-B-C is a back-to-back diode it generally isn't thought of
very often to be used in this way.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
It provides optical isolation between the Stamp and the HV circuit.
I have used ths for many years in my industrial Stamp Controllers.
Good Luck and be careful of the potentialy high voltages.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Alan Bradford ·N1YMQ
Plasma Technologies
Canaan NH 03741
www.plasmatechnologies.com