
PUTM EV BMS HV MASTER 2023
PUT-Motorsport/PUTM_EV_AMS_MASTER
High Voltage Battery Management System

A small hot air station for soldering, using type-858 heat gun as handle, STC8G1k17 as MCU, copper wire resistor for cold junction compensation
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.
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:
This program is only for MCU STC8G1K17-16pin, compiled and linked by SDCC 4.2.0
It must be burned at following scheme:
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.
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.
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.
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).
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 1u | Capacitor_SMD:C_0603_1608Metric | C2, C4 |
| 2 | 5.1k | Resistor_SMD:R_0603_1608Metric | R6, R8 |
| 1 | 0.01u/400V | Capacitor_THT:C_Rect_L7.0mm_W2.5mm_P5.00mm | C6 |
| 1 | 100k | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 100n | Capacitor_SMD:C_0603_1608Metric | C5 |
| 1 | 10k | Resistor_SMD:R_0603_1608Metric | R4 |
| 1 | 1k 1/4W | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R11 |
| 1 | 1n | Capacitor_SMD:C_0603_1608Metric | C3 |
| 1 | 220 | Resistor_SMD:R_0603_1608Metric | R3 |
| 1 | 2SK3065 | Package_TO_SOT_SMD:SOT-89-3 | Q1 |
| 1 | 330 1/4W | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7 |
| 1 | 330u/6.3V | Capacitor_THT:CP_Radial_D8.0mm_P5.00mm | C1 |
| 1 | 390 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R10 |
| 1 | 39k | Resistor_SMD:R_0603_1608Metric | R2 |
| 1 | 47 1/4W | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R12 |
| 1 | 5.6k | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | 510k | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | 820 | Resistor_SMD:R_0603_1608Metric | R13 |
| 1 | ? | Resistor_SMD:R_0603_1608Metric | R14 |
| 1 | AC_N | my:Pad-2.5-h1 | P9 |
| 1 | BTA12-600 | Package_TO_SOT_THT:TO-220-3_Vertical | D2 |
| 1 | Conn_01x04_Male | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | EC11 | Rotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mm | SW1 |
| 1 | Gun_Fan- | my:Pad-1.8-h1 | P4 |
| 1 | Gun_Gnd | my:Pad-1.8-h1 | P8 |
| 1 | Gun_Heater_N | my:Pad-2.5-h1 | P5 |
| 1 | Gun_SW | my:Pad-1.8-h1 | P3 |
| 1 | Gun_Temp | my:Pad-1.8-h1 | P6 |
| 1 | Heater LED- | my:Pad-1.8-h1 | P7 |
| 1 | LM321 | Package_TO_SOT_SMD:SOT-23-5 | U3 |
| 1 | MOC3063 | Package_DIP:DIP-6_W7.62mm | U4 |
| 1 | OLED_I2C | my:OLED-I2C-0.96-27.5X27.8 | U2 |
| 1 | PWR_5V | my:Pad-1.8-h1 | P2 |
| 1 | PWR_Gnd | my:Pad-1.8-h1 | P1 |
| 1 | Rsvd | my:Pad-1.8-h1 | P11 |
| 1 | SS14 | Diode_SMD:D_SMA | D1 |
| 1 | STC8G1K08-SOP16 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U1 |
| 1 | VCC | my:Pad-1.8-h1 | P10 |

PUT-Motorsport/PUTM_EV_AMS_MASTER
High Voltage Battery Management System

baranovskiykonstantin/aquarium
Control the lighting and the heating of the aquarium.


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.

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.



karim1312/emg
Open Source Based sEMG. Based off of OpenEMG but with an added Voltage Follower for a theoretically more stable output.
It measures 55 × 53 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).