Questions tagged [multiplexer]

A multiplexer lets you select one signal out of a group of (typically) 8 or 16, for both input and output purposes. Use this tag for discussing multiplexer chips.

A multiplexer uses back-to-back MOSFETs to choose a signal from a group of signals.


Multiplexing input

For example, for inputting to an analog pin:

Multiplexer input

The A/B/C pins tell the multiplexer which signal to forward (in this case, signal 2). Any voltage present then appears on the O/I pin (output/input) which can be connected to an analog input pin on the Arduino.


Multiplexing output

Multiplexer output

The A/B/C pins tell the multiplexer which signal to forward the output to (in this case, signal 7). Data written to the O/I pin (output/input) is then sent to the selected pin.

Strictly speaking, this operation is called demultiplexing.


How do you switch directions?

The multiplexing is bidirectional. What the driver MOSFETs really do is present a low resistance for the selected signal line (around 80 Ω) and a very high resistance for the other lines. Thus the bulk of the current (input or output) goes to or from the selected signal line.


Reference

78 questions
8
votes
2 answers

How to use a common anode 7-segment, 4-digit display?

Please take this question as an example to (my own) answer below. I've got an 7 segment, 4 digit LED display, but I don't have any idea on how to wire it. I don't understand the difference between common anode/cathode, and I don't have 2 pins per…
aaa
  • 2,715
  • 2
  • 25
  • 40
7
votes
3 answers

Multiple I2C sensors with the same address

I am trying to find the simplest way to connect multiple (preferably around 10-20) IMU sensors to one controller. There are two constraints: sampling at 60Hz and reasonably simple wiring as I want to put it on clothes. I am totally new to the…
Łukasz Kidziński
  • 173
  • 1
  • 1
  • 7
6
votes
1 answer

How important is the INT pin of the MPU6050 (GY-521)?

I want to wire multiple MPU6050 (at least 16 of them) to an arduino UNO for development (then nano for production). So I first started wiring one MPU6050 to an arduino like shown on the diyhacking website or in the picture below: as you can see in…
Paiku Han
  • 179
  • 1
  • 1
  • 4
4
votes
1 answer

Working with multiplexers for constant voltage output

I'm working on creating a circuit where I'm trying to have the ability to switch multiple strands of LED rope on and off at a time using an Arduino and a multiplexer. With my current configuration, I have the a circuit and a sketch that will cycle…
narner
  • 267
  • 1
  • 3
  • 17
4
votes
0 answers

Multiple MuxShield 2's connected to a single Arduino Mega

I am working on a project and need alot of toggle buttons to control various things around the house. I connected 5 MuxShield 2's to my Arduino Mega. The first two will serve as inputs and the last two will serve as outputs. The problem is when I…
Jochim
  • 61
  • 1
3
votes
1 answer

Connecting 3x 0.91Oleds (Using a TCA9548A 8-channel multiplex) and 1 1.51 Inch Transperant SPI OLED

As the title suggests, I have an Arduino Nano connected to a multiplex (which is connected to 3x 0.91 OLEDs) and an 1.51 inch OLED connected through an SPI. The problem is that they just refuse to work simultaneously - both work, I've tested them…
3
votes
1 answer

What are a few good ways to connect multiple I2C busses?

I have an issue with a project. I have a backplane with an Atmega328P based microcontroller controlling an I2C bus with multiple peripheral devices. One such peripheral is a removable card with another Atmega328P based microcontroller as the…
3
votes
1 answer

PWM multiplexing on Arduino nano

simulate this circuit – Schematic created using CircuitLab Its a simple project. I am trying to drive 3 RGB LEDs using Arduino Nano. Since Arduino Nano does not have 9 PWM pins, the only solution I can think of by multiplexing them. I have try…
duck
  • 1,258
  • 10
  • 27
3
votes
2 answers

Need help with 2X3 matrix for braille

I'm an intermediate Arduino progammer, and I'm making an electronic braille display for my friend. You can think of this display as an array of 28x3 LEDs(one braille character contains a maximum of six (2x3 for one letter) dots so there can be 14…
Tanishq Jaiswal
  • 181
  • 1
  • 9
3
votes
1 answer

Switching Many Switches with one Input

I have a situation where I need to select between two signals, lets say 1A or 2B and route it to output 3C. I need to do this six times (2A or 2B to output 2C, 3A or 3B to output 3C, etc.). These all need to switch based on one output from my…
jay8ee
  • 31
  • 1
2
votes
2 answers

Voltage reading problem in Arduino mega based 10 cannel battery capacity tester

I want to make a 10 channels Arduino mega-based battery capacity tester using 4.7 ohms 10w resistors controlling them with IRFZ44n MOSFETs with respected digital pins. An 8.4V battery powers the Arduino (do not consider the buck converter in the…
2
votes
1 answer

Using CD74HC4067 16-Channel Analog Multiplexer Demultiplexer is not working as expected

I am working on a project that needs multiple digital signals and I am considering the CD74HC4067 (on a break-board) to work as a multiplexer. More specifically i am trying to build a keypad with multiple ttp123 break-boards. Each ttp123 signal is…
thermike
  • 51
  • 4
2
votes
1 answer

Multiplexer 74HC4067, conflict between channels

I am currently working on an Arduino Zero with a 74HC4067 multiplexer and I am experiencing inconsistencies when testing some of the channels. My class is the following (it should be functional for 8 or 16 channels multiplexers). Multiplexer.h…
Fanch
  • 23
  • 3
2
votes
1 answer

Is it possible to read multiple buttons with the CD74HC4067?

I am working on a project with a claw machine. I am working on this chip (CD4067BE which is equivalent to the CD74HC4067) and I was wondering: can I read more than one button with the CD4067? I tried the following code, and it works great, but when…
Austin
  • 116
  • 6
2
votes
1 answer

Reading Multiple MPU 9250 Sensors using TCA9548A Multiplexer

I am trying to read multiple MPU 9250 sensors using TCA9548A multiplexer in ESP 32 and Arduino IDE. Has anyone done that successfully? I am new to the area of Arduino coding. I am trying to edit the code in this tutorial for MPU 9250…
Ajay Raj
  • 63
  • 6
1
2 3 4 5 6