Do not power constantly

I have a sensor whose schematic says "do not power constantly."
https://cdn.sparkfun.com/datasheets/Sensors/Biometric/SparkFun_Soil_Moisture_Sensor.pdf

Is there a way to only power it on say every minute, take a reading, then power it off? Could I use a digital pin for that?

Answers

  • Answer ✓

    Yep, just make it a digital output pin and toggle on and off as needed.

    Then you can use the setInterval function or Pins.repeat (which is implemented using setInterval) to make calls to your BLL(s) at a regular interval.

  • Perfect, thanks Lizzie.

Sign In or Register to comment.