Pages: [1]   Go Down
Author Topic: Mechanically adjust power for LEDs  (Read 382 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 139
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a strip of LEDs that I want to illuminate stuff (workbench photography etc.) that are in parallel. If I have a fixed power supply say 6v and I want to be able to dim the lights without using any microcontrollers from fully on to nearly off (I would use a switch to guarantee that they are entirely off) how would I do that? Is it really as simple as a potentiometer and if so how would I determine what kind.

I will have 16 LEDs with a forward current of 20mA and 3.4V. Thanks for your help in advance.
Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 118
Posts: 4553
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A potentiometer connected to the gate of a MOSFET.

For best results use a logic-level MOSFET and put a resistor R1 between +5V and the potentiometer, and another resistor R2 between the potentiometer and ground. The middle pin of the potentiometer goes to the MOSFET gate.

R1 should be about half the value of the potentiometer 's resistance and R2 about a quarter of it.
« Last Edit: March 28, 2013, 03:20:55 pm by fungus » Logged

No, I don't answer questions sent in private messages...

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23728
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure - you have a pot that controls a PWM signal into a transistor to adjust the average current.
Can be a pot controlling the PWM from a 555 timer, whose output drives the Gate of an N-channel MOSFET in the - lead of you LED strip.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Full Member
***
Karma: 0
Posts: 139
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What if I had something like this where I had a 10K pot? I don't know though that value I would need for R5. If that would work do you have any suggestions.


* Screen Shot 2013-03-28 at 4.17.37 PM.png (29.71 KB, 780x761 - viewed 8 times.)
Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 118
Posts: 4553
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What if I had something like this where I had a 10K pot? I don't know though that value I would need for R5. If that would work do you have any suggestions.

I'd put another resistor on the other side of the pot as well. Basically you're creating a resistor divider chain so that the voltage arriving at the gate is in the MOSFET's linear region. The exact values will depend on the MOSFET - look at the curves on the datasheet.

Logged

No, I don't answer questions sent in private messages...

Offline Offline
Full Member
***
Karma: 0
Posts: 139
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'd put another resistor on the other side of the pot as well. Basically you're creating a resistor divider chain so that the voltage arriving at the gate is in the MOSFET's linear region. The exact values will depend on the MOSFET - look at the curves on the datasheet.



What kind of values should R6 and R5 be? I am not sure how to calculate it. The LEDs will draw 320mA per hour and I was thinking of using a https://www.sparkfun.com/products/522 . I will need to cut the total current to 200mA.


* Screen Shot 2013-03-28 at 4.32.46 PM.png (6.56 KB, 484x165 - viewed 3 times.)
« Last Edit: March 28, 2013, 03:35:00 pm by Ben1234 » Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 118
Posts: 4553
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What kind of values should R6 and R5 be? I am not sure how to calculate it. The LEDs will draw 320mA per hour and I was thinking of using a https://www.sparkfun.com/products/522 . I will need to cut the total current to 200mA.

The MOSFET should go between R4 and ground.
The wiper of the pot should connect directly to the gate of the MOSFET (with no resistor).
Now put a resistor R1 from +5V to one leg of the POT and another resistor R2 from the opposite leg of the pot to ground.

R1 should be about 20k, R2 should be about 5K.
Logged

No, I don't answer questions sent in private messages...

Pages: [1]   Go Up
Jump to: