What is a simple way to measure resistance (in this case 0-100 kOhm) using micro-controller (I'm using STM32, it has 12-bit ADC, timer, but no comparator). I want it simple (not too many components) and cheap.
The first idea I had was to use ADC with voltage divider. However it brings down the problem to measuring voltage across known resistor what is hyperbolically dependent on the measured resistance, so actual precision varies greatly over the range of values of unknown resistor. It also requires the known resistor to be much smaller value than known one, but this should be fine if big precision is not required.
- Range: 0-100 kOhm
- Precision: at least 1 kOhm, preferred <100 Ohm, but actually I am curious (thinking about - other possible applications which might require better precision) how high (with precision) we can get without making too complicated circuits.