Do not power constantly

I have a sensor whose schematic says "do not power constantly."

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?


  • 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.