Skull RGB Mood Light

by by_MAx in Circuits > LEDs

609 Views, 5 Favorites, 0 Comments

Skull RGB Mood Light

20151031_175751.jpg

Color your Halloween with this Skull mood light's. Use as a scepter or lantern.

For this project I used 3d printed hull and attiny2313 on small prototyping board.

3d Print Hull

20151102_163122.jpg

I used 3d printer to print hull of the skull. STL files are included.

Materials

parts.jpg

1x Attiny2313

1x 20-pin DIP Socket

1x prototyping board (10x10 holes)

1x LM7805

1x 0.33uF capacitor

1x 1.33uF capacitor

4x 100Ohm resistors

1x Micro Slide Switch

1x 9V battery

1x 9V battery connector

some wire

Cut and bend parts before soldering.

Solder Parts

20151030_145605.jpg
20151030_145745.jpg
20151030_145756.jpg
20151030_150703.jpg
20151030_152721.jpg
20151030_153752.jpg
20151030_153803.jpg
20151030_154319.jpg
20151030_154327.jpg
20151030_154901.jpg
20151030_160039.jpg
20151030_160049.jpg
20151030_160113.jpg
skullMoodlightScematics2.jpg

Don't solder all pins at once, because some hole sharing is used.

1. Solder in just two corners of socket.

2. Insert resistor and bend its pins to form tracks on board. Cut to length and Solder.

3. Repeat with other resistors.

4. Solder in micro switch and wires.

5. Solder in RGB led.

6. Use electricians tape to isolate back of LM7805 from other components

7. Insert capacitors ant LM7805 and solder together.

Test

20151030_160531.jpg

Connect battery (without microchip) and test holes in DIP socket where in Vcc and GND will be. Use image for reference.

I used digital multimeter, but anything that could measure 5V could be used.

You can also short Vcc and DIP socket holes connected to LED's to see if colors light up.

If multimeter reads 5v and you can light up different colors manually, most probably there are no mistakes, and you can insert micro controller safely.

Program

There are some comments in the code to explain how things work.
Also some "#defines" to make the code more readable.

I used myMultiProg MK2 programmer and WinAVR software to upload program to attiny2313.

There are other options.

You can make one yourself, many instructables on this site https://www.instructables.com/howto/avr+programmer...

Or you can use arduino:

https://www.instructables.com/id/LittleBits-Arduino...

https://www.instructables.com/id/How-to-program-a-A...


Downloads

Assemble

20151030_161124.jpg
56378a4945bceb804300169c.jpeg
56378a76937ddbd42900103d.jpeg
20151030_162024.jpg

Insert attiny2313 in the socket and power up.

Colors should change randomly few times in a minute.

To speed up of slow down adjust delay times in the code.

Put everything together as shown in the pictures.

Use toothpick between skulls teeth to reach to the switch.

Happy Halloween!