M. Kibat
01-12-2006, 09:47 PM
Started sifting through and organizing a 'grab bag' of caps. Found a number with 'mystery markings', so I threw together a quick, simple circuit and program to read out RCTIME values to help ID them. Various resistor values (1k, 10k, 100k, 1m) are manually switched into the circuit, the program is reset and the RCTIME result displayed via debug. Nothing fancy here, but it's been useful.
What I'm wondering -- how best can I automate the switching process so the Stamp can autorange to find the best resistor value?
Looked at digital potentiometers, but they don't have the range of values or accuracy I need.
How about replacing the manual pushbutton switches currently attached to each reistor with a transitor switch? Each transistor would be controlled by a pin on the Stamp, so the program would simply poll each one, charging the cap, then turning on that resitors transistor to discharge it and measure RCTIME. The program would select the pin with the highest value returned and display that one.
Since this is a one-time project (I don't expect to run out of caps again anytime soon!) I don't want an over-engineered, highly accurate result. Just something quick-n-dirty.
Thoughts?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---------------------
M. Kibat
Bloomington, MN
kibatme@visi.com
What I'm wondering -- how best can I automate the switching process so the Stamp can autorange to find the best resistor value?
Looked at digital potentiometers, but they don't have the range of values or accuracy I need.
How about replacing the manual pushbutton switches currently attached to each reistor with a transitor switch? Each transistor would be controlled by a pin on the Stamp, so the program would simply poll each one, charging the cap, then turning on that resitors transistor to discharge it and measure RCTIME. The program would select the pin with the highest value returned and display that one.
Since this is a one-time project (I don't expect to run out of caps again anytime soon!) I don't want an over-engineered, highly accurate result. Just something quick-n-dirty.
Thoughts?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---------------------
M. Kibat
Bloomington, MN
kibatme@visi.com