Hi. I'm playing with a flex sensor, wich is basically a variable resistor. In the range Im using it, it produces resistances between 6K (min) and 7K (max) ohms. I'm using another resistor of 4,7K and reading the flex sensor with Arduino ADC between the flex sensor and the resistor.
Problem is that i'm loosing lot of resolution using this approach, because the basic flex sensor resistance starts at 6K.
Wich is the best solution to compensate this, in order to get on the adc pin 0 ~ 5 volts with the variable resistor moving between 6K and 7K ohms?
I would say you use a pull-up resistor to get the resolution you need. I'm not sure if 4.7kOhm is the right resistor for this. The value of the pull-up resistor will depend on your setup. I know it is a trial and error method, but you'll get good results.
I was just thinking that with only a 1µF capacitor to create an RC circuit, the time constant would vary from 6000µs to 7000µs, the difference being 1000µs. The analog comparator could be used to generate an interrupt that allows you to measure this time difference.