Beginner Guide

How a Timer Switch Works and How to Wire One: Mechanical, Digital and Astronomical

📅 ✍️ ElectraSim ⏱ 9 min read

A timer switch is one of the simplest and most useful automation devices in domestic electrical installations. Set it once and lights come on at dusk, the immersion heater heats water before you wake up, and the garden lights turn off at midnight — without touching a switch.

But there are three fundamentally different types of timer switch (mechanical, digital, and astronomical), and each works in a completely different way, requires different wiring, and suits different applications. This guide explains all three, how to wire each one, and how the timer component in ElectraSim models the switching logic.


What a Timer Switch Does Electrically

A timer switch is simply an automatically controlled switch — it connects or disconnects the live conductor to the load at programmed times. The load (a light fitting, immersion heater, pump, or any other appliance) is wired through the timer’s output terminals. At the set on-time, the timer closes the internal switch contact and current flows. At the set off-time, the contact opens and current stops.

The timer itself needs a small power supply to run its clock and control circuitry. This comes either from the mains live and neutral connected to its input terminals, or in some designs from a small internal battery (used as backup to preserve the programme during a power cut).

From a circuit perspective, a timer is equivalent to a switch with an internal clock controlling its open/closed state.

Related: Electrical Circuit Symbols: Complete Reference Guide


Type 1: Mechanical (Analogue) Timer Switch

How it works

A mechanical timer uses a rotating disc or drum driven by a small synchronous motor that runs in time with the 50 Hz mains frequency. The disc rotates once every 24 hours (for a 24-hour timer).

Around the edge of the disc are removable tripping pins (or a slideable ring). When a pin passes the switch actuator, it flips the contact from open to closed — or closed to open. To set an on/off programme, you push pins in (to activate) or pull them out (to deactivate) around the disc.

The typical mechanical timer has a resolution of 15 minutes per pin segment — so you can programme on and off events to the nearest quarter-hour.

Advantages

Disadvantages

Typical applications


Type 2: Digital (Electronic) Timer Switch

How it works

A digital timer uses a microcontroller (a small computer chip) to track time and control a relay or triac output. The time is kept by an internal crystal oscillator — much more accurate than a mains-frequency motor.

Programming is done via buttons and a digital display (LCD or LED). You set the current time and date, then programme on/off events with times, days of the week, and repeat patterns. Most digital timers offer:

Advantages

Disadvantages

Typical applications


Type 3: Astronomical (Sunrise/Sunset) Timer Switch

How it works

An astronomical timer contains the same microcontroller as a digital timer, but adds a GPS-based or pre-programmed astronomical database of sunrise and sunset times for any location on earth, for every day of the year.

You configure the timer with your latitude and longitude (or select from a list of cities). The timer then automatically calculates local sunrise and sunset for the current date and adjusts the on/off times accordingly — every day, without user input.

An astronomical timer can be set to:

Advantages

Disadvantages

Typical applications


How to Wire a Timer Switch

1. DIN-rail timer (consumer unit / fused spur installation)

A DIN-rail timer mounts inside or alongside a consumer unit on a 35 mm DIN rail. It is the correct type for controlling a fixed circuit — immersion heater, outbuilding light, pump.

Connections:

L (live in) ──── Timer ──── L out ──── Load
N (neutral) ─────────────────────────────── (bypasses timer)
E (earth) ───────────────────────────────── (bypasses timer)

The timer switches only the live conductor. Neutral and earth connect directly to the load — the timer does not interrupt them.

At the consumer unit, the DIN-rail timer is wired between the MCB output (switched live) and the circuit cable going to the load. The neutral of the circuit bypasses the timer directly.

For an immersion heater, the sequence is:

MCB (20 A) → Timer → Immersion heater switch (double pole, 20 A) → Immersion heater element

The double-pole switch allows manual override — you can bypass the timer and heat water immediately when needed.

2. Plug-in timer (13 A socket)

A plug-in timer inserts directly into a standard 13 A socket. The appliance plugs into the timer’s output socket. No wiring required.

Plug-in timers are suitable for any load up to 13 A (2,990 W at 230 V). They are not suitable for fixed wiring, high-current loads (cooker, immersion heater, shower), or outdoor use unless the timer is itself IP-rated for outdoor use.

3. Inline timer (replacing a light switch)

Some timer switches are designed as light switch replacements — they fit in a standard single-gang back box and replace a normal light switch. The wiring is identical to a standard light switch:

Permanent live → Timer L terminal
Switched live (to fitting) → Timer L1 terminal
Earth → Earth terminal

Most switch-replacement timers require a neutral at the switch position to power their electronics. Many older wiring installations do not have a neutral at the switch (the ceiling rose method routes the neutral via the rose, not the switch back box). Check before purchasing.

Related: How to Wire a Ceiling Rose and Light Fitting

Related: Live, Neutral and Earth Wires Explained


The Timer Component in ElectraSim

ElectraSim includes a Timer component that simulates the switching behaviour of a timer switch in a circuit. To use it:

  1. Place a Power Supply, a Timer, and a Bulb (or any load)
  2. Wire: Supply → Timer (in the live path) → Bulb → return to Supply
  3. Run the simulation
  4. The Timer component toggles the internal contact on and off on its programmed cycle
  5. Observe the Bulb switching on and off as the timer operates

Combine the Timer with other protection devices — an MCB upstream, an RCD for earthed loads — to simulate a complete protected and timed circuit.

For more on how different ElectraSim components interact:

Getting Started with ElectraSim

6 New Components: RCD, Contactor, Timer, Dimmer, Distribution Board, Bell


Timer Switches and Contactors

For large loads — a bank of outdoor lights, a large pump, a heating circuit — a timer switch does not switch the load directly. Instead, it controls the coil of a contactor: the timer’s output switches the low-current coil circuit, and the contactor’s high-current contacts switch the actual load.

Timer output (low current) → Contactor coil
Contactor contacts (high current) → Load

This separates the timer’s control current from the load current entirely. The timer switches at milliamps; the contactor handles tens of amps.

Related: What is a Contactor and How Does It Work?


Choosing the Right Timer

RequirementChoose
Simple 24-hr immersion heater programmeMechanical DIN-rail timer
Weekday/weekend heating scheduleDigital 7-day DIN-rail timer
Outdoor lights that always come on at duskAstronomical timer
Small lamp or appliance, no wiring changesPlug-in mechanical or digital timer
Smart phone control + schedulingSmart plug or smart switch (Wi-Fi)
High-current load (>16 A)Timer + contactor

Key Points

Try the Timer component in ElectraSim → — free, no account required.

See It All in Action

Build and simulate the circuits from this article for free in your browser. No installation, no sign-up.

⚡ Open ElectraSim Free