Yes, i AM going to use a PIC for the control of the lamps. The PIC that i will use, is my all-times favorite. I am talking about the 16F1937 masterpiece. It carries enough modules and abilities, and also it has a very low price! Not to mention the 36 I/O ports!
So, first of all the schematic diagrams. I plan to use two PCBs, the one will have the 4 7-seg digits, and the other the rest parts. The first schematic i present is the 4 digits.:
This schematic is easy and needs of extra explanation. Directly to the controller schematic:
The controller is connected with the digits using a 12-pin connector. The circuit is powered with 12V AC, and has a 7805 that will produce the 5V required for the PIC to operate. Capacitors are used to smooth the power. The 12 Volts are only used for powering the LEDs. The common of each digit is controlled with a BC337 transistor. I have include also a buzzer controlled by a BC547, for notification alarm and sound-feeling of the button clicks. Two separate mosfets are used to control the two UV LED plates. Bot are controlled with PWM. The encoder is conencted to the PCB using a 4-pins connector. A single pin for each of the two buttons (start and stop) is included. The other edge of the buttons should be connected to the common ground. And finally, the ICSP connector. Never leave home without it. You spent 3 I/O ports for this, but hey, you have another 33 to play with! You can program and re-program the PIC without removing it from the PCB.
As always, before making a PCB, i put all the parts together on a breadoard for test. So this is how it looked like:
Bill Of Materials
Resistors
R1-8
Resistor 150 Ohm 1/4 Watt 5% Carbon Film
R9-12
Resistor 1 KOhm 1/4 Watt 5% Carbon Film
R13
Resistor 10 KOhm 1/4 Watt 5% Carbon Film
R14-15
Resistor 220 Ohm 1/4 Watt 5% Carbon Film
R16-18
Resistor 1 KOhm 1/4 Watt 5% Carbon Film
Capacitors
C1
Electrolytic Capacitor 100 uF 16 Volts
C2
Ceramic Capacitor 0.1 uF 50 Volts
C3
Electrolytic Capacitor 1 uF 50 Volts
C4-6
Ceramic Capacitor 0.1 uF 50 Volts
C7-8
Ceramic Capacitor 3.3 nF 50 Volts
Semiconductors
B1
2W005M Single Phase 2 Amps Silicon Bridge Rectifier
D1
1N4148 Switching Diode
LED1
LED 3mm green
LED2
LED 3mm red
T1-4
BC337 NPN Silicon AF Transistors
T5
BC547 Switching and Applications NPN Epitaxial Transistor
Q1-2
IRF520 9.2A, 100V, 0.270 Ohm, N-Channel Power MOSFET
Integrated Circuits
IC1
7805 Positive Voltage Regulator
IC2
PIC 16F1937 Microcontroller
Misc
SG1
Buzzer 5V PCB-Mount buzzer
The Eagle files (January 15, 2012)
I received many request to upload to eagle files. The project was very old and i really did not expect to become that popular, so i did not went into the trouble to search them. But it seems that there are many people who want them. Here they are:
I created 2 panels with 63 LEDs, each led is 1W. Dimensions of one panel are 400x320mm. Each LED is mounted on aluminum heat sink which is attached for 1mm metal plate.
I attached plate in a wooden box I created for these.
Can you share your dimension of box? (box, led panel,...)
At 13 April 2015, 12:44:20 user David wrote: [reply @ David]
I know that, I used 63LEDs on one plate for lightning, each LED is 1W.
I try to ligt few PCBs, but PCBs with ticker lines are ok but with thinner lines they are illuminated a little too much.
I will try to play a little with frosted glass.
@David the frosted glass helps to have an even surface. But you will need more LEDs. 1w is too small.
At 22 March 2015, 20:40:20 user David wrote: [reply @ David]
Hello.
I created this box with 1w UV LEDs(140degree), and it doesn't not light very good my PCBs. I created everything by mathematics from page and it should work. So tell me is that frosted glass really needed in front of my LEDs or they are too strong.
Please I really need some help, and sorry on my English.
Hope someone will answer. Ty.
Hi does anyone have the MYINITIALIZATION.INC file and or a working hex. The hex in worklog works fine up to the point it does not switch off the Leds when the timer reaches zero. It goes to 999 and carries on counting down
@Andoni Actually i have already began a remake with other powerful LEDs. I'm working on an SMPS driver with PIC. So this project is rather "obsolete" for me.
@Giorgos Lazaridis Thanks, i´ll use 100 leds at the top and 100 at the bottom at 5000mcd 20 degrees. This project is awesome! xD did you improve the hex file as you said in page 6 of the worklog ?
@Andoni Wow ancient history. As far as i can remember it was 3500mcd 20mA 25 degrees angle. But you should get the more leds you can and the brighter the better.
What kind of UV leds did you use? when I search for UV leds I found a lot of different ones. Could you please post the specifications of the leds? (current draw, luminous intensity, etc) I really want to build this but I dont know what is the correct luminous intensity, if you search you can find from 400mcd to 2000 or 3000mcd. Thanks
Thank you for your response! I am myself also preparing for the new version of my old exposure box made from old scanner, with uv fluo lamps, working with no problem 8-10mils, hardly 7mil. Now I dismantled that construction because I think this can be lowered to say 7mils standard. I want to make it also with different light source ie LEDs.
That specific task of higher quality of production cannot be done easily IMHO only by experimenting, but it has to be supported with practical mathematics/physics. I am in the middle of calculations and believe that something will come up from those.
I have a suggestion: before you decide to fix the distance between LEDs or to fix the distance between the LEDs and PCB, just drop me a note, maybe at that time I shell come up with some special values to suggest them for your (and mine) construction. Of course you can always do it "by hand" but it is easy to check one or two setups before you fix the box permanently. Anyway, keep the good work and go on!
Slavisa
@slavne Hello! I develop quite often 16mil for the QFN PICs like this one:
http://www.pcbheaven.com/projectpages/Tripple_PID_Temperature_Controller/?p=2
The exposure time is typically 9 minutes (540 sec). This is why i prepare a better version with a total of 12W LEDs per side.
At 12 January 2014, 17:50:26 user slavne wrote: [reply @ slavne]
Hi Giorgos
All well in the New year to you and your folks!
Very nice project indeed. Can you tell me please:
1) what smallest copper line did you make (20mil, 15mil, 10mil,...) with no problems 100%?
2) what is the usual exposure time of pcb?
Again all congratulations to the idea, especially plexiglass diffuser!
thank you for your answer.
Where can i find the file "BCDTODECIMAL_3DIGITS.INC" ?
The file "pcbphototransferuvbox_1286698420_UVBox_ASM_V1_0.zip" in here don't contain that file.
@Fernando Oliveira There has to be command "include" before these files. It is "#include BCDTODECIMAL_3DIGITS.INC". Make sure that the file "BCDTODECIMAL_3DIGITS.INC" is in the same directory awith your project
Thank you for sharing your knowledge.
I am now starting to work with Microchip PIC's. I follow your tutorials and did almost all your examples.
I'm implementing a timer to my Insoladora Leds UV's and i follow your project.
I had some problems when trying to compile the project but have managed to solve, just missing the following:
Error [113] C: TMP UVBOX DUALPWMTEST.ASM 1104: Symbol not previously defined (BIN8TODECIMAL)
Error [105] C: TMP UVBOX DUALPWMTEST.ASM 1390: Can not open file (Include File "BCDTODECIMAL_3DIGITS.INC" not found)
Therefore I am noticing missing file "BCDTODECIMAL_3DIGITS.INC" in the project.
Can you help?
@Manolis first, do not install the project into a directory which has your user name. Instead go to d:/root or c:/root.
Then, deactivate the case sensitive option
http://www.pcbheaven.com/picpages/MPLAB-Starting_a_new_project/ [step 10]
and then make sure that all inclusion have at least one space before them! They must not start in col 1...
@Giorgos Lazaridis Hello again George. Well, I did change the setting you mention before I build the .asm file the first time.
The very first error I get is about a missing .inc file and I think it has to do something with all the others, as you can see in the txt file I posted. Here's the exact error:
C:DOCUMENTS AND SETTINGSUSERDESKTOPNEW FOLDERNEW FOLDERDUALPWMTEST.ASM 97 : Cannot open file (Include File "MYINITILIZATION.INC" not found)
And then I get a lot of "Symbol not previously defined (ZERO)" and "Missing argument(s)" errors which I believe have something to do with the missing .inc file.
Towards the end of the build log I get another "Include file not found" error, the file being: "BCDTODECIMAL_3DIGITS.INC" this time.
I am really sorry to bother you again but we are very close to completing the project and we seem stuck at this point where the timer and the power meter don't work like they're supposed to.
We also tried flashing the PIC with the latest .hex you posted but still no luck!
So, I really don't know what would be a way to fix this. Maybe send us the missing include files and try building the initial .asm file again? I suppose the best solution would be to send us the final .hex after you read it from the completed UV box. This would be the "ultimate criterion" for our circuit as well since if it still doesn't work, then there will be something wrong in the hardware and not the software.
I understand that opening the box and reading the .hex might be too much trouble but if you find the time to do it, we would certainly appreciate it! Of course any other workaround you suggest is more than welcome!
@Giorgos Lazaridis Hello again George and thank you for your response!
Well I tried following the procedure according to the link you posted but I seem to be getting too many errors and some missing .inc files.
Here's a link of the output I get when I try to build the project:
http://www.mediafire.com/?rj27lowvy3dv4ha
(if you can't see the link, please tell me)
Would it be too much of a trouble for you to post the FINAL firmware version? I mean the one you used in the video presentation? Either in assembly or (preferably, to be honest) as a .hex file?
@Manolis hmmmm that is so strange indeed. Is it possible that you download the code instead and recompile it? Maybe the hex is corrupted or something.
Download MPLAB and follow the instructions here:
http://www.pcbheaven.com/picpages/MPLAB-Environment/
After all those months, our build is almost over but we seem to be facing a problem with the values for the timer and the power.
From the video presentation, I can see that you have no problem going up to 999 seconds (ok. 995 to be precise!) and the power stops (I assume) at 100%. In our design though, the timer stops at a value of 500 and the power is able to go OVER 100% which is quite unreasonable.
So is it possible that you could give us any hints as to why this happens? Could it be a hex thing or something else? We are using the hex provided here of course and so far we haven't modified it at all!
Thank you!
Manolis
At 16 December 2012, 20:50:10 user Peter wrote: [reply @ Peter]
@stefano
I used a self adhesive foil diffuser used to create a frost effect on glass or by people that make back illuminated signs and logos.
It is not expensive and you can find it easily.
like George said, after you determine the led to led distance based on the
led's angle of illumination you can place two accordingly spaced leds on a cardboard and use a piece of difuser on glass or acrylic to experiment with the led-diffuser and diffuser -PCB(use a white paper) distance.
Try to find the shortest possible leds to pcb distance (greater ligth intensity) that at the same time allows for the ligth from the two leds to blend uniformly.
@stefano
1. Sure it is relevant. First of all the exposure time has to do with the intensity. Also, the spacing of the LEDs has to do with the angle of the LED beam. BTW: Cheap LEDs mean cheap results...
2. Yeah, trial and error is the way. Too close and the diffuser does not work very well, too far, and the light intensity is decreased.
Hi, congratulations again from the great project, one of the more well-made and studied, IMHO.
I'm looking forward realizing it, and the shadow-spots thing did really worry me, but it sure did relax myself seeing that someone thought at it as well.. most of the UV LED exposure box out there don't even bother about it.
However, I've got a couple (maybe many more) questions that I would ask you, eveyone who has made this project and encountered good results and problems.
1. is the type of LED really relevant?
As far as I can see, the problem of the radiant angle can be corrected making some calculations and finding the right distance between LEDs and PCB; instead, how much does the intensity of LEDs (mcd) affect the design? only in the exposure time?
There are really many kinds of UV LEDs out there, from cheap ones (ca. 6 dollars x100 or less) to much more expensive ones.. knowing that i can make a good design even with cheaper ones would be a great news!
2. how do you calculate the distance between the LEDs and the diffuser? I understood how to get the LEDs-PCB distance, but how do we manage distances using a diffuser? Only via try and repeat?
3. @Peter : which kind of diffuser paper did you use, and which one would you suggest?
3-a. Instead of using the diffuser paper (maybe it's quite expensive), a DIY frosted acrylic transparent glass would do as well?
Many thanks to everyone who takes some time to answer this long questions.
Stefano
At 4 November 2012, 17:41:07 user Peter wrote: [reply @ Peter]
@George
I have used the light diffusing film and i found it works just fine.
I used one uv led a small piece of diffusing film on a glass and a piece of white paper as a screen to determine the correct led to film and film to pcb distances.
regards
Peter
At 12 October 2012, 21:11:19 user Sergey wrote: [reply @ Sergey]
Put that firmware on the video!
and change the time so not counted in seconds and in minutes!
At 20 September 2012, 7:30:49 user George wrote: [reply @ George]
I saw this light diffusing film, and remembered Georgios' efforts with sand blasting acrylic, so for anyone making this project, this film may be worth a look. I haven't used it myself, but will place a link here, if anyone uses it or has any experience with it, please post a comment.
Hello Giorgos, greeting from Italy.My compliment for the well done project. I'm starting with Pic/Avr electronic project my self and I will like to build your UV Box and Timer. Where I'm not proficient is the Pic programming, will you tell me please the fuse setting (if any) because I will program the Pic after the board is assembled.
@Manolis hmmmm prices have gone really high... yes this is the one i talk about, this is the one i use by the way. and i bought it from the same store for some $24, pike had bought this before me even cheaper... Strange.
By the way, when you say about $20 dollar, I guess you're talking about a Pickit3 clone, right? Not the original one which costs about $45 if I'm not mistaken.
The cheapest (clone) I could find is the one below:
Greetings from Greece and thank you for sharing such a great project!
My question has to do with the PIC programmer. Could you please tell me which one you used? I'm a little familiar with AVRs and recently I began to work with ARM but have never used a PIC before. So I'm looking for a relatively cheap programmer to experiment with (DIY solution included).
Would a PICKIT 2 clone (found on ebay) or something like this:
@miniyo69 @miniyo69 if you are using the same encoder with me, then the 3 pins that are on the same side are used for the rotation. the middle one goes to the pin 36, and the other 2 to pins 37 38.
On the other side, the 2 pins are for the button action.
Was so impressed I\'m going to make one for myself.
Have already ordered the UV Leds, if it\'s not to much to ask, could you post the eagle files as well, it will save a lot of work.
Hi, I too am excited about this project and was wondering if you uploaded the bill of materials yet. I am mostly interested in where to buy the UV LED's, diffuser sheet, acrylic glass, and photo-sensetive PCB.
Your site has helped me so much. Thank you for sharing these projects to everyone and in such great detail.
@seb no you are not. there isn't any. i will upload one within the next few days (and the eagle files because you cannot make this through the schematic).
At 22 April 2011, 4:33:51 user seb wrote: [reply @ seb]
I don't know if I'm blind but I'm unable to find
the bill of materials and PCBs.
Regards
Lyncos, the LEDs emit 25 degrees angle, half the angle is 12.5 degrees. If d=the distance of the LED, then the radius (NOT diameter) of the circle that will appear on that distance is:
r = d x TAN[12.5]
The diameter is 2xr. So, in your case that the distance is 30cm, the circle radius that will be created is:
r = 30 x 0.221 = 6.6cm.
The diameter is 13.3 cm. I tested this calculation and is precise, as long as the LED emit 25 degrees ray.
At 23 January 2010, 19:50:45 user Lyncos wrote: [reply @ Lyncos]
Thanks for the answer. I made my first run yesterday and everything went fine the first time... I have 30 leds as described before with a spacing of about 14 mm at about 30cm high. 5 Minutes later I got a perfect print on my circruit board... It took me 1 month to not even figure out the toner transfer method (never worked for me) .. I will ALWAYS use the photo resist method ... Now I'm waiting for 2 packs of 100x 7000 mcd leds to make bigger circuits.
Now it's a temporary installation but I'm planning doing a box for it, I would like to lower the height of the installation cause for 2 side circuits it will take too much space... I think I can go half of the height...
Also I would like to know the formula you used to find out the best spacing/ heigt of the led.. I have a good Idea with triangles formula but would like to know how you done it
I started a similar project... what kind of led are you using ? I have 400-405nm, 2000mcd, 5mm leds you think it will works ? I\'m planing doing it with 30 leds 5x6 and about .5 inch spacing.. I will do very small PCB with this first version... I\'m waiting for 200 390-395nm leds for my larger version
I am convinced that it will work. The diffusion filter works perfect! This is just a prototype for try-and-error. If it does work, i will make a better one
At 7 November 2009, 14:31:32 user choco wrote: [reply @ choco]
Looks good. I just want to see the results in the pcb with the leds.