Projects / Multi-timer for the bench

Multi-timer for the bench

Beginner45 minGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANOHello20X4

    Wire the display

    20x4 LCD on A4 and A5. Address is usually 0x27.

  2. NANO

    Add four buttons

    D2 to D5 and ground, labelled for glue, epoxy, etching and charging.

  3. NANO

    Add the buzzer

    Between D8 and ground.

  4. NANO

    Upload

    Four lines show T1 to T4 with their times.

  5. NANO

    Start timers

    Tap one button to start it. Start another at once. They count independently.

  6. NANO

    Set a time

    Hold a button for a second to step through the presets.

  7. NANO

    Wait for the end

    The buzzer sounds and the line shows DONE.

In short

How do you build a multi-timer for the bench?

Four independent timers for glue, epoxy, etching and charging, each with a button and beep. You need Arduino Nano, 20x4 LCD with I2C backpack, Tactile push button 6 mm × 4, Active buzzer 5 V, Breadboard 830 Tie Points, Jumper wires male to male (40 pcs, 20 cm) and USB A to micro-USB cable (data). It takes 7 steps and about 45 minutes.

Level
Beginner
Time
About 45 min
Parts
7

Parts list

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

Wiring

FromToWhy
LCD SDA and SCLNano A4 and A520x4 I2C display
LCD VCC and GNDNano 5V and GNDSupply
Timer 1 to 4 buttonsNano D2, D3, D4, D5 and GNDTap to start or stop, hold to set the time
Buzzer + and -Nano D8 and GNDAlert

Code

Arduino IDE, board "Arduino Nano" (processor ATmega328P, or ATmega328P (Old Bootloader) for clones). Install "LiquidCrystal I2C". The code uses millis() so all four timers run at the same time, with no delay() in the loop. Short press starts or stops, long press cycles the preset between 1, 5, 10, 30 and 60 minutes.

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).

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 20, 4);
const byte BTN[4] = {2, 3, 4, 5};
const byte BUZZ = 8;
const int PRESETS[] = {1, 5, 10, 30, 60};            // minutes
long secs[4] = {300, 300, 300, 300};
byte preset[4] = {1, 1, 1, 1};
bool running[4] = {false, false, false, false};
unsigned long pressedAt[4] = {0, 0, 0, 0};
bool wasDown[4] = {false, false, false, false};
unsigned long lastTick = 0;

void show(byte i) {
  lcd.setCursor(0, i);
  char buf[21];
  snprintf(buf, sizeof(buf), "T%d %02ld:%02ld %s       ", i + 1, secs[i] / 60, secs[i] % 60, running[i] ? "RUN " : (secs[i] == 0 ? "DONE" : "    "));
  lcd.print(buf);
}

void setup() {
  for (byte i = 0; i < 4; i++) pinMode(BTN[i], INPUT_PULLUP);
  pinMode(BUZZ, OUTPUT);
  lcd.init(); lcd.backlight();
  for (byte i = 0; i < 4; i++) show(i);
}

void loop() {
  for (byte i = 0; i < 4; i++) {
    bool down = digitalRead(BTN[i]) == LOW;
    if (down && !wasDown[i]) pressedAt[i] = millis();
    if (!down && wasDown[i]) {
      if (millis() - pressedAt[i] < 1000) {                 // short press: start or stop
        if (secs[i] == 0) secs[i] = PRESETS[preset[i]] * 60L;
        running[i] = !running[i];
      } else {                                               // long press: cycle the preset
        preset[i] = (preset[i] + 1) % 5; secs[i] = PRESETS[preset[i]] * 60L; running[i] = false;
      }
      show(i);
    }
    wasDown[i] = down;
  }
  if (millis() - lastTick >= 1000) {
    lastTick += 1000;
    for (byte i = 0; i < 4; i++) {
      if (running[i] && secs[i] > 0) {
        secs[i]--;
        if (secs[i] == 0) { running[i] = false; tone(BUZZ, 2000, 600); }
        show(i);
      }
    }
  }
}

Test checklist

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

CheckExpected
Tap a buttonThat line shows RUN and counts down
Start two timersBoth count independently
Long pressThe preset changes
Timer reaches zeroBuzzer and DONE

If it does not work

Timers drift

Do not add delay() calls. Keep the loop free.

Button does nothing

Check wiring to D2 to D5 and ground.

Display shows odd characters

The LCD address or size is wrong.

Buzzer too quiet

Use a louder buzzer or a transistor driver.

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

Ask Lark AI

Common questions

What parts do I need for the multi-timer for the bench?

Arduino Nano, 20x4 LCD with I2C backpack, Tactile push button 6 mm × 4, Active buzzer 5 V, Breadboard 830 Tie Points, Jumper wires male to male (40 pcs, 20 cm) and USB A to micro-USB cable (data).

How long does the multi-timer for the bench take to build?

About 45 minutes for a beginner maker, in 7 steps.

How do I know the multi-timer for the bench works?

Tap a button: That line shows RUN and counts down. Start two timers: Both count independently. Long press: The preset changes.

Timers drift: what should I check?

Do not add delay() calls. Keep the loop free.

Button does nothing: what should I check?

Check wiring to D2 to D5 and ground.

Display shows odd characters: what should I check?

The LCD address or size is wrong.

Buzzer too quiet: what should I check?

Use a louder buzzer or a transistor driver.