Author |
Message |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Tue Oct 28, 2008 7:37 pm Post subject:
Voltage indicator Subject description: More than a bi-colour but less than a bar? |
 |
|
I'm trying to do a simple voltage indicator. Maybe just three LEDs. I need low parts count, but I can afford an op-amp already on it. (I actually need 3, and the design has 3 spare op-amps waiting)
Do I have to go for comparators?
I've got some LM3914s, but I want to save them for a couple of 5-pulsers. Besides, I don't have room for that many LEDs.
I'd like the mid one to cover +/-1V and the outer two to cover >+1V and <-1V.
Any ideas? _________________ What makes a space ours, is what we put there, and what we do there. |
|
Back to top
|
|
 |
Tim Servo

Joined: Jul 16, 2006 Posts: 924 Location: Silicon Valley
Audio files: 11
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Tue Oct 28, 2008 10:44 pm Post subject:
|
 |
|
A divider/ladder type structure as shown in the above links is a good start. Also, why not utilize the fact that LEDs have different knee voltages? A red LED is only 1.7V or so, so that could be your +/- 1V indicator (with gain of 1.7), and the other color LEDs would turn on at a higher voltage. That would be more of a parallel approach. In fact, if you don't need buffering then the opamp itself may not be necessary - depends on whether you have a low-impedance source.
something like this:
Code: |
----R------R-----
| |
D D
| |
-----------------
|
where the first D is blue and the second is red, and each D represents a pair of side-to-side diodes (one up, one down). Might werk gewd! _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
 |
BOB-SNARE
Joined: Sep 26, 2008 Posts: 30 Location: Australia
|
Posted: Tue Oct 28, 2008 11:14 pm Post subject:
|
 |
|
Or something like this...maybe use the opamp to level shift/amplify.
 |
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Wed Oct 29, 2008 12:20 am Post subject:
|
 |
|
Thanks heaps everyone for all the great ideas and links. I'll keep you all updated on my progress.  _________________ What makes a space ours, is what we put there, and what we do there. |
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Wed Oct 29, 2008 4:48 pm Post subject:
|
 |
|
Three ideas:
A microcontroller sampling the voltage, (re)quantizing the analog value and turning on appropriate LEDs (as few/many as you'd like).
A microcontroller sampling the voltage and PWM output to an LED.
An analog voltage controlled PWM circuit. |
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Wed Oct 29, 2008 9:41 pm Post subject:
|
 |
|
Hmmm,
I think the microcontroller ideas would be a bit too complicated for what I want, but I'm intrigued by the PWM idea. How do convert that to a 3 LED indicator? _________________ What makes a space ours, is what we put there, and what we do there. |
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Wed Oct 29, 2008 10:36 pm Post subject:
|
 |
|
I was thinking of controlling a single LED with analog PWM like in the microcontroller PWM in the suggestion above it.
A bicolor LED with PWM could be really cool. The color would dictate polarity, the intensity would be the magnitude. |
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Wed Oct 29, 2008 11:38 pm Post subject:
|
 |
|
I tell you what would be trick, would be to use a bilateral current source. This circuit appears in National Semiconductor's Linear Applications Handbook and requires only one opamp and five resistors. You apply an input voltage and the output current is proportional to the input current, magically in *both* positive and negative directions.
Then you could just put side-to-side diodes on the output and the intensity of the diodes would directly track the input voltage, with one diode for positive and the other for negative. That's because, as you surely know, the intensity of an LED is proportional to its current.
I have the page opened up and can give you the info but it's detailed. If you want to use this circuit I'd suggest obtaining the PDF file of AN-29 from www.national.com if you are interested. I can help you find this file if you cannot find it (I think so anyway). Cheers! _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
 |
frijitz
Joined: May 04, 2007 Posts: 1734 Location: NM USA
Audio files: 54
|
Posted: Thu Oct 30, 2008 10:22 pm Post subject:
|
 |
|
Inventor wrote: | I tell you what would be trick, would be to use a bilateral current source. This circuit appears in National Semiconductor's Linear Applications Handbook and requires only one opamp and five resistors. You apply an input voltage and the output current is proportional to the input current, magically in *both* positive and negative directions. |
Funny you should bring that up. I needed a bipolar current source last month, while trying out a crazy ribbon controller scheme. I saw that AN-29 circuit, but I didn't see any advantage of it over the standard Howland circuit. So I went with the Howland. It worked great! There are always warnings about needing carefully matched resistors, but for what I was doing just taking 1% resistors out of the drawer worked just fine. That's a slick idea you have, using a bipolar I source for an indicator.
Ian |
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Fri Oct 31, 2008 12:18 am Post subject:
|
 |
|
What does the Howland circuit look like? _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
 |
frijitz
Joined: May 04, 2007 Posts: 1734 Location: NM USA
Audio files: 54
|
|
Back to top
|
|
 |
|