CC-BY-SA 3.0

Recommend Projects

ATtiny13 Soldering Station SMD

1 year ago 2864
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments



TinySolder is a simple T12 Quick Heating Soldering Station based on the ATtiny13A featuring in 700 bytes of code:

  • Temperature measurement of the tip
  • Direct control of the heater
  • Temperature control via potentiometer
  • Handle movement detection (by checking ball switch)
  • Time driven sleep/power off mode if iron is unused (movement detection)



Heater Control

To switch the heater on and off, it is controlled via an AO4435 p-channel MOSFET. The MOSFET is designed for voltages up to 30V and currents up to 10A. Its resistance is relatively low at 14 milliohms, which guarantees high efficiency and low heat generation on the MOSFET itself. There are many 4435 MOSFETs available from different manufacturers with slightly different specifications. It should be ensured that a 4435 with a gate-source voltage of +/-25V is selected.

Temperature Measurement

A thermocouple (temperature sensor) is located inside the T12 soldering tip. It creates a very small voltage depending on the temperature difference between the hot end and the cold junction. To measure this, the heater must be switched off since heater and thermocouple are connected in series. The low voltage is amplified by the OpAmp and measured by the ADC of the microcontroller. The gain factor of the OpAmp is controlled via the calibration potentiometer within fixed limits. The LMV358 is a very cheap and versatile OpAmp, but not the ideal choice for this task because it has a fairly high input offset voltage and is quite noisy. For this kind of soldering station, however, it delivers completely sufficient values. Should a higher accuracy be required, an OPA2330AIDR or OPA2333AIDR can be used instead of the LMV358. Since these OpAmps have the same pinout, no further changes need to be made.

Voltage Regulator

Since the ATtiny13A and the OpAmp only consume very little power, a small voltage regulator of the type 78L05 is completely sufficient for obtaining the 5V supply voltage. Because of the low current it has to deliver, it hardly heats up despite the relatively high voltage gradient.




In order to determine the temperature of the soldering tip, the heater must first be switched off. The output voltage of the OpAmp is then measured using the analog-to-digital converter (ADC) and the temperature is determined from this using a two-step linear approximation. The setting of the temperature selection potentiometer is also determined via the ADC. If the temperature of the soldering tip is below the selected setpoint, the heater is then switched on again via the MOSFET, otherwise it remains off for the time being.

A sleep timer runs all the time, which is reset by a pin change interrupt as soon as the tilt switch in the handle of the soldering iron changes its state. If the handle is not moved for about 5 minutes, the system switches to sleep mode, in which the temperature is reduced to about 125°C. If the handle is not moved for another 5 minutes, the heater will be switched off completely. As soon as the handle is moved, the operating mode is switched back to.

The main loop of the code is shown below:

// main loop
while(1) {
  // calculate setpoint according to potentiometer setting
  poti = denoiseAnalog (POTI);                  // read potentiometer
  if (poti < 512) setpoint = (uint32_t) poti        * (TEMP300 - TEMP150) / 512 + TEMP150;
  else            setpoint = (uint32_t)(poti - 512) * (TEMP450 - TEMP300) / 511 + TEMP300;

  // set heater according to temperature reading and setpoint
  PORTB &= ~(1<<HEATER);                        // shut off heater
  _delay_us(TIME2SETTLE);                       // wait for voltages to settle
  temp = denoiseAnalog (TEMP);                  // read temperature
  smooth = (smooth * 7 + temp) / 8;             // smooth temp readings
  if (smooth < setpoint) PORTB |= (1<<HEATER);  // turn on heater if below setpoint

  // set status LED according to temperature and setpoint
  PORTB &= ~(1<<LED);
  if ((smooth + 10 > setpoint) && (setpoint + 10 > smooth)) PORTB |= (1<<LED);

  // some timing
  if (handleTimer++ > TIME2SLEEP) sleep();      // sleep mode if handle unused
  _delay_ms(CYCLETIME);                         // wait for next cycle

Compiling and Uploading

If using the Arduino IDE

  • Make sure you have installed MicroCore.
  • Go to Tools -> Board -> MicroCore and select ATtiny13.
  • Go to Tools and choose the following board options:
    • Clock: 9.6 MHz internal osc.
    • BOD: BOD 2.7V
    • Timing: Micros disabled
  • Connect your programmer to your PC and to the ICSP header on the TinySolder board.
  • Go to Tools -> Programmer and select your ISP programmer (e.g. USBasp).
  • Go to Tools -> Burn Bootloader to burn the fuses.
  • Open SolderingStation_Tiny13_v1.0.ino and click Upload.

If using the precompiled hex-file

  • Make sure you have installed avrdude.
  • Connect your programmer to your PC and to the ICSP header on the TinySolder board.
  • Open a terminal.
  • Navigate to the folder with the hex-file.
  • Execute the following command (if necessary replace "usbasp" with the programmer you use):
    avrdude -c usbasp -p t13 -U lfuse:w:0x7a:m -U hfuse:w:0xff:m -U flash:w:SolderingStation_Tiny13_v1.0.hex

If using the makefile (Linux/Mac)

  • Make sure you have installed avr-gcc toolchain and avrdude.
  • Connect your programmer to your PC and to the ICSP header on the TinySolder board.
  • Open the makefile and change the programmer if you are not using usbasp.
  • Open a terminal.
  • Navigate to the folder with the makefile and main.c.
  • Run "make install" to compile, burn the fuses and upload the firmware.

Building Instructions

In addition to the components for the PCB you will need the following:

  • 3D-printed case
  • GX12 Aviator Plug (4- or 5-pin depending on your iron handle)
  • DC Power Jack (5.5 * 2.1 mm)
  • Rocker Switch (KCD1 15 * 10 mm)
  • Some wires
  • 4 Self-tapping screws (2.3 * 5 mm)


Make sure that all parts fit nicely into the case. Solder the wires to the connectors and protect them with heat shrinks. Use thick wires (AWG18) for the power connections. Make all connections according to the schematic down below. Solder the wires directly to the corresponding pads on the pcb. To make the soldering station ESD-safe, connect the earth (E) terminal of the aviator plug to a female dupont connector and glue it into the corresponding opening on the case. Now you can connect the soldering station via a male dupont connector to an earth terminal. Upload the firmware and screw the pcb on top of the case.


Operating Instructions

Power Supply Specification Requirements

Choose a power supply with an output voltage between 16V and 24V which can provide an output current according to the table below. The power supply must be well stabilized. The current and power is determined by the resistance (R = 8 Ohm) of the heater.

Voltage (U) Current (I) = U / R Power (P) = U² / R
16 V 2.00 A 32 W
17 V 2.13 A 36 W
18 V 2.25 A 41 W
19 V 2.38 A 45 W
20 V 2.50 A 50 W
21 V 2.63 A 55 W
22 V 2.75 A 61 W
23 V 2.88 A 66 W
24 V 3.00 A 72 W


For calibration you need a soldering iron tips thermometer. For best results wait at least three minutes after switching on the soldering station before you start the calibration. Calibrate at your prefered temperature using the trimpot.

Indicator LEDs

LED Color Status
POWER blue lights up when the station is receiving power
HEAT red tip temperature has not reached setpoint yet
WORKY green tip temperature is at setpoint - iron is worky
HEAT + WORKY red + green blinking: iron is in sleep mode; steady: iron is in off mode; move handle to wake up

References, Links and Notes

  1. ATtiny13A Datasheet
  2. LMV358 Datasheet
  3. T12 Handles on Aliexpress
  4. T12 Soldering Tips on Aliexpress
  5. GX12 Aviator Plugs on Aliexpress
  6. T12 Soldering Station based on ATmega328P



This work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License. (


ATtiny13 Soldering Station



ID Name Designator Footprint Quantity
1 LMV358IDR U3 SOP-8_150MIL 1
2 MMBT3904 Q2 SOT-23_1 1
3 5V1 D1 ZENER-SOD-123 1
4 10k R7,R6,R5,R1,R14,R8 0603 6
5 1k R13,R11,R4,R12,R9 0603 5
6 100k R3 0603 1
7 WORKY LED2 LED-0603 1
8 HEAT LED3 LED-0603 1
9 10K R10 RES-TH_RK09K1130A5R 1
10 78L05 U2 SOT-89-3_L4.5-W2.5-P1.50-LS4.2-BR 1
11 KF350-3.5mm P2,P1,P3 KF350-2P 3
12 ICSP-6 ICSP1 ICSP-6 1
13 AO4435 Q1 SOP-8_150MIL 1
14 POWER LED1 LED-0603 1
15 100n C5,C1,C4,C7 0603 4
16 2n2 C3 0603 1
17 47u C2 1206 1
18 1u C6 0603 1
19 100k R2 RM065 1
20 ATTINY13A-SSU U1 SOP-8_150MIL 1


Filename Download
The owner does not allow comments in this project now

Comments (6)

kozetot Reply

Nice little board and project. Is there a way to shrink the overall size a couple of mm so it can be panelized as 3x3 to fit in the 100x100 mm outline?

Stefan Wagner Reply

@kozetot Hi & thank you. How many soldering station do you want to build ? The board is quite compact already, but I think it's possible. However, I can see no real advantage in a smaller board (except building hundreds of them;-) The effort it takes to redesign the board is better invested in new projects, I think. But of course you are free to shrink it by yourself !

kozetot Reply

@wagiminator Thank you for getting back! I managed to fi it without shrinking the size, just had to play a bit with the v-cut offset and all is OK. I want to build just a couple, but the reason to fit 9 in one 100x100 mm pcb is just to imagine the 20 USD shipping was "more" worth it. :D

Stefan Wagner Reply

@kozetot Ah, I understand ;-) I wish you every success in building all of these stations and I look forward to hearing about the result!

Кубик «Iqubik» RU Reply

I build it, but its not work. Attiny is generated impulses but not find temp :(

Stefan Wagner Reply

@Кубик «Iqubik» RU  Hi, I need some more information in order to help you. Does the iron heat up? If so, to what temperature? What about the LEDs? What kind of power supply do you use? Have you set the correct fuses for the attiny?

svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow