Instructables
Picture of Purple Mood Light Cube
cube.jpg
I love mood light , so I decided to build a motion controlled mood light.

If you like this instructable, Please vote for me.

                                                  
 
Remove these adsRemove these ads by Signing Up

Step 1: The Electronic Circuit

Picture of The Electronic Circuit
SAM_1380.JPG
Purple.BMP
SAM_1415.JPG
SAM_1403.JPG


Hardware

The circuit is simple. It consists of the Microcontroller, Accelerometer and 6 LEDs.
Components:
1 Microchip PIC  16F917  (or any Microcontroller of your choice)
1 Analog Devices  ADXL206 (or any Accelerometer of your choice)
3 Red LEDs
3 Blue LEDs
1 40 PIN Socket
1 8 PIN Socket
1 9 Volt Battery
1 9 Volt Battery Connector
1 Holed board

Schematic

As shown in the diagram.

First, you need to assemble the circuit, solder the parts then program the software that does all functions.
The programmer is a circuit I built myself before . The 16F917 programmer you can find it in my blog here. PicProm

You can find the programmer in the following instructable:

http://www.instructables.com/id/PIC-16F917-Microcontroller-Programmer/


Step 2: Software

Picture of Software
PicProm1.JPG
piCProm simple.png

I wrote the software for this project in C language. Compiled it with HiTechPIC compiler and used Proteus 7 simulation environment.



You can find the source code, HEX file and simulation model inside the zip file of the project. I assembled the code and generated the HEX file that must be downloaded to the microcontroller.


The software that loads the program into the microcontroller chip is called “loader” can be downloaded from here.
Once you are finished loading the software into the microcontroller, install the Microcontroller chip into its socket in the circuit.



You can find the programmer in the following instructable:

http://www.instructables.com/id/PIC-16F917-Microcontroller-Programmer/

sara m.1 year ago
amazing, i like mood light and what it makes