TinyZero + GPS Sleep w/ RTC

E102Gamma

  • Newbie
  • *
    • Posts: 1
    • View Profile
Hello,


I have recently been trying to work out a way to sleep to conserve battery in-between GPS logs to the SD shield but find when I use the RTCZero sleep function that the device sleeps and never wakes. The wake is being fired as an alarm interrupt but I can’t seem to get it to wake. Has anyone encountered this issue before? If so… does anyone have a working example? For context I am using the TinyGPSPlus library to parse the GPS data and have my SD CS pin set to pin 10.

For the RTC wake I am trying to log in intervals of 15 seconds and sleep between cycles. The GPS is connected via SoftwareSerial as the TinCircuits example provided.

Any insight would be greatly appreciated!


williambruno

  • Newbie
  • *
    • Posts: 1
    • View Profile
Quote
Hello,


I have recently been trying to work out a way to sleep to conserve battery in-between GPS logs to the SD shield but find when I use the RTCZero sleep function that the device sleeps and never wakes. The wake is being fired as an alarm interrupt but I can’t seem to get it to wake. Has anyone encountered this issue before? If so… does anyone have a working example? For context I am using the TinyGPSPlus library to parse the GPS data and have my SD CS pin set to pin 10. merge fruit

For the RTC wake I am trying to log in intervals of 15 seconds and sleep between cycles. The GPS is connected via SoftwareSerial as the TinCircuits example provided.

Any insight would be greatly appreciated!
I think you should check if you have configured the RTCZero library correctly to trigger an interrupt and wake up the device. You should set the alarm time and enable the alarm interrupt
« Last Edit: May 30, 2024, 11:05:01 PM by williambruno »


 

SMF spam blocked by CleanTalk