Resistor Reader
krzy
Posts: 3
Hi
I'm new here and a beginner to programming and custom hardware.
Can anyone here recommend me hardware which can get a readout from multiple variable resistors (potentiometers) for a PC?
Will appreciate any help Thanks
I'm new here and a beginner to programming and custom hardware.
Can anyone here recommend me hardware which can get a readout from multiple variable resistors (potentiometers) for a PC?
Will appreciate any help Thanks
Comments
Jeff did a project with a Propeller which "speaks" the resistor's value.
Do you want the resistance displayed on a computer screen?
i'm looking to read a few resistors at once (like 10) and I want the values to be sent to computer via usb port and then I could get those values by writing a custom program.
edit:
I think the one in your link reads only 1
OBC
Thanks for a reply.
would that schematic work?
I thing using the ADC chips would be easier if you have 10 pots as the ADC chips can easily read 8 or less.
Algorithm:
1. Set pin to output
2. Set pin low
3. Reset time counter and wait a bit for the capacitor to discharge
4. Set pin to input
5. increment time counter
6. if pin reads low goto 5
7. when pin reads high stop
The time counter now represents the value of the resister.
The technique is:
1. quite accurate at reading resisters
2. takes only 1 pin (so 28 resisters could be measured with a Prop)
3. very simple algorithm
Duane J
Perhaps a small value resistor should be added at the pin, or in series with the capacitor to limit the current when the cap is discharged - the pins are rated for 40mA only remember. This then needs a correction in the formula to calculate the unknown resistance...
If the OP is about using a knob type input, then there are other options besides potentiometers.
Generally you don't need series pin protection resistors to discharge the capacitor as the capacitor is:
1. Fairly small
2. Discharged relatively infrequently
3. The pin has a series impedance of around 140 ohms as measured by others.
4. The 40mA limit is basically a static current limit which doesn't really apply when discharging small capacitors.
That being said, yes there should be a 150 ohm resister in series with the measured resister if it has the ability to go to zero.
Duane J
That's true if your trying to read RC circuits as fast as possible and use all 8 cogs.
However, if you don't mind doing it a bit slower and you want to do it with a single cog you can do all 28 pins sequentially. Usually fast enough for most things.
Duane J