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 


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.

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

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

Today I found around -19V

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


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.

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

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 :)

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 ;)

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.

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...

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