Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

LPF Donation via Stripe | LPF Donation - Other Methods

Links below open in new window

ArcticMyst Security by Avery

Step by step guide to making a 3W RGB moodlight!!

SMIDSY

0
Joined
Mar 7, 2008
Messages
881
Points
0
[highlight]source code now added below![/highlight]

Ok guys- my first guide on the forum please let me know what you think! If you follow this you will build a RGB moodlight with nearly 16million colours and 5 modes. The modes are: Random color generation (fade), colour cycle ( fade), freeze colour, colour jump (no fade), and slow down.

1) Ok start off by building the driver- you will need the following: Breadboard, solder, soldering iron, wire, 3X BC337 transistors, 4X 10Kohm resistors, a 4 in one dip switch (or 4 switches if you prefer), 1X 1gf628 PIC board (and programmer- or get the seller to program it for you), one 5, 10 & 15 ohm resistor and either 3 LEDs (red green and blue) or a single 3W RGB LED.

and of course a host!

Build the driver using the circuit plan: [highlight]NB this has been cut off on the right- there should also be a blue LED with another resistor & transistor like the other 2 LEDs - PM me for the full schematic![/highlight]
[highlight]NB2 depending on the LED config you may need an additional 3 resistors between the PIC and the transistors.[/highlight]
circuit.jpg


you should end up with something looking like this:
th_DSC04061.jpg


or this:
th_DSC04077.jpg


depending on how neat you are!

2)
With the driver built you need to heatsink your LEDs (if your using high powered ones- if not skip this step).

Take a CPU heatsink like this one:
th_DSC04073.jpg


remove the fan and any thermal paste left on it and you will be left with this:
Moodlight


Now using a milling machine (which I used) or a hacksaw cut the heatsink to fit your host/ LED, using thermal paste place the LED onto the heatsink and then hot glue (or screw) the LED in place taking care nto to glue over the actual LED bit (cable tie the wires round the heatsink:
th_DSC04060.jpg

th_DSC04075.jpg


3) Now with everything built, fit the LED and driver into your host (you nay need a light diffuser if your host isnt 'frosted' otherise the light will not mix/ will be too bright.

and there you fo all you need to do now is supply 5V DC and your done!:
DSC04078.jpg


now if you look in that photo- you should be able to see 2 of my builds there, as well as the original messy driver!

video:


http://s657.photobucket.com/albums/uu299/SMIDSY1134/Moodlight/?action=view&current=MOV04082.flv


[highlight]comments welcome![/highlight]

[highlight]I can provide the source for the PIC if needed.[/highlight]
 





Joined
Sep 20, 2008
Messages
17,622
Points
113
Re: Step by step guide to making a 3W RGB moodligh

Nice Mood light... and schematic.... and Video.... :cool:

Where do you get the Firmware for the PIC16F628... :-?

Jerry
 

SMIDSY

0
Joined
Mar 7, 2008
Messages
881
Points
0
Re: Step by step guide to making a 3W RGB moodligh

lasersbee said:
Nice Mood light... and schematic.... and Video.... :cool:

Where do you get the Firmware for the PIC16F628... :-?

Jerry

I have the source code- i asked the guy who I bought the PIC from to program it with what I wanted.
 
Joined
Nov 24, 2007
Messages
65
Points
0
Re: Step by step guide to making a 3W RGB moodligh

SMIDSY said:
[quote author=lasersbee link=1232911119/0#1 date=1232912710]Nice Mood light... and schematic.... and Video.... :cool:

Where do you get the Firmware for the PIC16F628... :-?

Jerry

I have the source code- i asked the guy who I bought the PIC from to program it with what I wanted.[/quote]

Thanks for the tutorial. I would like to build this if I can get some free time :) Assuming we have the technology to program one of these little suckers and have a blank 628 on hand. Would the hex file / source code be available for us to download somewhere? Source code might be even better because that would allow us to chose a different pic chip for instance.

cheers,

Alex
 
Joined
May 24, 2007
Messages
283
Points
0
Re: Step by step guide to making a 3W RGB moodligh

can also provide u with the computer controllerd version of that
and even a 3 channel rgb version of that so 9 channels total
 
Joined
Nov 24, 2007
Messages
65
Points
0
Re: Step by step guide to making a 3W RGB moodligh

laserfreak3d said:
can also provide u with the  computer controllerd version of that
and even a  3 channel rgb version of that so 9 channels total

Are you saying that you have some code that will work for this project? :-?
 

SMIDSY

0
Joined
Mar 7, 2008
Messages
881
Points
0
Re: Step by step guide to making a 3W RGB moodligh

positron said:
[quote author=SMIDSY link=1232911119/0#2 date=1232993587][quote author=lasersbee link=1232911119/0#1 date=1232912710]Nice Mood light... and schematic.... and Video.... :cool:

Where do you get the Firmware for the PIC16F628... :-?

Jerry

I have the source code- i asked the guy who I bought the PIC from to program it with what I wanted.[/quote]

Thanks for the tutorial. I would like to build this if I can get some free time :) Assuming we have the technology to program one of these little suckers and have a blank 628 on hand. Would the hex file / source code be available for us to download somewhere? Source code might be even better because that would allow us to chose a different pic chip for instance.

cheers,

Alex[/quote]

Ill give you a copy of the code if you would like? Its attached- both compiled and uncompiled. I hope you all know how to use it :p

if not then just use the hex file for programming.

I can supply a kit if you wish with all the parts you need?
 

Attachments

  • Source_Code_for_3W_DIY.zip
    3 KB · Views: 47
Joined
Sep 20, 2008
Messages
17,622
Points
113
Re: Step by step guide to making a 3W RGB moodligh

Hey SMIDSY... what language was the Source Code written in... :-?

Jerry
 

SMIDSY

0
Joined
Mar 7, 2008
Messages
881
Points
0
Re: Step by step guide to making a 3W RGB moodligh

lasersbee said:
Hey SMIDSY... what language was the Source Code written in... :-?

Jerry

I can list the programs used to compile it if it helps- as I said I just got the guy I bought the programmer to program the actual thing for me.
 
Joined
Sep 20, 2008
Messages
17,622
Points
113
Re: Step by step guide to making a 3W RGB moodligh

Maybe that would shed some light on it...

BTW... thanks for your efforts......... [smiley=thumbsup.gif]
 

SMIDSY

0
Joined
Mar 7, 2008
Messages
881
Points
0
Re: Step by step guide to making a 3W RGB moodligh

lasersbee said:
Maybe that would shed some light on it...

BTW... thanks for your efforts......... [smiley=thumbsup.gif]

I know you can program directly with the compiled code just uploading it to the PIC... the uncompiled can be edited with notepad...

jal compiled to hex with jal-0.4.60.win32
 

SMIDSY

0
Joined
Mar 7, 2008
Messages
881
Points
0
Re: Step by step guide to making a 3W RGB moodligh

could possibly be the same guy.... anyway the guy I bought it from programmed my PIC for me- woudl be an amazing coincidence if it was that guy :-D
 
Joined
Jan 12, 2008
Messages
1,864
Points
0
Re: Step by step guide to making a 3W RGB moodligh

SMIDSY said:
[quote author=positron link=1232911119/0#3 date=1233056085][quote author=SMIDSY link=1232911119/0#2 date=1232993587][quote author=lasersbee link=1232911119/0#1 date=1232912710]Nice Mood light... and schematic.... and Video.... :cool:

Where do you get the Firmware for the PIC16F628... :-?

Jerry

I have the source code- i asked the guy who I bought the PIC from to program it with what I wanted.[/quote]

Thanks for the tutorial. I would like to build this if I can get some free time :) Assuming we have the technology to program one of these little suckers and have a blank 628 on hand. Would the hex file / source code be available for us to download somewhere? Source code might be even better because that would allow us to chose a different pic chip for instance.

cheers,

Alex[/quote]

Ill give you a copy of the code if you would like? Its attached- both compiled and uncompiled. I hope you all know how to use it :p

if not then just use the hex file for programming.

I can supply a kit if you wish with all the parts you need?[/quote]
How much would a kit be
 

SMIDSY

0
Joined
Mar 7, 2008
Messages
881
Points
0
Re: Step by step guide to making a 3W RGB moodligh

jamilm9 said:
[quote author=SMIDSY link=1232911119/0#6 date=1233082671][quote author=positron link=1232911119/0#3 date=1233056085][quote author=SMIDSY link=1232911119/0#2 date=1232993587][quote author=lasersbee link=1232911119/0#1 date=1232912710]Nice Mood light... and schematic.... and Video.... :cool:

Where do you get the Firmware for the PIC16F628... :-?

Jerry

I have the source code- i asked the guy who I bought the PIC from to program it with what I wanted.[/quote]

PM sent- not too much....

Thanks for the tutorial. I would like to build this if I can get some free time :) Assuming we have the technology to program one of these little suckers and have a blank 628 on hand. Would the hex file / source code be available for us to download somewhere? Source code might be even better because that would allow us to chose a different pic chip for instance.

cheers,

Alex[/quote]

Ill give you a copy of the code if you would like? Its attached- both compiled and uncompiled. I hope you all know how to use it :p

if not then just use the hex file for programming.

I can supply a kit if you wish with all the parts you need?[/quote]
How much would a kit be[/quote]

PM sent- not too much....
 

Benm

0
Joined
Aug 16, 2007
Messages
7,896
Points
113
Re: Step by step guide to making a 3W RGB moodligh

Some comments:

I think you have mixed up the resistors for the LED's in the schematic. Blue tends to have a higher working voltage, and would require a smaller resistor for the same current at 5 volts. So, i believe the 5/10/15 ohms resistors must be in reverse order.

And a note for future project: On the 16f628a, port B features internal pull up resistors that are software selectable. You could have omitted the 10k resistors when using A as output and B as input port.
 




Top