Introduction: Homemade RGB Light Bulb
Since we're all social distancing at home, we have more free time. This is a simple project that you can make to decorate and also light up your room.
- An old light bulb
- An Arduino nano - https://store.arduino.cc/arduino-nano
- A 9V battery - https://www.amazon.com/Duracell-Coppertop-Alkalin...
- An adapter 9V - female socket - https://www.amazon.com/Battery-Connector-Elevin-T...
- A cutter
- An IR Receiver with remote control (you should also know the codes for it) - https://www.amazon.com/KOOBOOK-Infrared-Wireless-C...
- An RGB LED
- Female to female jumper wires
- Ground splitter (female to male*2)
- Arduino IDE/mBlock installed on your computer
NOTE: The Arduino, IR Receiver, RGB LED (with jumper wires), 9V battery and 9V connector should all fit in the bulb you've chosen.
Step 1: Preparing the Housing
Take the light bulb and try to carefully crack it open as you see in the first picture. Remove all the circuits from inside, you won't need them. Make a hole in the back using the cutter. The IR Receiver needs to fit through the hole as seen in picture 3.
Step 2: Preparing the Code
Install and run Arduino IDE on your computer (https://www.arduino.cc/en/Main/Software).
Go to Tools and click on Board. Select Arduino Nano.
I've attached all the files you need. Move them into a folder and run "project_IRLed3_6.ino".
As you see in the image, the highlighted numbers are the codes for the remote control. You should change them according to your remote.
Step 3: Assembling the Bulb
Here comes the fun part! Connect everything as seen in the picture. If you have any questions, feel free to write them in the comments! Then you'll need to fit everything in the empty bulb. Now click on the top of the bulb.
NOTE: When assembling the bulb, make sure that the IR Receiver sticks out through the hole you made previously.
UPDATE (4/25/2020): I just figured out the fact that the red wire of the RGB should go to pin 5. Otherwise, the red color won't work!
Step 4: Finishing Up
Now, your bulb should be complete. By default, key 1 should make the light red, 2 should make it green, 3 should make it blue. If you've done this project, please click the "I made it" button.