Purple Mood Light Cube

by ahmedebeed555 in Circuits > LEDs

2928 Views, 14 Favorites, 0 Comments

Purple Mood Light Cube

cube.jpg
cube.jpg

I love mood light , so I decided to build a motion controlled mood light.


Here is my Channel on Youtube:

AeroArduino

Wish you the best. And have fun ,Live free And Read Books on Amazon


The Electronic Circuit

SAM_1416.JPG
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) from Amazon US or eBay
1 Analog Devices ADXL206 (or any Accelerometer of your choice) from Amazon , Amazon DE or eBay

3 Red LEDs from Amazon , Amazon DE or eBay

3 Blue LEDs from Amazon , Amazon DE or eBay

1 40 PIN Socket from Amazon , Amazon DE or eBay

1 8 PIN Socket from Amazon , Amazon DE or eBay

1 9 Volt Battery from Amazon , Amazon DE or eBay

1 9 Volt Battery Connector from Amazon , Amazon DE or eBay

1 Holed board from Amazon , Amazon DE or eBay


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:

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

Software

SAM_1412.JPG
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 the link below.
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:

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

Downloads

Cube Body

SAM_1551.JPG
Body of PurpleCube.bmp
SAM_1553.JPG
SAM_1554.JPG
SAM_1556.JPG
SAM_1560.JPG
SAM_1559.JPG
SAM_1566.JPG
SAM_1571.JPG


I built the body from old CD-ROMs I don’t need any more. I cut them into 6 squares by an architects saw in such a way that when put beside their each other have the maximum structure strength. I glued them together by a wax gun.

I scratched the surface of the CD-ROMs with Sand Paper for good light diffusion.

I made a hole for the switch of the circuit so it can be accessed from outside of the cube.
The board is installed on the bottom side of the cube by wax and thin wires. After you finish installing the cube, make sure to arrange the LEDs in near spherical shape to get the best illumination. And get them as far as possible from sides of the cube that will make them look better.

Beads Cover

SAM_1419.JPG
beads.jpg
SAM_1563.JPG
SAM_1574.JPG
SAM_1576.JPG
SAM_1593.JPG

In order to make this beads case just bring 2 colors of beads, crystal string, and scissors

using 4 beads create a circle then for each one attach 3 beads from the other color to form a circle and when you finish the original four you will get a square.

measure the length of the square to determine the no. you need in each face of the cube, in my case i found that i need 16 square in each face: 8 with purple center and 8 with the reverse with considering that the bottom will have less squares by 1 for the electrical button, so i made them and attached them together.

bring your cube and fix faces together to cover the cube and in the bottom face i attached only one side to make it like a door to be able to open it and replace battery.

in order to make that door close firmly to not harm the circuit when you shake it, i used the Velcro for the door and also to close the beads above the door as shown in the picture.


Shake and enjoy .

Wish you the best. And have fun ,Live free And Read Books on Amazon

Do you like audio books and want to learn something new on the Go ?

This instructable is brought to you by Audible, the famous Audio Books Platform. You can now listen to free Audio Books from Audible.

Listen to Free Audio Books on Audible US ...

Listen to Free Audio Books on Audible CA ...

Listen to Free Audio Books on Audible UK ...

Listen to Free Audio Books on Audible DE ...

Listen to Free Audio Books on Audible FR ...




If you like this instructable you can support us by many ways:

1. Leave comments stating your point of view about this article.

2. Buy our book on Amazon Learn By Making.

3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free. This means that you can enjoy something for free and still support our blog to keep posting useful stuff.

Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices

This is the well-know Amazon Kindle platform. If you sign up for the free reader from Amazon to read any book, we get commission. There are many useful book for free on Amazon Kindle. Even you can find best sellers offered for free on Kindle format. The best part is you can have the application on any platform. You can even read any book without installing any application by using Amazon Cloud-Reader on your browser.

Join Amazon Kindle Unlimited 30-Day Free Trial

You can join Amazon Kindle for 30 days free to have access to many paid book for free. You can cancel you subscription anytime.

Try Amazon Prime 30-Day Free Trial

The Amazon Prime is a special paid service from Amazon that offers good promotions and one-day free shipment for Amazon Shoppers. You can try this service for 30 days. You can cancel you subscription anytime.

Shop Amazon - Give the Gift of Amazon Prime

Try Audible and Get Two Free Audiobooks

Audible is the audio books website from Amazon. Many Kindle books are sold on Audible. You can try this service for free and get 2 free book. You can cancel you subscription anytime.

Shop Amazon - Create an Amazon Baby Registry

If you have a new baby borne or expecting one, you can create your free baby registry to easily save products and get offers and promotions on baby requirements.

4. Visit our new website outatime.tech.

Thank you for visiting our instructable.