Projects / Solder joint timer

Solder joint timer

A small trainer beeps at the start, at the ideal heating time and at the limit of each joint, so a beginner learns to heat for about two to three seconds and no more.

Beginner1.3 hGuided buildReviewed

Build it step by step

0 of 8 done
  1. NANO

    Wire the button

    D2 to GND.

  2. NANO11.4 mA

    Wire the LEDs

    Green on D5, red on D6, each with 220 ohm.

  3. NANO

    Wire the buzzer

    D8 and GND.

  4. NANO

    Upload the sketch

    Open the serial monitor.

  5. NANO

    Press as the iron touches

    A short beep starts the timer.

  6. NANO11.5 mA

    Listen for the beeps

    Higher beep at 1.5 s, red LED after 3 s.

  7. NANO

    Press as you lift the iron

    The result is printed.

  8. NANO

    Practise ten joints

    Aim for all of them in the green window.

In short

How do you build a solder joint timer?

A small trainer beeps at the start, at the ideal heating time and at the limit of each joint, so a beginner learns to heat for about two to three seconds and no more. You need Arduino Nano, Tactile push button 6 mm, LED 5 mm red, LED 5 mm green, Resistor 220 Ω × 2, Passive buzzer, Jumper wires male to male (40 pcs, 20 cm) and Breadboard 830 Tie Points. It takes 8 steps and about 80 minutes.

Level
Beginner
Time
About 80 min
Parts
8

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Timer buttonNano D2 and GNDPress as the iron touches, press again as you lift it
Green LED anode220 ohm to Nano D5Lit during the good window
Red LED anode220 ohm to Nano D6Lit when the joint has been heated too long
Both LED cathodesNano GNDCommon ground
Passive buzzer positiveNano D8Time beeps
Passive buzzer negativeNano GNDCommon ground

Code

A good solder joint needs the pad and the lead to be heated together just long enough for the solder to flow, which is about two to three seconds for a small joint. Too little heat gives a dull, grainy cold joint that can fail later. Too much heat can lift the copper pad from the board or damage a sensitive part such as an LED or a chip. This trainer is a simple timer that does not touch the iron at all. You press the button as the tip touches the joint and press again as you lift it. A short beep at the start confirms the timer is running, a higher beep and the green LED mark the start of the good window at 1.5 seconds, the red LED lights after 3 seconds, and a long low tone sounds at 4 seconds. When you lift the iron, the serial monitor tells you whether the joint was too short, good or too long, and counts the good joints. Practise on scrap boards first. The right time depends on the joint size and iron temperature, so treat these numbers as a starting point for small joints. The iron runs at about 350 degrees Celsius, so use a stand, ventilate, and keep the trainer away from the hot tip.

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

const int BTN = 2, GREEN = 5, RED = 6, BUZZ = 8;
const unsigned long GOOD_FROM = 1500, GOOD_TO = 3000, LIMIT = 4000;   // milliseconds

enum State { IDLE, TIMING };
State state = IDLE;
unsigned long startMs = 0, lastPress = 0;
bool wasPressed = false, sawGood = false, sawLong = false, sawLimit = false;
int joints = 0, goodJoints = 0;

void setup() {
  pinMode(BTN, INPUT_PULLUP);
  pinMode(GREEN, OUTPUT); pinMode(RED, OUTPUT);
  Serial.begin(9600);
  Serial.println("Press when the iron touches the joint, press again when you lift it.");
}

void finish(unsigned long t) {
  digitalWrite(GREEN, LOW); digitalWrite(RED, LOW);
  joints++;
  Serial.print("Joint "); Serial.print(joints); Serial.print(": ");
  Serial.print(t / 1000.0, 1); Serial.print(" s - ");
  if (t < GOOD_FROM) Serial.println("too short, risk of a cold joint");
  else if (t <= GOOD_TO) { Serial.println("good"); goodJoints++; }
  else Serial.println("too long, risk of lifting the pad or damaging the part");
  Serial.print("Good joints so far: "); Serial.print(goodJoints); Serial.print(" of "); Serial.println(joints);
  state = IDLE;
}

void loop() {
  bool pressed = (digitalRead(BTN) == LOW);
  bool edge = pressed && !wasPressed && millis() - lastPress > 40;
  wasPressed = pressed;
  if (edge) lastPress = millis();

  if (state == IDLE) {
    if (edge) {
      startMs = millis();
      sawGood = sawLong = sawLimit = false;
      tone(BUZZ, 1000, 80);
      state = TIMING;
    }
  } else {
    unsigned long t = millis() - startMs;
    if (!sawGood && t >= GOOD_FROM) { sawGood = true; digitalWrite(GREEN, HIGH); tone(BUZZ, 1500, 120); }
    if (!sawLong && t > GOOD_TO)    { sawLong = true; digitalWrite(GREEN, LOW); digitalWrite(RED, HIGH); tone(BUZZ, 700, 200); }
    if (!sawLimit && t >= LIMIT)    { sawLimit = true; tone(BUZZ, 400, 600); }
    if (edge) finish(t);
  }
}

What the serial monitor should show

Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Nano with its sensors at their default values. Your numbers will follow your real readings, but the format should match.

Press when the iron touches the joint, press again when you lift it.

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Press onceShort beep, timer running
After 1.5 secondsHigher beep and the green LED
After 3 secondsGreen off, red on, lower beep
After 4 secondsLong low tone
Press againJoint time, verdict and tally on the monitor

If it does not work

No beeps

Use a passive buzzer on D8.

Button seems ignored

Check D2 to GND.

Result prints at once

A bounce, increase the 40 millisecond lockout.

Times feel wrong for your joints

Adjust GOOD_FROM, GOOD_TO and LIMIT.

LEDs stay on

The second press ends the joint and turns them off.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the solder joint timer?

Arduino Nano, Tactile push button 6 mm, LED 5 mm red, LED 5 mm green, Resistor 220 Ω × 2, Passive buzzer, Jumper wires male to male (40 pcs, 20 cm) and Breadboard 830 Tie Points.

How long does the solder joint timer take to build?

About 80 minutes for a beginner maker, in 8 steps.

How do I know the solder joint timer works?

Press once: Short beep, timer running. After 1.5 seconds: Higher beep and the green LED. After 3 seconds: Green off, red on, lower beep.

No beeps: what should I check?

Use a passive buzzer on D8.

Button seems ignored: what should I check?

Check D2 to GND.

Result prints at once: what should I check?

A bounce, increase the 40 millisecond lockout.

Times feel wrong for your joints: what should I check?

Adjust GOOD_FROM, GOOD_TO and LIMIT.