Winterfell, TN
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« on: January 26, 2013, 12:40:26 pm » |
I'm planning to run a single LED at varying voltages (and presumably light intensities). Is this possible, or are LED's simply on or off (without varying intensities)? Thank you all in advance.
MP
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #1 on: January 26, 2013, 01:03:19 pm » |
I'm planning to run a single LED at varying voltages (and presumably light intensities). Is this possible, or are LED's simply on or off (without varying intensities)? Thank you all in advance.
MP
You can vary the brightness of a led by varying the amount of current flow through a forward biased led, not by controlling the voltage applied to an led, as once the applied voltage is higher then the led's Vf rating the voltage will remain constant across the led. A series resistor is the usually method used to control the amount of current flow for standard 20ma type leds. A series resistor/led network can be driven at various brightness levels by wiring it to an arduino pwm output pin and sending different duty cycle values to vary the average brightness displayed. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #2 on: January 26, 2013, 01:21:03 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Online
Faraday Member
Karma: 43
Posts: 2505
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #3 on: January 26, 2013, 02:59:41 pm » |
A series resistor/led network can be driven at various brightness levels by wiring it to an arduino pwm output pin and sending different duty cycle values to vary the average brightness displayed.
PWM is the better solution. See the example that comes with the Arduino IDE, File > Examples > 01.Basics > Fade or http://arduino.cc/en/Tutorial/Fade
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2256
|
 |
« Reply #4 on: January 26, 2013, 03:40:37 pm » |
Very Simple LED Question I doubt it. LED questions are never simple...
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Online
Faraday Member
Karma: 43
Posts: 2505
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #5 on: January 26, 2013, 04:03:56 pm » |
Very Simple LED Question I doubt it. LED questions are never simple... Especially if resistors are involved  ... or not! 
|
|
|
|
|
Logged
|
|
|
|
|
Eugene, Oregon
Offline
Sr. Member
Karma: 8
Posts: 387
|
 |
« Reply #6 on: January 26, 2013, 04:20:13 pm » |
It is a simple enough question, and the answer can be simple enough too, but the simplicity of the question is independent of the answer.
The simple answer is, yes LEDs can vary intensity(brightness), depending on voltage/current.
The more complicated answer: Hue is not realistically adjustable, but brightness(intensity) is.
Since this forum is about using LEDs with microcontrollers, using PWM is a viable way to control brightness, but it is not necessarily better for every situation.
LEDs have a usable range, where if you dont have enough electricity, it wont light up at all, and it gets to a point where it wont produce any more light, it just causes more damage. In a sense, they can be looked at as simple on or off, but they can also vary brightness to some degree.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #7 on: January 26, 2013, 07:51:59 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Winterfell, TN
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #8 on: January 29, 2013, 12:50:12 pm » |
Thank you all very much for the help. As far as I understand, I will be using PWM to dim the light to a certain point. I am planning to run a light intensity (irradiance) sensor with it [TSL235R ( https://www.sparkfun.com/products/9768)]. Will the pulses of light interrupt the reading of irradiance? Such as, if I take a 500 ms reading, will the on/off (say 5ms on 5ms off) will it screw up the reading in some way? It's kind of blowing my mind right now.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #9 on: January 29, 2013, 03:38:00 pm » |
What are you trying to measure? Is the light sensor trying to measure the brightness of the LED or is the LED just interference?
|
|
|
|
|
Logged
|
|
|
|
|
|