Advice on waking up the LoPy4
-
I'm building a device that will have a button that activates the LoPy to send a short LoRa transmission. The device must run on non-rechargeable, inexpensive battery for at least a couple of years. The button will only be pushed under unusual emergency circumstances, which means probably never. The device will have to wake up every hour to send a transmission signifying it is still working. So the battery will be expended by these hourly transmissions, not by the pushbutton. I want the system to go into ultra-low-power mode when it's not transmitting. What's the best approach to this? I've heard that maybe a real time clock can do the hourly wakeup, and that the pushbutton could apply Vcc to an interrupt to wakeup the device as well. Is this the case? Thanks.
-
On the LoPy 4, you can just use
machine.pin_deepsleep_wakeup()andmachine.deepsleep()to achieve exactly that.Not sure you can really last a couple of years like that though. Also you need a battery capable of delivering the current spike required during boot, and need to take into account battery self-discharge. Settings of the LoRaWAN network can also adversely affect how long the battery will last.
-
@jcaron Ok thanks, appreciate the response and will keep all this in mind. Might reduce the frequency of the call-in's to once a day which of course would decrease power consumption appreciably.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login