Projects / Ideas / Twelve positions on one pin

Twelve positions on one pin

BeginnerLearningIdeaReviewed
In short

How do you build a twelve positions on one pin?

A twelve-way rotary switch with a resistor chain gives twelve different voltages on one pin, and the board shows the position. You need Arduino Nano, Rotary switch 1-pole 12-way, Resistor 1 kΩ × 11, SSD1306 OLED Display and Breadboard 830 Tie Points.

Level
Beginner
Time
About 120 min
Parts
5
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Read a switch with one pin.

Parts list

How to build it

  1. Build the resistor chain
  2. Wire the switch
  3. Read the voltage
  4. Find the twelve ranges
  5. Show the position

Related projects

Common questions

What parts do I need for the twelve positions on one pin?

Arduino Nano, Rotary switch 1-pole 12-way, Resistor 1 kΩ × 11, SSD1306 OLED Display and Breadboard 830 Tie Points.

How long does the twelve positions on one pin take to build?

About 120 minutes for a beginner maker.