In short, I'm looking to power an EC-5 soil moisture sensor (Decagon Devices) on an Arduino (e.g., Uno or Mega). I've been looking into how to produce excitation voltage (10 ms excitation between 2.5 to 3.3 V at 10 mA). 

At first, I tried using the 5V digital pin (set to output) and used a voltage divider to get the desired voltage and current. I ended up with unexpected and inconsistent readings (due to slow leak of voltage from the digital pin?). Now I'm trying PNP and NPN transistors, but I'm not sure how the circuit should look or the logic (code) for the sensor excite and read. Do you read during (at the end of) excitation or some time after excitation? Thanks for any assistance.

More Tyler W Davis's questions See All
Similar questions and discussions