This time I’m starting off with a device I already built, unfortunately there won’t be any photos from the actual build, just a quick article on how I imagined it and how it works.
A short story about how the whole thing started
My uncle has a nice little place at the countryside at about 50 kilometers away from where we live. Unfortunately there is no electricity in the house, so the lights, music, and anything else that’s electronic runs from a 12V car battery. The battery was charged before each trip with an old-school car battery charger, until the charger eventually broke. He brought it to me to get it repaired, but the two components it had inside both were dying so I decided to build him a new one. His birthday was coming, so I decided to make it as a present. I haven’t finished building it on time, but he was all-right with it!
Step 1: Parts list
Here’s a list of the thing you will need to make a copy:
- Enclosure – buy the one you like the most, or make your own
- Transformer – think of the charging current, then make your decision about the amps. I have this one.
- Panel meter – must be able to measure your transformers maximum current. I have this one.
- Banana-plugs and sockets – buy in bulk off ebay.
- 220V cable socket – I bought this one.
- Fuse holder – I bought this one, this is for the transformers secondary winding
- Button – a random button, I’ve had this for ages
- LED – buy in bulk off ebay, I used a green and a red one, both 3 mm
- PIC12F683 – ebay link, buy more of these, they’re very useful for small MCU projects
- 220ohm resistors – protection resistors for the LEDs
- 4K7 resistor – pull-up resistor for the button input
- 1K resistor – series protection resistor for the NPN transistors base pin
- Voltage divider resistors – any kind of resistors with 1:4 dividing ratio
- LM7805 – TO220 voltage regulator, buy in bulk off ebay
- PicKit2 or PicKit3 – build or buy, I used my home-made PicKit2 for the job
- Wire terminal block – I used this kind of connectors
- NPN transistor – a random BC transistor that is able to handle 30 mA
- Relay – general purpose small relay, able to handle the charging current
- Screws – 4 mm screws for the transformer
- Drills, saw, sand paper and other hand tools
- Computer to write the firmware on.
- Extension chord for mains
Step 2: The enclosure
First, you need to imagine what the charger should look like, and get an enclosure that can fit in all the stuff you want. At first, I ordered one I thought was good, but when I saw it with my own eyes, I almost had a heart attack. Luckily the seller had this black enclosure on stock, I bought it without further hesitation. You can see how the two enclosures look like on the photo.
When you have both the enclosure and the clue how you want it to look like, you can start fitting in the components. I used my Bionic hand drill to drill a contour of the shapes I wanted to cut out, and snapped out the pieces of plastic. A small saw and sand paper was used to give the holes and slots their final form. After I cut these slots, I snapped in the components that supposed to go on the front and the back panels. The arrangement of components in and on the enclosure:
- Front panel: panel amp-meter, banana sockets, two LEDs and a button
- Back panel: 220V entry plug with fuses, fuse holder (for the transformers secondary winding), radiator and a current regulator (I changed my mind about this later on, but the holes were already there..)
- Inside: transformer, prototype board, electronic circuitry
For more detail: PIC12F683 based battery charger