This is version 2 of my previous LED lamp, now with an Arduino controlled RGB LED and IR remote control.
Fitting an Arduino Nano inside the snow globe turned into a messy, and not particularly good looking, job as it had to be mounted upside down inside the plug so that glare from the red indicator lights didn't interfere as much with RGB glow.
Once the Arduino was secured in place I added the RGB LED and IR receiver module.
The Arduino is powered using a wireless charger kit, with one coil mounted inside the lamp and the other in a simple 3D printed box (printed by Mortar Art). A note about this kit: The coils only provide full power when they're both the correct way up, so remember to double check this before final assembly.
The IR kit comes with a remote, a receiver module and a spare IR emitter. By using the Serial.println() function to discover the resulting codes for each button I was then able to map them to various functions within the Arduino program.
The lamp has 2 modes:
- Solid colour on at full brightness (red, green, or blue)
- Colour fade (heavily adapted the fade example code provided with the Arduino IDE )
- The Arduino Nano's indicator lights (power and activity) are too bright and can't be disabled in the software. If I use this board for other lighting projects I'll encase the board entirely to prevent further light leakage.
- The snow globe's plastic plug loses all structural integrity if you make too many holes in it. This plug could be custom designed and 3D printed, probably in black ABS to help with the light leakage problem.
- The single RGB LED isn't diffused enough inside the sanded snow globe. An array of LEDs might work better here.