Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:multiplexing_inputs_to_a_microcontroller [2022/03/20 21:26] – created brady.boettcher | tutorials:multiplexing_inputs_to_a_microcontroller [2022/03/22 18:43] (current) – brady.boettcher | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Multiplexer operation and considerations | ===== Multiplexer operation and considerations | ||
- | A multiplexer acts as a switching circuit that selects one of several inputs to send to the single output. Both analog and digital values can be used as inputs for these devices, as the multiplexer acts only as a gate for the input voltages. Inputs are selected using the selection pins on the device, which are controlled using digital binary values that represent the input pin to send through to the output. In the image below, a 4-1 multiplexer takes in 4 inputs, and the 2 selection inputs determine which is passed through. Using the binary encoding, multiplexers with '' | + | A multiplexer acts as a switching circuit that selects one of several inputs to send to the single output. Both analog and digital values can be used as inputs for these devices, as the multiplexer acts only as a gate for the input voltages. Inputs are selected using the selection pins on the device, which are controlled using digital binary values that represent the input pin to send through to the output. In the image below, a 4:1 multiplexer takes in 4 inputs, and the 2 selection inputs determine which is passed through. Using the binary encoding, multiplexers with '' |
{{: | {{: | ||
Line 14: | Line 14: | ||
The decision of the multiplexing ratio (inputs per output) must be informed by the requirements of the sensor and the limitations of the microcontroller being used. Multiplexing more inputs per pin may expand the number of values that can be read, but can also degrade the sampling rate to a point where the data isn't as useful. | The decision of the multiplexing ratio (inputs per output) must be informed by the requirements of the sensor and the limitations of the microcontroller being used. Multiplexing more inputs per pin may expand the number of values that can be read, but can also degrade the sampling rate to a point where the data isn't as useful. | ||
- | ===== | + | ===== |
- | + | Multiplexer chips are available from common sources such as [[https:// | |
- | + | ||
- | + | ||
- | + | ||
- | ===== Summary | + | |
- | + | ||
- | This document provided an introduction to basic sensor interfacing | + |