diy soldering station 1

8
http://www.instructables.com/id/DIY-Soldering-Station-1/ technology workshop craft home food play outside costumes DIY Soldering Station by silentbogo on May 19, 2015 Table of Contents DIY Soldering Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intro: DIY Soldering Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Step 1: Parts list: evaluating the financial damage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 PARTS LIST: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Step 2: DAY 1 - Planning and Circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Step 3: DAY 2 - Handiwork and preparations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Step 4: STILL DAY 2 - making a PCB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Step 5: DAY 3 - Finishing assembly and starting to work on code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Step 6: DAY 4-13 and counting - FIRMWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Upload: florian-ciobanu

Post on 11-Jan-2016

28 views

Category:

Documents


2 download

DESCRIPTION

atmega8

TRANSCRIPT

Page 1: DIY Soldering Station 1

http://www.instructables.com/id/DIY-Soldering-Station-1/

technology      workshop      craft      home      food      play      outside      costumes     

DIY Soldering Stationby silentbogo on May 19, 2015

Table of Contents

DIY Soldering Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro:   DIY Soldering Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1:   Parts list: evaluating the financial damage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

PARTS LIST: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2:   DAY 1 - Planning and Circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3:   DAY 2 - Handiwork and preparations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 4:   STILL DAY 2 - making a PCB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Step 5:   DAY 3 - Finishing assembly and starting to work on code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 6:   DAY 4-13 and counting - FIRMWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Page 2: DIY Soldering Station 1

http://www.instructables.com/id/DIY-Soldering-Station-1/

Intro:  DIY Soldering StationHello again!

This project was on my mind for over a year now.

After torturing myself with hundreds of work hours with generic no-name 40W soldering iron I've finally decided to make my own professional soldering tool. There aremany cheap alternatives on the market, like AIOU / YOUYUE / [other unpronounceable brands] soldering stations and combo rework stations, but they all have somemajor flaws or questionable design choices, which we'll talk about later. If you want it done right - do it yourself!

WARNING: This is not gonna be one of those fancy DIY stations with AMOLED display, touch panel, 50 programmable modes, running FreeBSD with WiFi and bluetoothconnectivity; all I'm trying to make is a simple tool that does one thing : solder stuff!

The only few exceptions I want to make are the following:

Idle mode (keep 100-150°C when on stand)1.OFF timer, so I won't accidentally burn the house2.UART for debugging (just for this build)3.Extra PCB connectors for secondary iron or hot air wand4.

Interface is going to be simple: I want to use a couple of buttons, rotary encoder and a 16x2 LCD display(HD44780).

As it happens with most of my projects I will try to keep the cost to a bare minimum and scavenge as many parts for this creation as I can.

SO WHY MAKE YOUR OWN?

The reason why cheap aftermarket soldering stations suck is that you never know what you are getting, unless you can do a full test drive, disassemble to evaluate partsand assembly quality and most importantly, check with other owners of this exact model for feedback on quality and reliability: same company keeps popping the exactsame product under different name/brand every couple of years just to confuse buyers.

As an example : about 2 years ago I bought a rework station online, and while I was(and still am) very happy with it's performance, I got very tired of a dumb designchoices, like making power cord and compressor-less rework wand non-detachable and extremely short. These issues make it very uncomfortable to use (even move iton the table): station keeps flipping over as you move the wand around :( The insides were flooded with hot melt glue, so it took me a week to clean it and fix all criticaland noncritical issues. Cabling for rework handle was poorly attached, so the insulation constantly slips off, creating potential wire breaks and fire hazard.

Step 1: Parts list: evaluating the financial damagePARTS LIST:

24V 50-60VA transformer. I've got a transformer with a secondary 9V line, which should work perfectly, because 24V will provide power for the iron, while 9V isgoing to be dropped to 5V for logic components.Alternatively you can use a 5V AC-DC buck converter for logic($1.50-$2.00) and only implement a 24V supply for the iron.A brand new transformer costs around $7.00-8.00 on eBayATMega8 (from a failed project) $1.10 newEnclosure box.Any reasonably-sized sturdy box (preferably metal) will work. You can even use that broken PSU's case.With an extra $15.00 in your pocket you can get a cool-looking aluminium enclosure like this one:http://www.ebay.com/itm/Silver-Aluminum-Project-Bo...Two-sided copper clad boardRetails at $1.50 per single 100x150mm sheetRotary encoder from an old cassette stereo. Works flawlessly, but a rotary cap needs to be replaced.New ones go for $1.50 without cap16x2 LCD HD44780 display.Retail: $2.00Various passive components (caps, resistors etc.) I'll average out the sum to $5.00 just in case.LM7805 or equivalent voltage regulator. Found on eBay: 5pc for a buckNot overly large TO-220 radiator $1.00-$1.50HAKKO 907 replacement iron $5.00 - $6.00Mine is definitely a clone, yet they've managed to get all specs and spacing for ceramic heater just rightIRF540N mosfet from my improvised LED driver. Just in case need to buy one more ~$1.00LM358N op-amp $0.45Rectifier bridge $0.25 x 25 pin socket and plug. I got this one a long time ago for $3.00. Now you can buy those cheaper in 5pc. bundleshttp://www.dx.com/p/diy-16mm-5-pin-gx16-aviation-p...Looks awesome comparing to stock 5-pin connector and will definitely last longer

Page 3: DIY Soldering Station 1

http://www.instructables.com/id/DIY-Soldering-Station-1/

Original socket costs a lot less and is almost identical to an old cassette stereo connector I've just destroyed.

Power switch $0.50-$1.00

AC plug of your choice. I'm using a socket from an old PC power supply $1.00

5A fuse and fuse holder $2.00http://www.ebay.com/itm/Fuse-Holder-Panel-Mount-fo...http://www.ebay.com/itm/FF-F5A-15pcs-5A-250V-5x20m...

TOTAL BUDGET: anywhere from $35.00 to $50.00 (depending on what you already have and whether you want it look cool)

TIME TO COMPLETE: 4-5 days

P.S. Just to make it easier for you to look for parts: absolutely everything on this list can be purchased on eBay from both Chinese and US retailers.

Step 2: DAY 1 - Planning and CircuitryCHECKING PARTS

This is a very important step, so please read this section carefully.

First of all, there are many clones of HAKKO 907 handles and there are at least two variations of the original HAKKO irons (with A1321 and A1322 ceramic heater).

Cheap $2-3 clones are an early examples of non-genuine parts. They use a K-type thermocouple and very crappy ceramic heater (or simple nichrome coil).

More expensive $6.00-$7.00 clones are almost identical to original HAKKO 907. The only way you can distinguish clone from an original is by markings on the wireinsulation or possible absence of HAKKO brand and model number on ceramic heater itself. I was really lucky and got this one.

You can check whether your part is genuine by measuring the resistance between pins or heating element wiring:

ORIGINAL OR GOOD CLONE:

Heater: 3-4Ohm

Thermistor: 50-55Ohm at room temperature

Tip to ESD pin: < 2Ohm

EVIL CLONES:

Heater: 0-2Ohm for Nichrome heating, >10Ohm for crappy ceramic

Thermocouple: 0-1Ohm

Tip to ESD: < 2Ohm

NOTE: If your heating element resistance is very high, it is most likely damaged. You should ask for replacement(if possible), or purchase a new genuine A1321 ceramicheating element.

POWER

To make things a bit confusing I have drawn my transformer as two transformers. The circuitry itself is very easy and you should have no problems understanding it.

1) At the output of each secondary we will put a rectifier bridge. I bought a few small 1000V 2A bridges, which should be good enough. The transformer itself only outputs2A max on 24V line and the iron is rated at 50W, so our theoretical max power is going to be around 48W.

2) 24V DC output also has a smoothing 35V 2200uF capacitor. This might be an overkill, but in the future we will probably connect some more stuff to 24V line besidesceramic heater.

3) I've used an LM7805T voltage regulator with some capacitors to drop 9VDC to 5VDC to power up the control board with all logic components.

PWM CONTROL

The second schematic demonstrates how we are going to control our ceramic heater: we acquire the PWM signal from ATMega microcontroller and send it throughPC817 optocoupler to the gate of IRF540 mosfet.

Page 4: DIY Soldering Station 1

http://www.instructables.com/id/DIY-Soldering-Station-1/

Resistor values at this stage are purely theoretical approximations and may be adjusted in the final design.

Pins 1 and 2 correspond to ceramic heater wires.

Pins 4 and 5 (thermistor) wired to the output connector, which we will use as inputs of LM358 op-amp on our control board.

Pin 3 is an ESD connection from the soldering iron.

CONTROL BOARD

At the heart of my design is an ATMega8 microcontroller. This is actually the first time I work with something other than ATTiny13 or ATTiny2313.

This MCU gives us enough IO pins to avoid using shift registers for I/O and simplify our design.

Three OC pins will provide enough PWM channels for future upgrades (secondary iron for example), while tons of available ADC channels can provide additionaltemperature monitoring capabilities. As you've probably noticed, I've already added an extra PWM channel and an extra temperature sensor connectors for future add-ons.

At the top right corner we have our rotary encoder connections (A and B for direction, plus the push button).

LCD connector has been separated into 2 parts: 8-pin Supply and Data, 4-pin contrast/backlight control.

In addition to essential connectors I've added 4-pin UART for preliminary debugging (we'll only use RX,TX and GND pins).

ISP connector is not implemented. We will use a DIP-28 socket to connect our microcontroller and take it out for re-programming whenever we need.

R4 and R8 control the gain of corresponding amplifier circuits (x100 max gain).

Some things may change in the final design, but overall structure stays the same.

Image Notes1. It's easier to test resistances here

Page 5: DIY Soldering Station 1

http://www.instructables.com/id/DIY-Soldering-Station-1/

Image Notes1. Rotary encoder with button2. Temperature sensors3. LCD and UART4. Heater control

Step 3: DAY 2 - Handiwork and preparationsThe assembly process has proven to be a bit more complicated than I anticipated.

The project case I've been planning to use came out to be very small (or my parts too big), so I had to replace it with a spacier alternative: a $4.00prototyping/instrumental box. The downside is that my soldering station will be bigger. On the bright side, we have space to attach some trinkets and Christmas lights inthe future: LED lamp for comfortable soldering, secondary iron or reflow wand connector, smoke extractor etc.

Both PCBs were combined into a single 60x110mm unit (see next section).

PREPPING

For this project I'd like to start the process backwards. Instead of working on MCU code and fabricating circuits I want to start with preparing box and parts for assembly,because these aspects of our project won't change.

So, let's get it out of the way!

If you have successfully found a matching socket for your HAKKO iron, you can skip the next couple paragraphs.

First, I'd like to replace the original plug on my soldering iron with the new one. It is solid metal and has a holding nut, which means it will always stay in place and will lastforever. Just cut the old 5-pin connector and solder the new one on its place.

Drill a hole in the front plate of the box to insert a new socket. Check if socket fits OK and then leave it as is. We'll mount all of front panel components later.

Then, you solder 5 wires to the socket and assemble a 5-pin connector, which will go to the PCB (see picture above).

Next, you cut a hole for your LCD display, rotary encoder and 2 buttons. If you'd like to have a power switch on the front panel, you should make a spot for it too.

On the last picture you'll notice, that I have used a ribbon cable (from an old floppy drive) to connect LCD screen. This works best, so if you have some unused floppy orIDE cables laying around, I'd suggest you do the same.

The last thing is to mount 4-pin connector to your rotary encoder and if you are using any pushbuttons or tactile switches - connect them too.

Also it is wise to make 4 holes for small bolts at the corners of LCD panel area, because otherwise display won't stay in place.

Back panel only has the power connector and the switch.

Image Notes1. Prepping for new connector

Image Notes1. LCD connectors2. My fancy iron connector3. Matching socket with connector wires already soldered. Connector is not

Page 6: DIY Soldering Station 1

http://www.instructables.com/id/DIY-Soldering-Station-1/

attached because these pins need to be isolated with heatshrink.

Step 4: STILL DAY 2 - making a PCBWell, there is not much to it. You can either make your own PCB layout that fits your specs and space requirements, or use the ones I provide.

There is a ZIP archive with Eagle schematic+board layout (final version) and a separate PDF file only with top and bottom layers of PCB.

NOTE: My layout is somewhat lazy, so if you want to make a single-layer PCB instead you can either solder wire jumpers across that single 5V track or juggle aroundwith components and make it work with only the bottom layer. For easy assembly/disassembly I've made 100% through-hole design, but with SMD components and a bitof know-how you can make it about half that size.

On the last few photos the circuit is almost completely assembled and ready to go in the box.

Image Notes1. Negative photo mask for photoresist film

Image Notes1. This is my failed attempt at silkscreen...

Image Notes1. Don't forget the heatsink!

File Downloads

SID.zip (100 KB)

Page 7: DIY Soldering Station 1

http://www.instructables.com/id/DIY-Soldering-Station-1/

[NOTE: When saving, if you see .tmp as the file ext, rename it to 'SID.zip']

control_b.pdf (26 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'control_b.pdf']

control_smb.pdf (12 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'control_smb.pdf']

control_Smt.pdf (18 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'control_Smt.pdf']

control_t.pdf (26 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'control_t.pdf']

Step 5: DAY 3 - Finishing assembly and starting to work on codeIT'S ALIVE!

At this point you should definitely power up the whole contraption on and check voltages at all critical points (5VDC, 24VDC output etc.) Both LM7805, IRF540 and prettymuch all active and passive components should be cold at this point.

If everything is cool and your PCB hasn't burned, you can mount all components together. If you have previously finished the front panel with controls you'll only have tosolder transformer input wires, mains fuse, power plug and power switch.

Step 6: DAY 4-13 and counting - FIRMWAREFIRMWARE

[...COMING SOON...]

I wanted to finish this part last week, but got blasted with few important and lengthy projects at work. The raw and untested firmware I'm using right now is quite unstable,which is why I've decided to postpone its release until I make at least some kind of self-diagnostics and debugging subroutines. I don't want you to burn down your houseor workshop, so please wait until it is finished (won't be too long).

What I have in mind, is a basic PID control and few additional modes with fixed power output. If you are impatient and would like to start working on your own firmwarebefore I finish mine, here is some good reading materials:

1. Discrete PID Controller Application Note

2. AVR Freaks: PID Controller implementation thread

3. Wikipedia article on PID with pseudocode example

I'll try to finish the viable firmware as soon as possible, so stay tuned and please vote for me in the Soldering contest!

Related Instructables

DIY SolderingStation forHAKKO 907 byflv1991

Home MadeSolderingstation (video)by macobt

Lead-FreeSoldering with a2 in 1 Hot AirIron SolderStation by

Solderingstation made bymyself on thebasis ofArduino by

DIY AVRMicrocontrollerbasedTemperatureMonitoring and

How to Solder -Basic SolderingGuide bysoldering iron