Go Down

Topic: Simple Colour Change Lamp (Read 4239 times) previous topic - next topic


I figured it's kinda pointless seeing it in daylight... so I just switched it on (it's 1am, plenty dark enough i suspect)


oh and just to explain... I'm using 2n2222's  :D   and no "current regulation"  each npn can deliver around 800ma, so I use a 68 ohm resistor to the base pin for each segment, this rougly supplies 120ma per color which is well within spec of the transistor... I purposely kept it low knowing that when the LED heats up, i expected the current to rise up to 200 maybe 300ma, in which case it's well within spec of the 800ma limit of the transistor AND within the 300ma per RGB channels from the 10 watt.

So, 120ma * 3 * 5 =  1.8amps or 21watts.

The multimeter reads 1.8 - 1.9 amps...

Now, because I have no current limiting resistor on the emitter/collector side of the LED, it relies just on the 68ohm resistor, I originally was going to use something like a 30-40ohm resistor and 1/4watt was not up to the job, so i stuck with the 68 ohm resistor and *hoped* that once the LED's warmed up, it would draw more current to get to the 300ma mark.

And (as I suspected) ... No.

The heatsink keeps the LED's cool and sadly (even in 45c / 100f+) heat, still no... maybe if i run it for a few hours instead of 30 - 40 minutes the current will slowly creep up? - good because I like bright.

next time i'll use 1/2watt resistors and push the 50watt boundy, as it is 21watts is bright enough.


Feb 13, 2014, 11:19 am Last Edit: Feb 13, 2014, 04:03 pm by UniFly Reason: 1
Using 1.5 ohm instead of 2.2 did the job!  

Also I changed the script lines for Arduino Uno:
#define RedPin 3
#define GreenPin 5
#define BluePin 6

Now I'm focusing on scripting.  Can anyone give me simple example - how to get e.g., Violet color light (whitout fading and extra stuff). Just as simple as possible script.

Please note that I'm creating disco ball lamp. I need focused light so will try this http://www.ebay.com/itm/2-X-Glass-Lens-Reflector-Collimator-4-90-Degree-for-10W-LED-Light-Lamp-Bulb-/221277747689?ssPageName=ADME:L:OU:US:3160

Thank you Riva!
Here is the light - http://www.youtube.com/watch?v=d98uWca-7F0


Now I'm focusing on scripting.  Can anyone give me simple example - how to get e.g., Violet color light (whitout fading and extra stuff). Just as simple as possible script.

If you want just a single colour then use a paint programs colour wheel or an online version to select the required colour and read off the RGB values. Then change loop() to just these three lines
Code: [Select]

and replace the 0xXX parts with the R,G & B values you want. You may need to tweak the values to get the exact colour you want.
I might seem like an idiot but remember it takes one to know one.
Forum user generally fall into three categories (the good, the bad & the a**hole) what category do you fit in?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131