IKEA Mood-light Conversion using PIC12F683P

Introduction
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.

Mood-light Conversion

Hardware
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.

There is an ICSP header also included on the board for easy development.

The components are all TTH components, very easy to solder.

Mechanical construction
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

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter