For my final assignment I decided to build a lamp using a neo pixel ring. This builds upon my previous light controller assignment.
Make a device to control a light with the following features:
- A control to turn the light on and off. When it turns on, it should retain the relative red, green, and blue brightness levels from when it was last turned on.
- The ability to fade each color channel (red, green, and blue) from off to full brightness
- Fade level should be maintained when you release the fade controller
- Fade should be interrruptable by other controllers, e.g. on/off or another fade controller
- The ability to fade the overall brightness of the light
Coding the Light Effects
I need to create code that controlled an on/off button, a potentiometer to control the color switching and another to control the brightness. Since the design of my light inspiration is sleek and simple, I opted to also keep the controls simple. Having never worked with neopixels this proved to be a confusing process. I had lots of examples to reference but was not quite sure what the code was saying until I uploaded each to my arduino and wired breadboard. This gave me some sense of what the commands of the neopixel library meant – but did not end the frustration.
I used plywood for the sconce. I design the back of the sconce with a pocket to house the controls (seen in the images below). I used two frosted plastic containers from Muji for housing the components on the back of the light.