IKEA Mood-light Conversion using PIC12F683P
This little project was one of my first projects with microcontrollers. First, I made the circuit then, for years, I was wondering what I could do with it, until one day I came across this IKEA plastic bag dispenser. I knew immediately, it would make a perfect “housing” for my mood light.
I had a few LED strips leftover from previous projects in different colours. They can be operated directly from 12V DC with no extra components. For this reason, I chose to use a standard 12V / 1A wall wart as the power supply. A 7805 provides stable 5V for the PIC.
At the heart of the circuit is one of the smallest PICs, a PIC12F683, which has only 8 pins. It only has one PWM channel but I needed 3 channels for the three colours, so I had to implement 3 channels of PWM in software. Since when I made this circuit I was a complete beginner with PICs I mostly “harvested” the code from various web sites, trying to understand some basic programming techniques. In the process I tailored the code found to my specific circuit.
The components are all TTH components, very easy to solder.
The plastic bag dispenser from IKEA is a perfect fit for this purpose: it has a solid frame that is easy enough to customize using some not too powerfull power tools, white in colour, it already has mounting points on the back for easy hanging on the wall and the frame has large holes on it so that cables and the white fabric I got for it to cover can pass through them easily.
For more detail: IKEA Mood-light Conversion using PIC12F683P