Thanks to both of you for your responses! I think I had just figured out the cause of my problem right about the time you were posting them, but needed to continue refining and testing my code before replying.
What’s working now is:
- In the sensor’s setup() function, set trigger pin to an output
- at powerUp(), set pin HIGH
- at wake(), run the wiper (set pin LOW, wait 50ms, set pin HIGH)
- at powerDown(), set pin LOW
The wiper cycles as expected and sleep current is <0.7mA. The only exception seems to be that when the Mayfly wakes up at the first measurement cycle (not at startup), the wiper doesn’t run as expected. At all subsequent measurement cycles that I’ve watched, the wiper cycles properly.
@srgdamiano Sara, which of the following functions would you recommend as a best practice for where to change the pin value described above, at powerUp and powerDown, or at wake and sleep?
@neilh20 That’s funny on the FTDI cable (well, funny in hindsight) – ouch! 🙂