electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
  host / artist show at your time
today> Twyndyllyngs not postponed Chez Mosc
 Forum index » DIY Hardware and Software
Voltage indicator
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [12 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Uncle Krunkus
Moderator


Joined: Jul 11, 2005
Posts: 4761
Location: Sydney, Australia
Audio files: 52
G2 patch files: 1

PostPosted: Tue Oct 28, 2008 7:37 pm    Post subject: Voltage indicator
Subject description: More than a bi-colour but less than a bar?
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
Tim Servo



Joined: Jul 16, 2006
Posts: 924
Location: Silicon Valley
Audio files: 11

PostPosted: Tue Oct 28, 2008 10:29 pm    Post subject: Voltage indicator Reply with quote  Mark this post and the followings unread

Hey Unk,

You might be able to rig up a chain of op-amps configured as comparators. Each comparator triggers at a slightly higher level, giving you a 'bar graph' effect as the input voltage rises. Here are a couple of examples I found:

http://www.ecelab.com/circuit-simple-led-voltmeter.htm

http://www.elecfree.com/electronic/bargraph-voltage-indicator-by-lm339/

This one only uses a single op-amp
http://www.elecfree.com/circuit/Meter-test-circuit/bargraph-light-meter-by-ic-741/

This one uses transistors, and has one stage enable the next
http://electronicdesign.com/Articles/Index.cfm?AD=1&ArticleID=6246

And a whole bunch of good info / theory on the op-amp type
http://www.opamp-electronics.com/tutorials/the_operational_amplifier_3_08_03.htm

Hope this helps!

Tim (if you put it upside-down, is it a hparg rab?) Servo
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Tue Oct 28, 2008 10:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
BOB-SNARE



Joined: Sep 26, 2008
Posts: 30
Location: Australia

PostPosted: Tue Oct 28, 2008 11:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Or something like this...maybe use the opamp to level shift/amplify.

Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message
Uncle Krunkus
Moderator


Joined: Jul 11, 2005
Posts: 4761
Location: Sydney, Australia
Audio files: 52
G2 patch files: 1

PostPosted: Wed Oct 29, 2008 12:20 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks heaps everyone for all the great ideas and links. I'll keep you all updated on my progress. Very Happy
_________________
What makes a space ours, is what we put there, and what we do there.
Back to top
View user's profile Send private message Visit poster's website
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Wed Oct 29, 2008 4:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Uncle Krunkus
Moderator


Joined: Jul 11, 2005
Posts: 4761
Location: Sydney, Australia
Audio files: 52
G2 patch files: 1

PostPosted: Wed Oct 29, 2008 9:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Wed Oct 29, 2008 10:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

I was thinking of controlling a single LED with analog PWM like in the microcontroller PWM in the suggestion above it. Embarassed

A bicolor LED with PWM could be really cool. The color would dictate polarity, the intensity would be the magnitude.
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Oct 29, 2008 11:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
frijitz



Joined: May 04, 2007
Posts: 1734
Location: NM USA
Audio files: 54

PostPosted: Thu Oct 30, 2008 10:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

Very Happy

Ian
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Fri Oct 31, 2008 12:18 am    Post subject: Reply with quote  Mark this post and the followings unread

What does the Howland circuit look like?
_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
frijitz



Joined: May 04, 2007
Posts: 1734
Location: NM USA
Audio files: 54

PostPosted: Fri Oct 31, 2008 6:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
What does the Howland circuit look like?

http://www.national.com/an/AN/AN-1515.pdf

(Google is your friend.)

Very Happy

Ian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [12 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use