Hello everyone,
I am using an Arduino Mega and I am not able to find proper documentation of how do I code for a 16 Channel multiplexer (DG506A). Can someone help with a sample code to get inputs into the Arduino from 8 inputs.
The documentation of the multiplexer is in the link provided below :
https://datasheets.maximintegrated.com/en/ds/DG506A-DG507A.pdf
Thanks!!
Google for Arduino code for the CD4067 mux, it will not be very different so you can easily adapt it.
Multiplexers are often misused in circuits, so may I ask what you are using it for?
I am using a multiplexer for the purpose of doing Electrical Impedance Tomography. I will use it to change the source of the current from one electrode to another
Okay. I suppose you know about biasing it, right? Because you can only switch voltages between 0V and VCC with such an IC... ooh, and what current? Because, the current handling is limited too.
I am currently experimenting with what amount of current will be sufficient will mostly vary from 0.2 mA to 1 A
Yeah, I think 1A would be too much for that IC. What would happen, the internal resistance would be in series with your load, so the output voltage would drop. It might "work" but the accuracy would diminish radically. Or, it might overheat and die.
Absolute Maximums:
Current, Any Terminal Except S or D .................................30mA
Continuous Current, S or D ................................................20mA
or the I/O pin might blow
Yeah will probably have to buy a new one. Beacuse the one used in the research paper that I am following used another IC but it was out of stock so had to buy the most similar one as most of these IC were out of stock. I will try following your steps. Do you have any recommendation for an IC which can handle like 1A AC current at about 7.5 kHz?
I don't think it exists. Since you mention AC, I have to ask you again, how are you biasing it?
I am biasing it using a Constant DC source at 8 V
What is the power supply voltage?
Currently keeping it at 12 VDC
Hmmm. This IC is not what I thought. It seems to support a bipolar supply with logic signals referenced to a common ground. So your bias should be zero, and you should have + and - supplies connected as shown in the example circuit in the data sheet. Figure 2a, 2b, 3.
Please post a schematic.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.