I'm using an Arduino Due board to connect with an ADG715 analog switch using the I2C protocol. In ADG715 , 1st and 2nd channels connect with 4 resistors. For the output , I need the resistor value of what I'm connecting in both channels. Can check my code and tell how to solve it?.
the adg715 is 8 analog switches. when one of its switches are enabled, it will pass the voltage from the pin on one side of a switch to the pin on the other side of the switch
how do you expect to measure the resistor value? are you measuring the voltage across it knowing the current passing through it?
looks like the code is reading the switch position, whether the switch enabled or not, 0/1. the other side of the switch needs to be connected to an analog input in order to read the voltage through the switch
Yeah, you are right. I'm not measuring voltage or current. But what I need to be is totally 8 resistors are connected in each switches of adg715. Can possible to get resistor values?
don't understand why you haven't explained the circuit, how it is connected, what you expect to measure, how you expect to measure it and how you expect to compute the resistance
don't understand how you expect to measure resistance with such a circuit
you could put a known and unknown resistor in series, connect one end to ground, the other end to a known references voltage, the common point to an ADC to measure the voltage and compute the unknown resistance value from the voltage
The max on resistance of the ADG715 is 4.5 ohms.
If you are trying to measure the resistance of an RTD100 your error could be as high as 4.5%!
Is that good enough?