Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Measuring resistance value by using pic controller

Status
Not open for further replies.

venkates2218

Full Member level 6
Joined
Sep 30, 2016
Messages
354
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
4,306
hai friends,I like to read the resistance value by using the pic controller.
I used the voltage divider and I can get the resistance values also.But when I tired to find the low values like "1 OHM" like means it can't showing the values.
I need to calculate "resistance in OHM value" also.
How to measure the resistance values in OHM by using pic controller..?
 

Measuring very low resistances in a voltage divider is very difficult unless you consume large currents. A better method is to feed current from a pin through the resistor and then a capacitor to ground. You can monitor the voltage across the capacitor to see how fast it charges and from that calculate the resistance.

Alternatively, you can use a fixed current source and amplify the small voltage dropped across the resistor. If you do that, I suggest you use a four-wire measurement to get better accuracy. To do this, feed the current through two wires to the resistor and measure the voltage across the other two wires, it eliminates the voltage dropped in the wiring which might be quite high compared to the value you try to measure.

Brian.
 

Hi,

You can't measure Ohms directly.
Either you measure V and I and calculate R according Ohm's law
Or you use one known resistor and connect them in series with the DUT, and measure both voltages...then you can calculate the resistance value according voltage ratio.

BUT the very first you have to do is to decide what
* resistance range you want to measure
* and what resolution you need.

Assuming you have a 10 bit ADC...then this gives 1024 steps of resolution.
As a raw rule you can calculate 1024 equal steps of resistance.
Some examples:
* 1 Ohm ... 1024 Ohm with a stepsize of 1 Ohm. --> you can't measure resistance between 1 and 2 Ohms, like 1.6 Ohms
* 0.1 Ohm ... 102.4 Ohm with stepsize of 0.1 Ohms
* 100 ohms ... 100.000 Ohns with stepsize of 100 Ohms
And so on.

If you need higherrange or better resolution..
* you may use a higher resolution ADC
* or switch ranges with an analog switch, maybe with the use of an Opamp

For sure there are options to optimize on some parameters.

So ... what's the range an resolution?

Klaus
 

Given that you are using a microcontroller to do this job ( instead of a dedicated IC, eg. ICL7106 ), you could also consider implementing an auto-range feature, which consists of changing the full scale through analog keys or MOSFETs that would add parallel resistances to the low side part of the resistive divider as the measure lies above or below determined threshold.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top