Arduino RGB mood lamp, touch + tiltable potentiometers

I decided to spend some time building a RGB mood lamp as an unique gift for my girlfriend’s birthday. I wanted it to have a touch potentiometer to choose the color ( like the Philips LivingColors ), a normal potentiometer to change luminosity/speed and a button to switch between modes. To keep the design minimal I decided to make a custom tiltable potentiometer, so tilting it you can switch between them: off, choose color and luminosity, fade between colors choosing velocity. Special thanks to my girlfriend for the videos and the photos!

This is my first electronic project, so please don’t mind if the work is not perfectly clear. I choosed Arduino because it’s a nice and cheap environment which it’s simple to program, it was a nice experience indeed! The parts’ list:

Everything but the HotPot, the  leds and the Arduino was bought at local stores. If you live in Italy keep in mind that we have a seriously unpredictable way to tax products coming from outside the EU. Sparkfun did a nice job writing  the value of the products they sent to me outside the box, which can be easily checked online once you open the package. In spite of this, I had to pay 18 EUROS extra fee, which is almost FOUR TIME  the 20% VAT of 36$ ( around 25 euros ) which must be applyed! Thank you, Italy!

I simply soldered everything on the drilled board which fits on the Arduino: 470 ohm resistors are connected on the PWM outputs, then all the leds are soldered in parallel in two rows. The rotary potentiometer and the pushbutton are soldered to connect to an analog and a digital input respectively, then the touch potentiometer is connected with connectors soldered on the board, because it is glued on the lamp’s wall, so I can’t unmount it. Must be noted that I had problems with the behaviour of the HotPot when using power from the pc through USB only,  maybe I was using too much power. For the tilt potentiometer I take advantage of the flexibility of the lamp’s wall, making a small slice of  curved polypropylene which press the pushbutton once tilted. I used a self-adhesive rubber feet lying around my room to make it more effective. I must thank HackADay blog for reporting the push potentiometer hack, which inspired me this solution!

How the tilt potentiometer works!

Finally I found some code to convert HUE-to-RGB on this nice post on the Arduino forum!

Here you are a gallery with more photos of lamp’s details + in-the-making shoots!

17 Responses to “Arduino RGB mood lamp, touch + tiltable potentiometers”

  1. Hi, if you want to buy an Arduino in Italy you could check Smart Projects or Robot Italy, both can send you Arduinos and other stuff, they should arrive faster and you don’t have to pay extra taxes.
    For rgb LEDs and other components you could check Farnell, they can send you stuff too and if you’re lucky enough to have a local distributor you can order parts to them and don’t have to pay shipping costs.
    Keep up the good work!

  2. Pierfunk (Nephew) Says:

    When you said me: “I want to make a lamp for my girlfriend’s birthday” I thought a common lamp:a bulb and a switch!
    Your mood lamp is great!!!!
    next step…to connect the lamp to Ipod and light move to music.

  3. […] built an RGB mood lamp as his first electronics project. He certainly hit it out of the park with this one, ending up with […]

  4. Nice job! Very clean looking.

  5. Hi there, nice job!

    Maybe next time you prefer to take a look at the Italian distributors for SparkFun

    I have the same problem in Spain, so I ended up buying from their Spanish distributor:-)

  6. Chefdude548 Says:

    Would you be willing to release the source code and more complex diagrams for this project? I quite like it, and would like to make one as a gift.

  7. @enkel: I bought the Arduino at Smart Project, I’ll check Farnell too! Thanks for the info!

    @joetape: thanks for the link, I think I’ll check the italians distributors the next time ;]

    @chefdude548: I’am not an electronics expert, that’s why I did not release more complex diagram. However I’m working on hit, I hope to release them ( maybe a PCB too ) and the code soon.

    @all: thanks for the compliments ;]

  8. Yeah, i’m wondering too when the source code and the diagram will be released; it’s just a wonderful work!

  9. Same as encomes, can you please publish some schematics? and code:)

  10. arduino noob Says:

    And it was my understanding that arduino is made in italy!

  11. I WANT THAT KNOB! Says:

    Where did you get that sexy knob!!!

  12. I absolutely love your design and it has inspired me to do a sort of ambient lighting around the perimeter of my bedroom. So far my set back is the coding. Any chance you will be posting the code for yours anytime soon.

  13. can you tell me how to link 8 RGB LEDs to the arduino broad? we both know there are limitted pins ..thank you…

    • if you don’t need to run them indipendently you can sold them in parallel . As arduino has 6 pwm outputs, and rgb led are basically 3 leds in one, i soldered them in parallelel in two rows using all 6 outputs. I needed that because of the amount of current needed to light them properly, wiring them to 3 outputs would make their light weaker

  14. Hi there we are workin on one Project and i am looking for a code for changing the Speed of three LED Mood light just as you did it on your Video! will it be posible to get the code please? if so ill be more than happy. Thanks

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: