All Projects → wagiminator → ATtiny13-TinySolder

wagiminator / ATtiny13-TinySolder

Licence: other
T12 Quick Heating Soldering Station

Programming Languages

C++
36643 projects - #6 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to ATtiny13-TinySolder

ATtiny13-TinyRemoteXL
12-Button IR Remote Control
Stars: ✭ 33 (-26.67%)
Mutual labels:  avr, attiny, pcb, project, diy, attiny13a, attiny13
ATtiny13-TinyUPS
Uninterruptible Power Supply
Stars: ✭ 92 (+104.44%)
Mutual labels:  avr, attiny, pcb, project, diy, attiny13a, attiny13
ATtiny85-TinyDFPlayer
MP3-Player
Stars: ✭ 22 (-51.11%)
Mutual labels:  avr, attiny, pcb, project, diy
ATtiny13-TinyTacho
Simple RPM-Meter
Stars: ✭ 36 (-20%)
Mutual labels:  avr, pcb, project, diy, attiny13a
ATtiny85-TinyLoad
Electronic Dummy Load
Stars: ✭ 32 (-28.89%)
Mutual labels:  avr, attiny, pcb, project, diy
ATtiny85-TinyFMRadio
FM Radio with RDS
Stars: ✭ 51 (+13.33%)
Mutual labels:  avr, attiny, pcb, project, diy
ATtiny85-USB-C-Tester
Simple USB-C Power Delivery Tester
Stars: ✭ 20 (-55.56%)
Mutual labels:  avr, attiny, pcb, project, diy
Atmega Soldering Station
T12 Quick Heating Soldering Station
Stars: ✭ 183 (+306.67%)
Mutual labels:  avr, pcb, project, diy
ATtiny84-TinyCalibrator
OSC Calibrator and High-Voltage Fuse Resetter for 8-Pin ATtinys
Stars: ✭ 39 (-13.33%)
Mutual labels:  avr, attiny, attiny13a, attiny13
ATtiny85-TinyCharger
Single-Cell Li-Ion Battery Charger with Monitoring
Stars: ✭ 20 (-55.56%)
Mutual labels:  avr, attiny, pcb, diy
diy-BMS-with-Arduino-Nano
If you have a private powerwall of 18650 cells, this is the battery management system you need. The small PCB is equipped with the cheap Arduino Nano.
Stars: ✭ 33 (-26.67%)
Mutual labels:  pcb, diy
JBC SolderingStation
JBC_SolderingStation
Stars: ✭ 63 (+40%)
Mutual labels:  diy, soldering-station
LipSync
An open-source mouth operated sip and puff joystick that enables people with limited hand function emulate a mouse on their computer and/or smartphone.
Stars: ✭ 27 (-40%)
Mutual labels:  pcb, diy
samoklava
Generated keyboard
Stars: ✭ 241 (+435.56%)
Mutual labels:  pcb, diy
Reactorforge
High power induction heating platform
Stars: ✭ 90 (+100%)
Mutual labels:  avr, diy
smart-car-freescale
第九届飞思卡尔智能车参赛作品
Stars: ✭ 36 (-20%)
Mutual labels:  pcb, diy
chpc
CHPC: Cheap Heat Pump Controller
Stars: ✭ 27 (-40%)
Mutual labels:  pcb, diy
djinn
Djinn Split Keyboard
Stars: ✭ 685 (+1422.22%)
Mutual labels:  pcb, diy
AVR-Programmer
Collection of AVR Programmers and Accessories
Stars: ✭ 25 (-44.44%)
Mutual labels:  avr, attiny
Rumba Plus
A premium-quality 3D printer control board by Aus3D.
Stars: ✭ 34 (-24.44%)
Mutual labels:  avr, pcb

TinySolder - T12 Soldering Station based on ATtiny13A

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

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

pic1.jpg

Hardware

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.

pic2.jpg

Software

Implementation

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:

// Loop
while(1) {
  // Read potentiometer setting and calculate setpoint accordingly
  poti = ADC_read(pinADC(POTI));
  if (poti < 512) setpoint = (uint32_t)(( poti        * (TEMP300 - TEMP150))>>9) + TEMP150;
  else            setpoint = (uint32_t)(((poti - 512) * (TEMP450 - TEMP300))>>9) + TEMP300;

  // Set heater according to temperature reading and setpoint
  pinLow(HEATER);                                 // shut off heater
  _delay_us(TIME2SETTLE);                         // wait for voltages to settle
  temp = ADC_read(pinADC(TEMP));                  // read temperature
  smooth = ((smooth << 3) - smooth + temp) >> 3;  // low pass filter
  if (smooth < setpoint) pinHigh(HEATER);         // turn on heater if below setpoint

  // Set status LED according to temperature and setpoint
  pinLow(LED);
  if ((smooth + 10 > setpoint) && (setpoint + 10 > smooth)) pinHigh(LED);

  // Some timing
  if (handleTimer++ > TIME2SLEEP/CYCLETIME*1000) sleep(); // sleep mode if handle unused
  _delay_ms(CYCLETIME - 8);                               // 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: 1.2 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 TinySolder.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:0x2a:m -U hfuse:w:0xfb:m -U flash:w:tinysolder.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 sketch.
  • 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)

pic3.jpg

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 but keep in mind, that there's no standard pinout. 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.

pic4.png

The pinout shown works for the Quecoo handles from aliexpress. Different handles may have different pinouts. If you are assembling your handle yourself, follow the scheme shown below. The video by John Glavinos (electronics4all) shows how it's done.

pic5.png

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

Calibrating

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

License

license.png

This work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License. (http://creativecommons.org/licenses/by-sa/3.0/)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].