Support Forum
or

Resistance measurement and stacking breakout literature?

The ADC Pi is an Analogue to Digital converter for the Raspberry Pi

2386 Views - Created 19/05/2016

19/05/2016

Posted by:
monitoringuser

19/05/2016

Posted by:
andrew

Hi

Based on the problem you have described an ADC Differential Pi may be a better option for measuring resistance. The ADC Differential Pi is basically the same circuit as the ADC Pi Plus but with the voltage dividers removed so it has a voltage range of -2.048V to +2.048V instead of the 0-5V on the ADC Pi Plus. For measuring resistance this would give you a better resolution at lower voltages and also has a higher input impedance which will improve accuracy.

To communicate with the ADC Differential Pi we have software libraries available in Python and C. In python to set up communication with an ADC Differential Pi, you create an instance of the board and set the two I2C addresses that have been preset using the jumpers using the line plus the bit rate you want to board to sample with.

If you want to communicate with more than one board you just need to create separate instances of the adc object for each board.

The read voltage demo in the python library folder shows how to set up the ADC Differential Pi and read a voltage.

To measure resistance you will need to convert that resistance into a voltage for the ADC input. The easiest way to do that will be to use a constant current source to supply a fixed current to the resistor and then measure the voltage across the resistor. You can use ohms law to calculate the resistance based on the current source and the voltage. As you have a wide range of resistances from 0.2R to 100K that complicates the circuit a bit. To get an accurate reading across the full resistance range you will need several different current source values and possibly use OpAmps to change the voltage gain before feeding it into the ADC inputs. There is quite a bit of information on google if you search for "measuring resistance using adc" so it may be worth looking around and seeing if someone else has already built a circuit you can copy.

20/05/2016

Posted by:
monitoringuser

Yep, that clears up quite a bit. Thanks a bunch. If it works well I'll try to get a project up for anyone else interested.

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.