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.
Build it step by step
0 of 8 doneWire the button
D2 to GND.
Wire the LEDs
Green on D5, red on D6, each with 220 ohm.
Wire the buzzer
D8 and GND.
Upload the sketch
Open the serial monitor.
Press as the iron touches
A short beep starts the timer.
Listen for the beeps
Higher beep at 1.5 s, red LED after 3 s.
Press as you lift the iron
The result is printed.
Practise ten joints
Aim for all of them in the green window.
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
- Development BoardsBuyArduino Nano × 1
- SwitchesBuy
- SemiconductorsBuyLED 5 mm red × 1
- SemiconductorsBuyLED 5 mm green × 1
- PassivesBuyResistor 220 Ω × 2
- Motors & ActuatorsBuyPassive buzzer × 1
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Timer button | Nano D2 and GND | Press as the iron touches, press again as you lift it |
| Green LED anode | 220 ohm to Nano D5 | Lit during the good window |
| Red LED anode | 220 ohm to Nano D6 | Lit when the joint has been heated too long |
| Both LED cathodes | Nano GND | Common ground |
| Passive buzzer positive | Nano D8 | Time beeps |
| Passive buzzer negative | Nano GND | Common 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.
| Check | Expected |
|---|---|
| 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 |
| After 4 seconds | Long low tone |
| Press again | Joint 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 →
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.
