Zedomax DIY128

From Zedomax Wiki

Revision as of 19:09, 27 April 2007; Max (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search

HOW TO Make a Glowing Heart LED Night Light!

Image:glowing-heart.jpg


HOW TO Make a Glowing Heart LED Night Light!


I was at my local Dollar Store the other day and when I saw this Heart shaped Touch Light, I had to hack one for my gf.

Here's a quick hack on how to make a regular Touch Light and make it into a Glowing Heart Night Light.

Parts List

Touch Light from local Dollar Store: $1

CB220 Proto Board: $5

CB220 Module: $34

12V Adaptor: $9

11 RED High Output LEDs : about $5

Soldering stuff

screw driver

Total Cost for parts: $54

Image:diy128-1.jpg

1) First you get the parts ready...

Image:diy128-2.jpg

2) Unscrew the screws on the Tough Light and open it up.

Image:diy128-13.jpg

Image:diy128-3.jpg

3) Build the Proto-board and then build the circuit.

Image:diy128-4.jpg

4) Get rid of the bulb.

Image:diy128-5.jpg

5) You can use a 12V adaptor to power the thing or use 9V battery too.

Image:diy128-6.jpg

6) Cut the end of the adaptor and slide it through the holes in the Heart Touch Light.

Image:diy128-7.jpg

7) Connect the cut lines to the DC Jack of the protoboard

Image:diy128-9.jpg

8) Connect the DC Adaptor ends as shown above.

Image:diy128-10.jpg

9) Place the whole board on top.

Image:diy128-11.jpg

10) Get a piece of plastic or make a little film piece using scotch tape.

Image:diy128-12.jpg

11) tape it nice so the board stays in tact.

12) Download this program to the CUBLOC CB220 module:


Const Device = CB220

Dim Duty As Integer
Dim direction As Byte
Dim onoff As Byte
Dim ct As Byte
onoff=0

Output 5
Output 6
Output 7

Duty=0
direction=0
On Timer(5) Gosub here

Do
Loop

here:
	
	If direction=0 Then
		Duty=Duty+25
	Else
		Duty=Duty-25
	End If
	
	Pwm 0,Duty,1024
	Pwm 1,Duty,1024
	Pwm 2,Duty,1024
	
	
	If Duty>1024 And direction=0 Then direction=1
	If Duty<5 And direction=1 Then 
		direction=0
	
		For ct=0 To 15
			onoff = onoff Xor 1
			Out 0,onoff
			Out 1,onoff
			Out 2,onoff
			Out 3,onoff
			Out 4,onoff
			Wait 50
		Next
	End If

	
Return

12) Screw the whole Touch Light together and test it out!


HOW TO Make a Glowing Heart LED Night Light!