183Views11Replies

Author Options:

Play with IKEA DIODER and Arduino Answered

Hi everybody !

I have an Ikea DIODER that I want to drive with my arduino UNO.
I'm quite noob with electronics and i'm looking for some help ;)

When I opened one of the for lamp, I saw 4 spots marked R, G, B and M (or W?). If I test voltage between the M spot and another one, I can read "14V".

So, I'll have to use the original power supply of the dioder because arduino can only deliver 5V max, am I right ?
My main interrogation is, how will I use the 0 -> 5V (with analogWrite() on pmw port) to get 0 -> 14V to power lamps.

I thougth to use some NPN transistor but I'm not sure this will be a great idea...

If some of you guys have some tips for me, you will make my day !

PS : as french guy, I'm sorry in advance for my bad english... :s 

Discussions

0
None
steveastrouk

Best Answer 2 years ago

PWM won't damage the LEDs.

Relays won't do what you want.

Yes, you need to use transistors, and to do that, it would help to answer the question I asked yesterday.

0
None
ArthurB24steveastrouk

Answer 2 years ago

Okay ! But I'm affraid I didn't understand your question.

I thought the "M" stands for the ground ("Masse" in french). So I took the voltage between this end and another one when the light was on. So I don't know how to anwser to your question... :s

0
None
steveastroukArthurB24

Answer 2 years ago

OK, and what did the meter read ? + volts or -volts ?

0
None
ArthurB24steveastrouk

Answer 2 years ago

Today I found around -19V

I add two pictures of how I did the measure. Is that correct ?

IMG_20160122_182731.jpgIMG_20160122_182838.jpg
0
None
steveastroukArthurB24

Answer 2 years ago

That's why I wanted to check. It does not agree with your guess that 'M' means ground.

So, three NPN transistors on the inputs to the LEDS:

Connect each emitter to M, connect each collector to one of the LED connections, connect the base of each transistor, with a 1K resistor, to the analog out pins of the arduino.

0
None
ArthurB24steveastrouk

Answer 2 years ago

Thank you so much for your answers ! I will try that soon and I will send you some pictures ;)

0
None
Downunder35m

2 years ago

First you need to check how the LED's are powered, e.g.: Do they get 5V, 12V or something else at full brightness.
Next you need a suitable power supply, if in doubt use the original that came with the lamps.
Next is a simple driver circuit so the Arduino can switch some transistors or mosfets supplying the juice to the LED(s).
Last but not least is to take one of the many code examples for PWM LED control from the Arduino pages and if required asjust it to your needs.
After all that you will enjoy nice RGB effects :)

0
None
ArthurB24Downunder35m

Answer 2 years ago

1 : at full brightness, I found 14V

2 : Ok, I will use the original supply (even if I'm not sure how I will do that ^^)

3 : That's the tricky part, do you think transistor will do the job ? Will they not be damaged by the PWM ?

4 : I'm software developper, I'm not affraid to get dirty ;)

0
None
bwrussell

2 years ago

It depends on how much control you want. For simple on/off of the entire system you can simply trigger a relay or transistor that you've spliced in-line with the main power. If you want individual control over each lamp then you need 4 relays/transistors and you need to move them up past the control box onto each ones power cable. Controlling the leds color/etc then it gets more complicated. You would need to know what the included controller is outputting and mimic it with the Arduino.

0
None
ArthurB24bwrussell

Answer 2 years ago

Actually, I would like to play with colors and do some crazy effects (like react to music or some things like that). I think I will have to use 3 relays/transistors by lamp but I'm not sure about which components to use and how ? And if the PWM will not damage them...

0
None
steveastrouk

2 years ago

Is the 'W' HIGHER voltage than the RGB ends or lower voltage ? It affects how you would fit a transistor