You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yes, that's a good idea. For maximum power saving, actually turn the pin into an input with digitalRead(powerPin) to turn it off (then you're not using power pulling it down to 0).

    However I'd look at the datasheet for the device to make sure. Some of them can be put into low power modes using software, so you could save a bit of wiring :)

    Just so you know - setDeepSleep actually only sets a flag that says "go to deep sleep when possible". You don't actually need setDeepSleep(0); and setDeepSleep(1); - you just need to call setDeepSleep(1); once, at some point in your code :)

About

Avatar for Gordon @Gordon started