Originally Posted by
tonyfoale
Rick,
This is not a criticism because if something works, it works. However, there is an easier way for those less skilled with a soldering iron. That is by using an Arduino style micro. The Uno is only 10 bit IIRC but I think that the 3.3v versions are 12 bit as is the ESP32 which I now use. That means that you have an analogue input resolution of 3.3/4096 = 0.00081 v. Let's plan on the same 100 mA that you use, then for a change in resistance of 0.124 ohms we get a voltage change of 11 mV (for your 4 ohm limit) and 14 mV (at your 0.3 ohm limit) which is over 13 and 16 times the resolution. So a 12 bit ADC input is more than capable of detecting a 0.124 ohm change, even a 10 bit conversion would work but I'd prefer the extra safety margin of 12 bit. The code for the micro would only require a few lines.
Read value.
if detect change ->
start output pulse
fire led
wait pulse duration
end output pulse
kill led
repeat loop.
Bookmarks