Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7475
    kalon33
    Participant

    Hi,

    I’ve a Seeeduino LoRaWAN based on ATSAMD21G18 processor, and would like to power down it (or deep sleep it) for 5mins, then wake it up, and power down it again… for weather station and reporting use. I don’t have any external module to wake it up currently.

    Is this possible with Low-power library? How can I do that?

    Thanks for your help.

    #7534
    LIM PHANG MOH
    Keymaster

    Hi,
    Take a look at our guide here. You don’t have to use our low power library for that as the RTCZero library has a function call to put it into standby mode (lowest deep sleep mode).
    Or you can take a look at our TTN guide.

    #7567
    kalon33
    Participant

    @sparky: Does that also work on Seeeduino LoRaWAN (that has ATSAMD21G18A microcontroller)? How?

    Thanks for your help

    #7575
    LIM PHANG MOH
    Keymaster

    I don’t think it’s hard to use the same code base for the Seeduino LoRaWAN. It’s basically replacing the LMIC portion (SPI based) with the RHF76-052AM portion (UART based). I have never use that RHF76-052AM module, so I’m not sure.

    #10470
    tzeeth
    Participant

    Hi I am reviving this post for asking what part of my code is bad because it doesn’t work.
    I am using

    const uint8_t seconds = 0;
    const uint8_t minutes = 00;
    const uint8_t hours = 10;
    const uint8_t day = 20;
    const uint8_t month = 2;
    const uint8_t year = 17;
    void setup 
    rtc.begin();
      rtc.setTime(hours, minutes, seconds);
      rtc.setDate(day, month, year);
      rtc.setAlarmMinutes(1);
      rtc.enableAlarm(rtc.MATCH_SS);
      rtc.attachInterrupt(alarmMatch);
      USBDevice.detach();
      rtc.standbyMode();
    
    void loop
    
    rtc.begin();
      rtc.setTime(hours, minutes, seconds);
      rtc.setDate(day, month, year);
      rtc.setAlarmMinutes(1);
      rtc.enableAlarm(rtc.MATCH_SS);
      rtc.attachInterrupt(alarmMatch);
      USBDevice.detach();
      rtc.standbyMode();
    

    My Arduino is MKR1400 GSM and I want to be able to send some sensors reading and then sleep for 10 hours, waking up send again and sleep in a cycle.
    Thanks for you effort and your good libraries.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.