Go Down

Topic: Arduino Uno as LED Controller (Read 320 times) previous topic - next topic

mathishuettl

Sep 08, 2017, 04:50 pm Last Edit: Sep 08, 2017, 05:08 pm by mathishuettl
Hello,

I want to use a Arduino Uno as RGB Controller, so I reconstruct this circuit https://learn.adafruit.com/assets/2692

What you don't see on this circuit is, that my 24V + Pin is on the LEDs + Pin and the Ground of the 24V Power supply goes into the GND of Arduino.


It works not bad, but I don't understand some things..



Quote
AnalogWrite(REDLED, 255)
The Stripe is really bright red

Quote
AnalogWrite(GREENLED, 255)
The Stripe is really bright green

Quote
AnalogWrite(BLUELED, 255)
The Stripe doesn't shine.... it seems like it's off

Quote
AnalogWrite(REDLED, 255)
AnalogWrite(GREENLED, 255)
I get a bright green, but i expect a bright yellow?
(It's also green when I switch this two lines)



vinceherman

I don't see anything at all.
Rather than posting a link to someone else's wiring diagram and trying to describe how you changed it, post your own wiring diagram.
Pencil, paper and a camera are good enough if you include the proper detail.


Grumpy_Mike

Is your strip a 24V strip? You can not just put 24V on a normal 12V LED strip.
Quote
The Stripe doesn't shine.... it seems like it's off
You might have blown the blue LEDs.

vinceherman

I am curious how the 24V power supply is applied to the 12v LEDs.

mathishuettl

yes its a 24v stripe... 10meters

Grumpy_Mike

So connect the blue output of the strip to ground instead of connecting it to the FET. Does it now light up?

mathishuettl

no it doesn't light up, so I killed the blue led :)
But can someone explain me the "problem" with the different values?

How can i produce a yellow light as example?

When i make analogwrite(green, 255) and analogwrite(red, 255) then the led lights up green..

Grumpy_Mike

You use a smaller value in the analog write call on the green LEDs to balance the light output from each.

This is quite normal, although perhaps your 24V LED strip is not of the best quality if it came from China through something like eBay.

mathishuettl

ah okay, so the included led controller already have this smaller value calculated?

Grumpy_Mike


mathishuettl



Go Up