Using potentiometers to control RGB LEDs without blowing them out?

Hardware-related questions that don't fit into any of the specialized hardware categories go here.
Post Reply
SkybotLivendale
Posts: 22
Joined: Mon Sep 19, 2016 11:49 am
Has thanked: 3 times
Been thanked: 2 times

Using potentiometers to control RGB LEDs without blowing them out?

Post by SkybotLivendale » Sat Oct 15, 2016 9:30 pm

Hey all,

I'm pretty new to electronics, and am trying to wire up an RGB LED to three pots to control the color.

So far what I have works, but if I turn up a pot to high, I burn out that color. How would I prevent this?

Here's a essentially how I have it wired:
Image

Rolen47
Posts: 42
Joined: Sat Aug 13, 2016 8:41 pm
Has thanked: 2 times
Been thanked: 24 times

Re: Using potentiometers to control RGB LEDs without blowing them out?

Post by Rolen47 » Thu Oct 20, 2016 4:03 pm

A potentiometer is just a resister that goes from 0 ohms to whatever maximum value it's rated. So what you have to make sure is that your resistors that are connected to the LED legs are high enough that it will be safe when the potentiometer is set at 0 ohms. The more resistance the dimmer the LED will be. My RGB LEDs are rated to run safety at (your RGB LED might be rated the the same or slightly different):

Red: 2.0 volts (20ma)
Green: 3.0 volts (20ma)
Blue 3.2 volts (20ma)

Assuming your power supply is 5.0 volts we can use an LED calculator to find out what minimum resistor we need: http://ledcalc.com/#calc

Red: 150 ohms
Green: 100 ohms
Blue: 90 ohms

Now these are just the minimum resistors that you have to use for the LEDs to be safe. You can use larger value resistors but it makes the light dimmer.

Now for the potentiometers. You'll have to experiment to find how strong of a potentiometer you need for each color. In my RGB LED the Green color was a lot brighter than my Red and Blue. To make them all very dim I used the following resistance:

Red: 10k ohms
Green: 47k ohms
Blue: 20k ohms

If you want the LEDs to turn completely off you'll have to get potentiometers that are rated higher than that. Again, you'll have to experiment on your own there. Keep in mind it takes a lot of resistance to turn off an LED. Even my 1m (million) ohm resistor couldn't completely turn off my LED. You'll need some potentiometers with a lot of ohms.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest