Схема подключения камерy к мултиплексору
Tutorial 74HC4067 16-Channel Analog Multiplexer Demultiplexer
One example of this is the 74HC4067 16-channel analog multiplexer demultiplexer. Thats a mouthful however in simple form its an IC that can direct a flow of current in either direction from one pin to any one of sixteen pins.If you have any questions please leave them below or privately via the contact page. And if you made it this far check out my new book Arduino Workshop from No Starch Press.Pin 15 of the 4067 is set to GND, and control pins S0S3 are connected to Arduino digital output pins D7D4 respectively. Multiplexing This is where we select one input pin of sixteen and allow current to flow through to the common pin (1).The next item of interest is the ON resistance that is the resistance in Ohms between one of the sixteen inputs/outputs and the common pin. When a channel is active, and a 5V supply voltage, we measured a resistance of 56 without a load through.
Nothing) it shows what combination of HIGH and LOW for the control pins are required to select which I/O pin the current will flow through. If you scroll down a bit hopefully you noticed that the combination of S0S3 is in fact the binary equivalent.You can always control this with a digital output pin if required, or just tie it to GND if this doesnt matter. Next pin one. This is where the current either flows in to be sent to one of the sixteen outputs or where the.Another way to think abou it is that you can consider the 74HC4067 to be a digital replacement to those rotary switches that allow you to select one of sixteen positions.Limitations Apart from the power supply requirements, there are a few limitations to keep in mind. Open you data sheet and consider the DC Electrical Specifications table. The first two parameters show what the minimum voltage that can be considered as a HIGH and the.
Finally, dont try and run more than 25 mA of current through a pin. Examples Now to show an example of both multiplexing and demultiplexing. For demonstration purposes were using an Arduino Uno- compatible board with the 74HC4067 running from a 5V supply voltage.For example, to select pin 9 (9 in binary is 1001) you set the IC pins S0 and S3 to HIGH, and S1 and S2 to LOW. How you control those control pins is of course up to you either with some digital logic circuit.In this example we connect the common pin to the boards analog input pin so this can be used as a method of reading sixteen analog signals (one at a time) using only one ADC.When doing so take note of the limitations mentioned earlier take some resistance measurements in your situation to determine what the maximum value will be from your ADC and calibrate code accordingly.