Head-Fi.org › Forums › Misc.-Category Forums › DIY (Do-It-Yourself) Discussions › volume controlled led
New Posts  All Forums:Forum Nav:

volume controlled led

post #1 of 14
Thread Starter 

i want to have a volume controlled led on my cmoy i'm building. would this work?

 

led.JPG

 

would this work? or do i need to throw in a capacitor somewhere? also, would having the led only on one channel potentially imbalance the two channels a bit? should i throw another resistor in on the other channel as well?

post #2 of 14

Can't see image. Words are often good anyway so you can tell me what you think you're showing me and why you did it.

 

If you want a power LED i.e. "there is volume" == "LED is lit" then that's easy enough. See Tangent's CMoy schematic.

 

If you want a variable brightness LED corresponding to the volume setting, then you need to do it via PWM (pulse-width modulation). This would probably be best accomplished via a small microcontroller like the ATTiny.

post #3 of 14
Thread Starter 

the brightness of an led can also be controlled via how much current is going through it, pwm is usually used because you can software control it. with physically turning the knob on the pot you're changing the circuit though so i figure i can use that. here's the link to the picture i tried to put in the first post: http://imageftw.com/uploads/20100916/led.JPG

post #4 of 14
Where is the DC coming from to light the LED?
post #5 of 14
Thread Starter 

thats part of what i was unsure about since i'm not certain on how audio signals work. i figured there'd be some dc otherwise what's the point of the decoupling cap before it gets to the opamp? or is that just for whatever (minimal?) dc offset there may be in the signal that would be too little for the led?

post #6 of 14
Thread Starter 

there wouldnt happen to be something as convenient as a triple potentiometer or something like that to replace the stereo volume control pot with is there? that would make things easy :o

post #7 of 14
Most pots are dual or quad deck. The other issue is that you would want a pot with two decks as log and one as linear.



Part of having the coupling caps is the ensure that the amps doesn't amplify any DC on the input. And you should be talking about milivolts of DC and the LED will need at least its forward voltage (about 1.7v for a red) to light.
post #8 of 14
Thread Starter 

ah yeah, that's what i was worried about when i was considering what doesnt look right about this :(

 

boo.

 

also, didnt realize the pots we're using are log, that definitely complicates things too.


Edited by Soymilk - 9/16/10 at 5:41pm
post #9 of 14

The circuit in your image won't work. Diode forward voltage for one, and if you get that working there's still a second resistor in parallel to your pot. Under DC conditions, it would only work if (a) you were keeping lower branch of pot above diode forward voltage and (b) DC signal is constrained such that the current through the LED branch is within tolerance.

 

LEDs do dim in response to less current, but you get minimal control. Attempting time-variant control in this way may damage the diode in some cases, most likely by hastening the decay of its luminescence. Importance of this depends on application and LED color (red has a long decay, white much shorter).

 

However, the better reason to use PWM is that you should be able to simply compare the voltage on the two legs of the pot via the ATTiny. This solves both your sensing and your output problems. You can probably also do nifty lin-log math and calibration so that the apparent volume maps comfortably to the shift in brightness.

 

For analysis, think about steady-state signals. What happens if a fixed DC voltage or a fixed AC voltage of fixed frequency is applied? Look at each separately, then consider that the actual effect will be the superposition of the two. This can get complicated, but for simple circuits you can often get a feel for it at a glance.

post #10 of 14
Thread Starter 

well for a) the led would just be off if the volume was too low right? i didnt know about the changing currents to control brightness shortening the lifetime of the led though. i havent done any circuit analysis in like 4 years and i wasnt very good at it even then, so im probably overlooking a bunch of stuff :p

 

i'd rather try and figure out a way to do it that only involves a few discrete parts and no microcontroller just for simplicity's sake; if i can't think of a way then i'll just have it hooked up to the standard spot across the power source.

post #11 of 14

Get a quad pot then.

post #12 of 14
Thread Starter 

i dont know where i can find one.

post #13 of 14
post #14 of 14
Thread Starter 

wtf 40 bucks, i'll save this for some other project in the future lol

New Posts  All Forums:Forum Nav:
  Return Home
Head-Fi.org › Forums › Misc.-Category Forums › DIY (Do-It-Yourself) Discussions › volume controlled led