Source: https://mokxi.com/parts/cd74hc4067
Updated: 2026-11-19

Part

# CD74HC4067 analog multiplexer

Sixteen channels to one pin through analog switches: four address lines pick which one.

See every part

- 24 pins
- In 1 project
- In 1 lesson

Drawn live by the editor's own code, at the size you see it.

At a glance

## The CD74HC4067 analog multiplexer in brief

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

The CD74HC4067 is a 16 channel analog multiplexer: sixteen analog switches with one common pin, where four address lines pick which channel reaches COM. The pins are I0 to I15, the sixteen channels, COM, the common pin, called SIG on some boards, S0 to S3, the channel address with S0 the least significant bit, EN, enable, active low, which opens every switch when high, and VCC and GND, 2 to 6 V. Each switch passes current in either direction. One analog pin reads sixteen sensors, or one pin drives sixteen outputs in turn. While it runs, the marker beside the channel joined to COM lights. It is the bigger cousin of the 74HC4051, which has eight channels.

Family

Logic

Pins

24

Pins

## 24 pins

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

Pin

What it does

I15

I14

I13

I12

I11

I10

I9

I8

I7

I6

I5

I4

I3

I2

I1

I0

COM

The common pin (SIG on some boards).

S3

S2

S1

S0

EN

Enable, active low: tie it to ground, or high to open every switch.

VCC

Supply, 2 to 6 V.

GND

Ground.

How to use it

## How to read sixteen sensors on one pin with a CD74HC4067

COM goes to A0. The four address pins S0 to S3 go to Uno pins 2 to 5. EN is tied to GND so the switches are on, VCC goes to 5 V and GND to the Uno’s ground. The three knobs’ wipers go to channels I0, I5 and I15.

The sketch writes the channel number onto the four address pins, bit 0 to S0, waits 50 microseconds for the switch to settle, and reads A0. It reads channels 0, 5 and 15 and prints them. Turn each knob and its channel follows. Sixteen channels use four address pins, where the 74HC4051’s eight need three.

Part pin

Board pin

COM

A0

S0, S1, S2, S3

Pins 2, 3, 4, 5

I0, I5, I15

The three knobs’ wipers

EN, GND

Ground

VCC

5 V

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

Pick a channel, then read

Common errors

## Common CD74HC4067 analog multiplexer errors and fixes

What goes wrong

The fix

Every channel reads nothing.

EN is active low. Tie it to ground, since high opens every switch.

A channel reads the previous one.

Wait a short time after setting the address before analogRead(), as the sketch does with 50 microseconds.

The wrong channel is read.

S0 is the least significant bit. Check S0 to S3 go to pins 2 to 5 in order.

Questions

## Questions and answers

### How many channels does the CD74HC4067 have?

Sixteen, I0 to I15, picked by the four address pins S0 to S3.

### What is the common pin called?

COM, and SIG on some boards.

### What is the difference from the 74HC4051?

The 74HC4051 has eight channels and three address pins. The CD74HC4067 has sixteen and four.

How it is modeled

## What is true about the CD74HC4067 analog multiplexer, here

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

### Modeled

From the TI datasheet:

It is a switch, not a buffer. The chosen channel is joined to COM through the
on-resistance, both ways, so the signal is divided by whatever loads it, as on the
bench.

The on-resistance: 70 ohm typical from 4.5 V up, 100 ohm from 3 V and 160 ohm
below.

Every other channel is open, and EN high opens them all. An address line that
is not a clean logic level opens every switch too.

### Not modeled

The switching time, break-before-make, charge injection, leakage, the
on-resistance's change with the signal voltage, and signals past the supply rails,
which a real one clamps.

From CD74HC4067 16-channel multiplexer, in full.

Projects

## See the CD74HC4067 analog multiplexer in a project

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

Lessons

## Where it turns up in a lesson

One lesson places it in its own circuit.

### Learn articles

1 lesson

- Arduino CD74HC4067 Multiplexer: 16 Analog Inputs

Boards

## The boards it is shown on

This board has a built-in project with the CD74HC4067 analog multiplexer in it.

- Arduino Uno R3

Libraries

## Arduino libraries for the CD74HC4067 analog multiplexer

Built in, so the sketch compiles with nothing to install. Each page has the calls, the wiring and an example to run.

- CD74HC4067

Keep going

## Keep going

- Analog vs Digital Pins, and ADC Resolution
- Arduino Potentiometer Wiring and Code: Dim an LED
- 74HC4051 analog multiplexer
- Potentiometer
- Eight-channel ADC, MCP3008

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the CD74HC4067 analog multiplexer

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

Start building free Open the editor
