Projects / Ideas / Sixteen-button input over I2C

Sixteen-button input over I2C

IntermediateLearningIdeaReviewed
In short

How do you build a sixteen-button input over I2C?

A 16-bit expander reads sixteen buttons with just two wires and shows which are pressed. You need Arduino Nano, MCP23017 16-bit I/O expander, Tactile push button 6 mm × 16, SSD1306 OLED Display and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 240 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

Add sixteen inputs.

Parts list

How to build it

  1. Wire the expander
  2. Enable the internal pull-ups
  3. Read both ports
  4. Show pressed buttons
  5. Add an interrupt pin

Related projects

Common questions

What parts do I need for the sixteen-button input over I2C?

Arduino Nano, MCP23017 16-bit I/O expander, Tactile push button 6 mm × 16, SSD1306 OLED Display and Breadboard 830 Tie Points.

How long does the sixteen-button input over I2C take to build?

About 240 minutes for a intermediate maker.