Introduction: Arduino (optic Fibre)

I just brought a new lamp and after a week, I'm tired of looking at it randomly change colours between red, blue, green. What can you expect from a cheap lamp brought at 5$ . Looking at the lamp I realized that I could make a gmail lamp, that shines green every time I got a unread mail.
But after some time I changed my idea, and started working on a simple hack. The hack is relatively simple, we can use an Bluetoothdevice to communicate with my lamp and make it glow which colour I like. And further to the upgrade the lamp just doesn't glow red, blue, green but also an addition of a few other colours. The additional colours is a mixture of the three primary colours. And at the end of the day I was happy with my lamp and it looked quite cool controlled with my android mobile phone

Step 1: Parts

Lets start with getting all the required parts

1)RBG Leds
2)Arduino
3)Bluetooth module
4)RBG lamp

TOOLS
-soldering iron

Step 2:

Time to disassemble the lamp, after disassembling I found this tiny board with three leds. I de-soldered all wires going to the board and started soldering wires across the leds and connected all the cathodes of all the leds together as seen in the circuit. If you have a RBG led you could go with that instead of three leds. Follow the circuit and you would have a lamp ready to be powered.

Step 3: Colours

Time to set the colours you like, you could stay with standard red, blue, green. Here is a simple list to get the colour you prefer.
-Red
-Green
-Blue
-Magenta (red+blue)
-Cyan (blue+green)
-Yellow (red+green)
These colours are programmed in the code and to get the respective colour all you have to do is enter the first letter and the lamp glows.

Step 4: Code

Time to upload the code to your arduino, you can download the code from the attachments. Make sure that the Bluetooth module isn't connect to the arduino board, or the code wont upload to the board. Try modifying the code to make it more user friendly.

Step 5: Bluetooth

Time to connect the Lamp to your mobile or mac. For android user's you need to download an app named 'Arduino Bluetooth terminal' . After you install the app pair your android device to your board and start the app.
Click connect once the app is launched. And now try sending any colour case (Example- 'b' for blue), if the lamp lights up your project is done.

Comments

author
dashajiang (author)2013-12-08

it's great

author
BdSquirrel (author)2013-12-06

Great nick-nack hack! Just a thought, perhaps an ATTiny running on Int Osc. might be better suited for this. Would be cheaper, smaller, use less power and you could probably tuck it all in the base of the lamp!

author
aliasjanedoe (author)2013-11-30

I really want the version that tells when you have email. Is there an instructable for that?

author
ThisIsSteve (author)aliasjanedoe2013-11-30

I don't think there is an instructable for that, im working on that and I will post an instrutable very soon.

author
aliasjanedoe (author)ThisIsSteve2013-11-30

I actually just found this one:
https://www.instructables.com/id/Mail-Light-Blink-LEDs-via-USB-to-show-you-have-ma/

However, that's more money than I want to spend on parts. :(
Maybe you can find a cheaper way.

About This Instructable

18,513views

221favorites

License:

Bio: Hi, I just launched an Indigogo campaign support my projects by backing it. https://www.indiegogo.com/projects/tinker-usb-a-wifi-based-badusb#/
More by ThisIsSteve:Linkit One Text to SpeechLinkit One Kitchen TimerIntel Edison Talks to Linkit One
Add instructable to: