Build your Own PCB Exposure Box with Fluorescent Lamps and Countdown System
- Theodosiou Antonios
- 19.206 Views
Tired of spending hours and hours in wire soldering? Do your circuits look ugly and you are looking for a way to produce professional-like PCBs? Then you had better try photoetching. And the first step to do that is to have the right equipment that is an Automated Exposure Box. Moreover if you like tinkering with microcontrollers, here is the challenge and it’s high time you launched the design of your own PCB Exposure Box.
In the following lines I describe the procedure I followed to build the Box, the Lamp System and the Countdown System which is based on the AVR mega8 microcontroller.
Four blacklight lamps, 15W each, emit radiation at the region of UVA, with a peak around 350nm where the thin surface above the copper of the photosensitive board, is… sensitive. The lamps are taken by two and are connected in series thus shaping two similar modules. Each module has its own ballast and can be connected to 220V AC via a relay.
A microcontroller counts a user defined countdown and upon reaching zero activates a relay. The time remaining is displayed on four 7-segment led displays. The maximum countdown is 99 minutes and 59 secs.
The desired countdown is entered using only two buttons, SET and START/STOP. Short term push of the SET button will increase the current digit while prolonged push will change the digit from secondss to decades of seconds, to minutes and so on. Pushing once the START/STOP button, will make the MCU accept the desired countdown. Pushing the START/STOP button one more time, will start the countdown and connect the lamp system to 220V AC, via the relay. If START/STOP button is pushed again before countdown reaches zero, the lamp system will be deactivated. When the countdown reaches zero the lamp system is deactivated and a 3 seconds beep is sounded. The timer remembers the last used countdown and uses it as default every time the system is switched on.
All things above are housed in a wooden box. You can design the box by yourself however I had it done by a technician.
There are 3 distinctive parts that constitute your PCB Exposure Box; the Box the Lamp System and the Counter System along with the display.
You are gonna need a wooden box with dimensions aproximately 50x30x60 cm3. The box must have an extra room for hosting the countdown board and the two ballasts. The height of that room, that is the distance between the bottom of the box and the shelf, can be 5-8 cm. On the one side of the shelf will be installed the four starter bases and on the other side the four lamps along with their G13 bases.
Here is a very detailed description on how to build your own box, upon which I relied to decide the dimensions of my box. However the final design I used is the same as Papanikolaou’s box in his Darkroom Timer project. Many thanks to both of them!
The Lamp System
For the lamp system you will need:
- 4 x 15W Black Light UVA fluorescent lamps with a peak of radiation at ~350nm. Those lamps are suitable for photochemical procedures and can usually be used in insect killing. Examples are F15W/T8/BL from Syllvania and Actinic BL from Phillips
(approx. cost 10/lamp)
- 2 x 40W Ballast. This is the common ballasts used in fluorescent lamps (approx. cost 2/ballast)
- 4 x Starters that can support 15W lamps
(ex 22W starters approx. cost 0.5/starter)
- 4 x Starter bases
(approx. cost < 0.2/base)
- 8 x Bases for the lamps with holes so they can be screwed on the wood (approx. cost 0.6/base)
- Wire. Prefer flexible wire which is commonly used in fluorescent lamps.
- 20 x Screws. Use the size you thing that best fits.
The connections you have to make for the lamps are as in the next image.
This is a very popular connection for two low wattage fluorescent lamps connected in series.
There are two identical modules connected in parallel. In each module, initially, the AC current flows through the two starters and the ballast. After a while, one of the starters goes open-circuited and the current in the circuit is halted. This brings the ballast inductor in an extremely uncomfortable situation and it reacts violently developing a great voltage across its terminals. The value of the voltage can be as large as some kV and that is exactly what the fluorescent lamps need in order to be turned on. After that transition effect, the voltage across each lamp gets stabilized around the 50~60V which is the lamps operation voltage shown in the manuals.
As for the construction details, I put the lamps and the starters on the two sides of the wooden shelf and the two ballasts on the bottom of the box.
So, as far as the shelf is concerned. First, I screwed the starters’ bases on the I made the following connections one side of the shelf
Second, on the other side of the shelf, I screwed the eight G13 lamp holders, having first, drilled the holes needed by the wires to join the lamp bases with the starter bases
also don’t forget to screw some shelve holders so that you can put and get out the shelf from the box, next do the wire connections
and finish the shelf by populating it with the starters and the lamps
The finished lamp system looks like
The Countdown Timer
This is the most amusing part of the story. Here you have to deal with Software and Hardware.
>As for the Software part I wrote the code in C using the winAVR and avr-gcc plugin along with avrStudio. Using ProteusVSM I tested the code in a simulation environment which saved me a lot of effort and time. Then I downloaded the hex code to the chip with the STK500. I strongly recommend that you try and write the code by yourself so I don’t attach any code here except for the downloadable hex. If you need any help about the code, please mail me at aetheod @ hotmail.com
As for the hardware, there has been a lot talk about how to do it. The Darkroom Timer of Vassilis Papanikolaou contains quite apprehensive schematics plus PCBs. My schematic contains all the variations required for the substitution of the PIC with the AVR mega8. In addition I use only two buttons and I put the regulators in parallel instead of in series.
The schematic of the main unit which contains the microcontroller and the power supply is the following:
QTY PART-REFS VALUE
— ——— —–
10 R1 – R10 220R
1 R11 470R
1 R12 4K7
2 C1,C2 1uF
1 C3 1000u
2 C4,C5 100n
1 U1 CD4511 BCD to 7segm. Com. Cath. Decoder
1 U2 ATMEGA8 AVR 8bit RISC microcontroller
1 U3 OPTOCOUPLER-NPN
1 U4 7812 12V Regulator
1 U5 7805 5V Regulator
6 Q1-Q5,Q7 BC328 pnp 800mA transistor
1 Q6 2N2222A npn 800mA transistor
1 D4 1N4001
1 BR1 Any diode bridge > 1A
1 FU1 1A fuse
1 J1 AC OUT socket
1 J2 CONN-DIL14 14 pin header for the connection with the
1 J3 BUZZER
1 J4 SET button
1 J5 START/STOP button
1 J6 POWER LED
1 J7 AC IN socket
1 RL1 12V relay
1 TR1 220V/14V 1VA transformer (from an old Radio)
LED BOARD SCHEMATIC
QTY PART-REFS VALUE
— ——— —–
2 D1,D2 LED-GREEN
1 J1 CONN-DIL14 for the connection with the main unit
4 LED0-LED3 Common Cathode 7segment displays
I tested the schematic virtually and in real-time. And by “virtually” I mean I used an Electronics Systems Simulation Software like Proteus VSM… and like nothing else (…coz as far as I know there is no competitor so far!). I am not doing any advertisement but Proteus VSM is amazing and for those who haven’t heard about it yet, I recommend that they try, at least, a demo version from www.labcenter.co.uk
Only after Proteus said I was right, did I try the circuit in a breadboard and that fact saved me a lot of time, especially in the code development and debugging. So saying “I tested the circuit in real time” I mean I put every component on the breadboard and there I fixed any problems that Proteus didn’t find.
In breadboard.flv video, there is a demonstration of the Countdown Timer working while being tested on the breadboard
So, after ensuring everything was right it was time to design my last wire-soldered circuit!
I started from the led board
and the corresponding main unit
Connecting the modules together
desk_lights_off.flv is a video showing the Countdown Module in action turning off the light of my desk after 10 secs
Putting all together…
So far so good! Everything works fine and it is time to enclose the Lamp System and the Countdown System in the Box. A general diagram helps to identify the place of each module.
first a socket at the back of the box is installed, next the ballasts, the main board, the led board and the switches
PCB Exposure Box is ready, and after the shelf is set
in demo.flv video you can see the PCB Exposure Box working.
As you noticed I put the camera recording and runaway(!), since UVA radiation is harmful and hazardous. Never do you look straight on the lamps.
Well this is all about it! I hope this guide will give you the motivation to build your own PCB Exposure Box or at least to make you play with those little gems; the microcontrollers. To tell the truth I was motivated by similar guides and I am realy grateful to those who published them, sharing their experience with me and with the rest of “electromaniacs” around the world.
For any help, questions misunderstandings please mail me at aetheod @ hotmail.com
Special thanks to Vassilis Papanikolaou, Peter Makris and all the people of www.electronics-lab.com
The next step…
So if you succeeded upon building your own PCB Exposure Box you are ready now to make use of your device and print your first photoetched PCB. Here, is an excellent guide about photoetching from Peter Makris. Take a look…
$18 Welcome Bonus for new registrations Now https://jlcpcb.com