Part

Rotary dial

A telephone dial: its pulse contacts open once a step, ten a second, while the off-normal contacts say it is running.

See every part
  • 3 pins
  • In 1 project
Drawn live by the editor's own code, at the size you see it.
Rotary dial as drawn in the Mokxi simulator
At a glance

The Rotary dial in brief

What it is, and where it sits on the bench.

The rotary dial is a telephone’s rotary dial with its pulse and off-normal contacts brought out to three wires: GND, DIAL and PULSE. GND is the common of both sets of contacts. DIAL is the off-normal contact, joined to GND while the wheel is off its rest. PULSE is joined to GND at rest and let go once for each pulse. The pulse contacts open once a step, ten a second, so a 1 is one pulse and a 0 is ten. Click a hole to dial that digit; the digit shows in the middle until the wheel is home again. With INPUT_PULLUP on both pins, count how many times PULSE goes high while DIAL is low.

Family
Inputs
Pins
3
Pins

3 pins

Named as the editor names them, so a wire lands where you expect it.

Pin
What it does
GND
The common of both sets of contacts.
DIAL
The off-normal contacts: joined to GND while the wheel is off its rest.
PULSE
The pulse contacts: joined to GND at rest, let go once for each pulse.
How to use it

How to read an old telephone’s rotary dial with an Arduino

Three wires: GND to GND, DIAL to pin 2 and PULSE to pin 3, with INPUT_PULLUP on both. While the wheel runs back, the off-normal contacts hold DIAL low, and the pulse contacts open once a step: PULSE goes high once for 1 and ten times for 0, at ten pulses a second. Counting the pulses while DIAL is low, and reading the count when DIAL goes high again, gives the digit.

A real dial’s contacts bounce, so the project’s count only takes a pulse that has stayed high for a few milliseconds. Click the holes of the dial in the simulator, and the Uno builds up the number dialed.

Part pin
Board pin
GND
GND
DIAL
Pin 2
PULSE
Pin 3

The contacts are dry, so any board reads them with pull-ups. The pulses are slow, ten a second, so polling is enough.

Phone diallive0.000 s 0.00x
Click to open it in the editor
This is the simulator itself, running here. Click anything to open it in the editor.
Counting pulses while DIAL is low
const int DIAL_PIN = 2;
const int PULSE_PIN = 3;

int pulses = 0;
bool wasDialing = false;
bool wasHigh = false;

void setup() {
  pinMode(DIAL_PIN, INPUT_PULLUP);
  pinMode(PULSE_PIN, INPUT_PULLUP);
  Serial.begin(9600);
}

void loop() {
  bool dialing = digitalRead(DIAL_PIN) == LOW;
  bool high = digitalRead(PULSE_PIN) == HIGH;
  if (dialing && high && !wasHigh) pulses++;       // a pulse: PULSE let go
  if (wasDialing && !dialing) {                    // wheel home: read the digit
    Serial.println(pulses == 10 ? 0 : pulses);
    pulses = 0;
  }
  wasDialing = dialing;
  wasHigh = high;
}
Common errors

Common Rotary dial errors and fixes

What goes wrong
The fix
The digit is one too high or too low.
Count the pulses only while DIAL is low, and read the count when DIAL goes high again. A 0 is ten pulses.
Extra pulses appear.
A real dial’s contacts bounce. Only take a pulse that has stayed high for a few milliseconds.
Nothing is counted.
Use INPUT_PULLUP on both pins, because both contacts go to GND and the pins read LOW when closed.
Questions

Questions and answers

How does a rotary phone dial send a digit?

As pulses: one for 1 up to ten for 0, at ten a second, while the off-normal contacts say the wheel is running.

What do DIAL and PULSE mean?

DIAL is the off-normal contact, joined to GND while the wheel is off its rest. PULSE is joined to GND at rest and let go once per pulse.

Why does zero take ten pulses?

The dial sends one pulse per step, so 1 is one and 0, the last hole, is ten.

How it is modeled

What is true about the Rotary dial, here

In its help article’s own words: what the simulation gets right, and where it stops.

Modeled

The pulses: one for 1, nine for 9, ten for 0, at the governor's ten a second, each a 60 ms break and a 40 ms make, the ratio telephone exchanges were built for.

The off-normal contacts close as soon as the wheel leaves its rest and open a little after the last pulse, so "dialing" is never confused with a gap between pulses.

Not modeled

Contact bounce, and the speed a worn governor really runs at. The run from the finger stop back to the first pulse and from the last pulse to rest are a round 100 ms each.

From Rotary dial, in full.

Projects

See the Rotary dial in a project

One built-in project uses it. It opens in the editor, already wired.

Boards

The boards it is shown on

This board has a built-in project with the Rotary dial in it.

Wire up the Rotary dial

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.