S
SklettTheNewb
Guest
On Sep 2, 8:52 am, Tim Wescott <t...@seemywebsite.com> wrote:
Lots of info here, this thing has taken on a life of it's own. After
re-evaluating my requirements against my knowledge/abilities and time
constraints I have selected the voltage divider solution:
#1 my primary goal was to avoid hardware damage - check!
#2 If myself and my team can't read code comments and follow
instructions to output 10v then I have bigger issues to worry about.
I appreciate the input from ya'll, thanks and have a good weekend.
-Steve
Wow, I left town for a meeting and come back to an EPIC THREAD! ;0)On Fri, 02 Sep 2011 01:22:32 -0700, SklettTheNewb wrote:
On Sep 2, 12:17 am, "Phil Allison" <phi...@tpg.com.au> wrote:
"SklettTheNewb"
I'm the "software guy" but am trying to help out on the hardware side
for a small project we have going on. It's fun, I like to learn new
stuff. I'm currently working on a circuit that is connected to a
piece of data acquisition hardware that provides 8 digital bits (1
port) and these 8 bits are wired up to a set of decoder ICs. Great,
that all works fine. The problem is that I need ONE MORE digital bit
to control a SSR - but I don't have any more available digital pins
so I'm going to use one of the analog outputs on the DAQ hardware.
OK, finally my question: The analog out can be software controlled to
output 0 - 10v. If I connect this straight to a logic pins this
means that if someone screws up (people always do) they could fry
things by accidentally sending 10v to a part that is expecting a
maximum of 5v. I would like to add a little circuitry to cap the
analog line at a max of 5v. I have NO IDEA how to do this and was
hoping someone here could suggest a simple solution to cap a signal
at a max of 5v.
** OK,
make the analog output 10 volts and then reduce this to 5 with two
equal
value resistors in series.
The mid point voltage will be half the value across the pair.
Aka - a voltage divider.
Two 2.2 kohm resistors might be about right.
..... Phil
Thanks Phil. Although that suggestion would work ( I could also use a
basic voltage regulator, right?) it could result in undefined results
if the user does the RIGHT thing and sets the DAC to 5v. So maybe my
question should be: How can I cap a 5-10v signal to 5v?
Define the "right" thing as setting the DAC to full range.
Or use a comparator, use a 33k resistor off of the DAC, a 10k to ground,
and an LM339 (powered from 5V) set up with a threshold of 2.5V. Then
you'll always get a clean signal.
But a voltage divider like Phil suggested, plus maybe a yardstick, is
easiest.
(The yardstick is to whack folks upside the head when they feed the wrong
number to the DAC).
--www.wescottdesign.com
Lots of info here, this thing has taken on a life of it's own. After
re-evaluating my requirements against my knowledge/abilities and time
constraints I have selected the voltage divider solution:
#1 my primary goal was to avoid hardware damage - check!
#2 If myself and my team can't read code comments and follow
instructions to output 10v then I have bigger issues to worry about.
I appreciate the input from ya'll, thanks and have a good weekend.
-Steve