After a lot of tinkering with the software I have now arrived at a version I am happy with. The mood lamp has the following functions:
- Rainbow colour changer (manual and automatic)
- Fire effect
- Sunrise and sunset effects
- Sound to light
- Colour changer which cycles through several colour palettes
- Static colours selected by the appropriate button on the remote.
The final hardware version now only uses one ATMega328P running as an Arduino Uno Clone. This has been possible by the use of an interrupts based IR decoder library that doesn’t block the main programme loop. I have also shifted to the FastLED library to drive the NeoPixels.
The hardware is now permanently soldered on Adafruit Perma-Proto boards and LED ring fixed to the lamp body using Sugru. All that is left now is to finish assembly and the project page. Once completed, the project page will have some videos of the lamp in operation. Below are some pictures of the completed hardware parts.
For further details see the project page!