Electronic – How to measure the current drawn by a soil hygrometer

current measurementpicsensor

I have one of these ubiquitous soil moisture sensors:

sensor

The only information I can find is that it operates from 3.3V to 5V, uses an LM393 to trigger a digital output and also exposes an analogue reading.

I'm intending to hook it up to a low power PIC (actually a PIC16LF1554 ) and want everything to remain sleeping until I periodically read the sensor from the analogue output. So, I'll power the sensor, take a reading through ADC and the power it off again.

Trying to keep everything as small as possible, with minimum components, I'm considering powering the sensor from a spare PIC pin, which I know will source/sink 25mA maximum. So I'll just drive the pin high to power up, take a reading then drive the pin low again.

How can I find out what current the sensor assembly will draw so I don't risk overloading the PIC pin? If I hook my (cheap) DMM in series with the sensor when powered from 3.3V standalone, the power LED on the sensor doesn't light up and the meter shows zeroes on the lowest range (2000uA). So I can't tell what it draws when it's working normally.

Do I need a better DMM or is there some other way I can see if I need to power this via a transistor (or some other way)?

Best Answer

The best way to know what the current draw can be is to consult the datasheet. If that is not available, and this is for production, go get something that does have a datasheet.

You can also just measure the current. However, keep in mind that only tells you what that unit draws on that day at that temperature.

However, looking at the bigger picture, what's the point of embedding someone else's unit into yours? The circuit for a moisture meter is very simple, and is probably easier to incorporate into your own product than to try to embed someone else's. Also, there are a lot of bad ways to try to measure resistance between electrodes. Something that doesn't come with a datasheet doesn't inspire confidence that someone that actually knew what they were doing designed the unit. Since it appears to be just a simple analog circuit, it is quite unlikely to be using a good technique.

The best method pretty much requires a microcontroller doing a 4-phase measurement. I discuss it in the context of detecting water, but the principle is the same. See https://electronics.stackexchange.com/a/33938/4512, https://electronics.stackexchange.com/a/103330/4512, and https://electronics.stackexchange.com/a/28485/4512.