Author Topic: Potentiometer problem..?  (Read 2602 times)

Offline PspKicks316

  • Acidmods Alumni
  • Mad Bomber
  • *
  • Posts: 5709
  • Post quality +5/-4
  • Gender: Male
Potentiometer problem..?
« on: December 21, 2009, 08:13:38 PM »
Maybe this is normal. I'm not sure. Hopefully someone has an explanation for this.

Okay. I've got an RGB led with a common anode setup. 3 pots, one for each color.
I'm using PWM to drive the led cathodes.

PWM --> pot --> led --> +

I have 3 pots setup so that I can create any color I want.
They each work fine at their least resistance (led fully on).
When blue is fully on, and green is fully on, you can see that both lamps are lit.
HOWEVER, when I turn red to being fully on, both green and blue shut off and only red is on.
All 3 pots are wired in the same direction, same input source, and each outputs to a cathode.

What the hell is going on???

Offline jrfhoutx

  • The Long-Winded One
  • Acidmods Alumni
  • Around the block
  • *
  • Posts: 2582
  • Post quality +35/-8
  • Gender: Male
  • Dōmo, Konnichiwa, :censored:es...
    • Misadventures in Mediocrity and Modding
Re: Potentiometer problem..?
« Reply #1 on: December 21, 2009, 09:33:23 PM »
TBH I have no clue, my only guess would be that it could be overloading the circuit. if they use a common anode, and there isn't enough voltage from your source to power all 3 at the same time then it's possible that the legs requiring higher operating voltages would not operate. (at least as far as my limited understanding of electrical theory is concerned. I know I've seen it happen in cars anyway...)

Now, I know you're into PICs and you said you were using PWM, so I assume there is a PIC involved in the circuit somewhere. So in my quick, unsuccessful, search to refresh my memory on RGB LED operation I found THIS, which you may be interested in, and may help you...
AcidMods Ninja... You won't know I'm there until you're gone...


All of these sigs are from the original acidmods sig comp...  @jrfhoutx  "No respect, no respect at all... that's the story of my life." --

Offline spurgurgle

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1121
  • Post quality +17/-1
  • Gender: Male
  • call me spurg
    • my blog
Re: Potentiometer problem..?
« Reply #2 on: December 22, 2009, 02:52:07 AM »
i dont really know but i might be beacause of the red in the led requirering less forward voltage........

try getting a red and blue and a green led wire them blue and green up to a power supply.... then add the red on... the blue and green will get dim... unless u resistor the red down by about 100ohm's



« Last Edit: December 22, 2009, 02:55:13 AM by spurgurgle »

Sigs made by Ken and blazin from the AM Art team cheers guys.....
Spurgurgle d.t com
"I'm kinda like a typo, not quite right, but most people still understand me"

Offline GhoSt

  • Creating Null
  • Around the block
  • *
  • Posts: 2552
  • Post quality +19/-0
  • Gender: Male
  • Null Pointer Exception
Re: Potentiometer problem..?
« Reply #3 on: December 22, 2009, 03:20:08 AM »
spurgurgle why would you add a resistor when a potentiometer is a resistor (a variable one).
|Variegation - GhoSt's Final Controller|

|Nothing is deterministic.|

Offline spurgurgle

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1121
  • Post quality +17/-1
  • Gender: Male
  • call me spurg
    • my blog
Re: Potentiometer problem..?
« Reply #4 on: December 22, 2009, 04:09:37 AM »
spurgurgle why would you add a resistor when a potentiometer is a resistor (a variable one).

i know what i pot is ghost.


i dont really know but i might be beacause of the red in the led requirering less forward voltage........

try getting a red and blue and a green led wire them blue and green up to a power supply.... then add the red on... the blue and green will get dim... unless u resistor the red down by about 100ohm's


in that quote im not refering to kicks's circuit wit pots in . im just saying test it out with 3 leds  red blue and green on say a 3v supply ......the green and blue will be fine until u ad in the red.

so

i guess u could say to get it to work properly u'll need a pot with a higher overal resistance.... or add in extra resistance with say a normal reistor to lower the power to the red led.

Sigs made by Ken and blazin from the AM Art team cheers guys.....
Spurgurgle d.t com
"I'm kinda like a typo, not quite right, but most people still understand me"

Offline PspKicks316

  • Acidmods Alumni
  • Mad Bomber
  • *
  • Posts: 5709
  • Post quality +5/-4
  • Gender: Male
Re: Potentiometer problem..?
« Reply #5 on: December 22, 2009, 04:25:12 AM »
The pots I'm currently using aren't powerful enough to completely bring down the voltage to shut off any one led color...unless red is on (I plan on getting 200ohm and 500ohm and seeing which works better).
Maybe that could affect it?

I'll add in another resistor going to the red on later on today and see if that helps at all.
The only other problem with my project is that between the 22 leds, maybe 3-4 don't change color as well. It's a premade pcb I'm hijacking, but they're wired in parallel.
I guess the only thing for that would be to rewire the circuit and wire each led separately and jump the power to the leds instead of it going through the circuit (to be safe with testing).

Oh well lol

And thanks for the link Jr. I'm not using a PIC (using an Atmel AVR) but I may be able to figure out some things from that source code.
This would be alot easier (and a lot less intrusive) if I could just get my 3 pwm timers to run at the same friggin time...

Post Merge: December 22, 2009, 09:22:11 AM
Replaced pots with switches. Same thing. Tried resistors, and all it does it lower the max brightness.
WTF.

Post Merge: December 22, 2009, 04:28:00 PM
Got PWM running on all 3 pins at the same time, but lo and behold I'm still having the lighting problem. It's not because I'm splitting the signal then.

God, this is weird.
« Last Edit: December 22, 2009, 04:28:00 PM by PspKicks316 »

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal