Skip to the content
2 layers55 × 53 mmHeatgun, the printed circuit board in 3D

A small hot air station for soldering, using type-858 heat gun as handle, STC8G1k17 as MCU, copper wire resistor for cold junction compensation

Size
55 × 53 mm
Copper layers
2
Thickness
1.6 mm
Parts
40
Nets
30
Pads
101
Tracks, vias
290, 0
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
9 Feb 2023
Updated
9 Feb 2023

Overview

Heatgun is an open-source printed circuit board by m24h, from the m24h/heatgun repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 55 × 53 mm with 40 parts on 30 nets, routed with 290 tracks and 0 vias.

It is built around the BTA12-600, LM321 and MOC3063, with the 2SK3065 and SS14 among its other parts. Its parts include 14 resistors, 12 connectors, 6 capacitors, 4 ICs and 2 diodes. It belongs with the 8051 (CH55x, STC, AT89) boards of this library.

Main components

5

README

README.md

heatgun

A small hot air station for soldering, using type-858 heat gun as handle, STC8G1k17 as MCU, copper wire resistor for cold junction compensation.

##Features:

  • Small, cheap, esay to make
  • With cold junction compensation
  • Software correction
  • Compatible with most type-858 handle
  • Settings can be remembered
  • PID temperature control

Burning/Downloading

This program is only for MCU STC8G1K17-16pin, compiled and linked by SDCC 4.2.0

It must be burned at following scheme:

  • Internal IRC Freq. : 22.1184MHz (as same as specified in def.h)
  • User EEPROM size : 2k (as same as specified in def.h)
  • Low-voltage reset : Enable
  • Reset pin used as I/O port : Yes
  • Hardware enable WDT : Disable (I will use software enable it)
  • Add a reset code in front of ID : Yes (it will adds Band-Gap voltage reference)
  • Erase all EEPROM data : Yes
  • Fill data to space area : 0XFF

About cold junction compensation for the thermocouple in the handle

I add a coper wire wound resistor (nearly 13.5 OHM) in the handle, in series with the thermocouple, for cold junction compensation at a suitable bias current. And my software will do some corrections/calculations for getting accurate temperature from the thermocouple.

But if the connector between your handle and main controller board is not in good contact, this will introduce jitter in the temperature values.

In this case, the coper wire resistor can be totally removed, and several components (R5,R13) on the PCB can also be removed, and several parameters inside the program can also be adjusted (set g_ana_pk=0 at main.c).

In fact, the temperature rising of the thermocouple's cold junction within the handle, is not obvious. It is not really necessary to do cold junction compensation, and there are already an offset compensation. As long as you press and hold the button at startup, you can enter room temperature parameter. In most cases, this is enough.

About offset adjustment for AMP (LM321)

LM321 used in my circuit is not a precision OP-AMP and there may be large input offset voltage (normally within a few millivolts). Because of the cold junction compensation circuit, its negative offset can be ignored, but if the positive offset is too large, it may be necessary to add resistor (R14) to the circuit for keeping the output in the linear range.

If you remove the cold junction compensation resistor in the handle, and the negative offset cannot be ignored, I suggest that you still need to add one resistor in series, however, this resistor can take a larger value, and at the same time increase the values of R5 and R13 in the circuit, so that there will be no obvious jitter caused by the connector contact resistor.

Also do not adjust the offset to 0, keep an output of OP-AMP hundreds of millivolts at least.

About the gain of AMP (LM321)

LM321 is also not a rail-to-rail OP-AMP, especially since its high output is close to 1V away from the power voltage.

If the gain designed is too large, the temperature measurement range will be limited. With my current design, there is no problem with the range within 500 centidegrees, but if a larger range is needed, the gain needs to be reduced (change R8/R9) and the parameters (g_ana_gain at main.c) in program needs to be adjusted too.

About power supply

The circuit requires 2 ways of power supply, a 5V for controller, another 24V for the fan (normally 24V 0.1xxA) in the handle. I didn't include this in my design, you can use the finished product from other way, or modify an unused phone charger like me (10W required).

Parts

40
QtyValueFootprintReferences
21uCapacitor_SMD:C_0603_1608MetricC2, C4
25.1kResistor_SMD:R_0603_1608MetricR6, R8
10.01u/400VCapacitor_THT:C_Rect_L7.0mm_W2.5mm_P5.00mmC6
1100kResistor_SMD:R_0603_1608MetricR1
1100nCapacitor_SMD:C_0603_1608MetricC5
110kResistor_SMD:R_0603_1608MetricR4
11k 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR11
11nCapacitor_SMD:C_0603_1608MetricC3
1220Resistor_SMD:R_0603_1608MetricR3
12SK3065Package_TO_SOT_SMD:SOT-89-3Q1
1330 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR7
1330u/6.3VCapacitor_THT:CP_Radial_D8.0mm_P5.00mmC1
1390Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR10
139kResistor_SMD:R_0603_1608MetricR2
147 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR12
15.6kResistor_SMD:R_0603_1608MetricR5
1510kResistor_SMD:R_0603_1608MetricR9
1820Resistor_SMD:R_0603_1608MetricR13
1?Resistor_SMD:R_0603_1608MetricR14
1AC_Nmy:Pad-2.5-h1P9
1BTA12-600Package_TO_SOT_THT:TO-220-3_VerticalD2
1Conn_01x04_MaleConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1EC11Rotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmSW1
1Gun_Fan-my:Pad-1.8-h1P4
1Gun_Gndmy:Pad-1.8-h1P8
1Gun_Heater_Nmy:Pad-2.5-h1P5
1Gun_SWmy:Pad-1.8-h1P3
1Gun_Tempmy:Pad-1.8-h1P6
1Heater LED-my:Pad-1.8-h1P7
1LM321Package_TO_SOT_SMD:SOT-23-5U3
1MOC3063Package_DIP:DIP-6_W7.62mmU4
1OLED_I2Cmy:OLED-I2C-0.96-27.5X27.8U2
1PWR_5Vmy:Pad-1.8-h1P2
1PWR_Gndmy:Pad-1.8-h1P1
1Rsvdmy:Pad-1.8-h1P11
1SS14Diode_SMD:D_SMAD1
1STC8G1K08-SOP16Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU1
1VCCmy:Pad-1.8-h1P10

Similar boards

  • 2 layers96.3 × 98 mmAquarium, the printed circuit board in 3D

    Aquarium

    baranovskiykonstantin/aquarium

    Control the lighting and the heating of the aquarium.

    73 parts11
  • 2 layers100 × 69.5 mmPanoboard2, the printed circuit board in 3D

    Panoboard2

    CapnKernel/panoboard2

    A new controller board for Panasonic bread makers

    76 parts
  • 2 layers115 × 75 mmSecador toalha, the printed circuit board in 3D

    Secador toalha

    forg3/secadora-de-toalha

    Secador de toalhas inteligente em alumínio (390W/127V~): PCB dedicada KiCad 10, ESP32-C3, controle térmico isolado e modo eco.

    25 parts
  • 2 layers63 × 98 mmThermostat, the printed circuit board in 3D

    Thermostat

    sensei-hacker/open-smart-thermostat

    A 24 VAC HVAC thermostat board. A Seeed XIAO RP2040 handles temperature control and switches the HVAC wires through optically isolated triacs. An M5Stack Dial provides the user interface.

    76 partsMIT
  • 2 layersAfd, the printed circuit board in 3D

    Afd

    jduanen/alienFontDisplay

    Display made of six eight-segment EL display units

    50 parts1MIT
  • 2 layers70 × 56 mmBps switch, the printed circuit board in 3D

    Bps switch

    Sanu0910/RFMW-ANT

    41 parts
  • 2 layers34 × 39 mmEmg, the printed circuit board in 3D

    Emg

    karim1312/emg

    Open Source Based sEMG. Based off of OpenEMG but with an added Voltage Follower for a theoretically more stable output.

    33 parts1

Questions

How big is the Heatgun PCB?

It measures 55 × 53 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Heatgun use?

40 parts, built around the BTA12-600, LM321, MOC3063 and 2SK3065. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Heatgun KiCad files?

From the m24h/heatgun repository on GitHub, at the commit this page was made from: the board is circuit/heatgun.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Heatgun design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).