Description
What it is
The CD74HC4067 is a 16-channel CMOS analog/digital multiplexer. A multiplexer allows the selection of one among several inputs and sends it to a single output.
Features
- 16 channels
- CMOS technology
- Analog/Digital
- SKU: ARD005947
- Price: 3.73 €
What it is for
The CD74HC4067 is ideal for projects requiring the reading of multiple analog sensors through a single communication line. It can be used with Arduino and other microcontrollers to multiplex signals from sensors, such as temperature, light, or pressure.
Tutorial: How to use CD74HC4067 16-channel CMOS analog/digital multiplexer
The CD74HC4067 multiplexer allows the selection of one of the 16 analog channels from a set of devices, ideal for applications with multiple sensors. Useful for beginners and intermediates in electronics.
What you need
- CD74HC4067
- 10kΩ resistor
- Analog sensor (e.g., thermometer)
- Arduino or Raspberry Pi
Steps
- 1. Connect the VCC of the multiplexer to the 5V or 3.3V of the Arduino/Raspberry Pi.
- 2. Connect the GND of the multiplexer to the GND of the Arduino/Raspberry Pi.
- 3. Connect the S0 and S1 pins to pin 2 and 3 of the Arduino, respectively.
- 4. Connect the A0 (channel 0) pin of the multiplexer to the A0 pin of the sensor.
- 5. Connect the A15 (channel 15) pin of the multiplexer to the A15 pin of the sensor.
- 6. Connect the VSS to GND.
- 7. Connect the VDD to 5V.
- 8. Upload the source code to your Arduino.
Example code
void loop() { int canale = 0; for (canale = 0; canale < 16; canale++) { digitalWrite(S0, (canale & 0x01)); digitalWrite(S1, (canale & 0x02) >> 1); delay(1000); Serial.println(analogRead(A0)); }}
Mini project
Create a multiplexing of 4 analog sensors and read the values in Arduino.
Common mistakes
- Forgetting to connect the S0 and S1 pins correctly.
- Using a voltage different from 5V or 3.3V.
- Connecting the VSS and VDD pins backwards.
- Omitting the pull-down resistor for S0 and S1.
Recommended accessories
- Thermal sensor LM35
- 10kΩ resistor
- Test lead
- Multimeter
Frequently asked questions
How to select a specific channel?
Set pins S0 and S1 to select the desired channel.
Can it work with a Raspberry Pi?
Yes, but make sure the Raspberry Pi supports the necessary GPIO pins.
What are the voltage limits of the multiplexer?
Check the datasheet for the maximum and minimum voltage values at VDD and VSS.











Reviews
There are no reviews yet.