Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4638
    Dean
    Participant

    I get the following error when I try to compile a sketch using LowPower.h:

    Arduino: 1.6.7 (Windows 7), Board: “Arduino/Genuino Zero (Native USB Port)”

    C:\Users\Dean\Dropbox\DigitalHiveSystem\BeeCounterSend_RSUltra_Sleepv1_1\BeeCounterSend_RSUltra_Sleepv1_1.ino: In function ‘void gotoSleep(uint8_t)’:

    BeeCounterSend_RSUltra_Sleepv1_1:155: error: ‘class LowPowerClass’ has no member named ‘powerDown’

    LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);

    ^

    exit status 1
    ‘class LowPowerClass’ has no member named ‘powerDown’

    Invalid library found in C:\Users\Dean\Documents\Arduino\libraries\avr-libc-master: C:\Users\Dean\Documents\Arduino\libraries\avr-libc-master

    This report would have more information with
    “Show verbose output during compilation”
    enabled in File > Preferences.

    #4642
    LIM PHANG MOH
    Keymaster

    Hi Dean,

    On Arduino Zero, only the standby function is currently supported.
    But, you can use the RTC (using the RTCZero library) functionality to wake the processor up to any period of time according to your need but in seconds resolution.

    #4654
    Dean
    Participant

    I tried the following:

    LowPower.powerStandby(SLEEP_8S, ADC_OFF, BOD_OFF);

    and got the same result. So, I am a bit confused at this point. Could you provide some example code for how you can put this to sleep. The description of the Mini Ultra Pro says: “works great with our updated Arduino compatible low power library to allow flexible low power management of the board.” That’s what I am trying to do but keep running into difficulties.

    Thanks.

    #4655
    Dean
    Participant

    Even when I just use LowPower.standby() I get the following error:

    Arduino: 1.6.7 (Windows 7), Board: “Arduino/Genuino Zero (Native USB Port)”

    sketch\BeeCounterSend_RSUltra_Sleepv1_1.ino.cpp.o: In function `gotoSleep(unsigned char)’:

    C:\Users\Dean\Dropbox\DigitalHiveSystem\BeeCounterSend_RSUltra_Sleepv1_1/BeeCounterSend_RSUltra_Sleepv1_1.ino:155: undefined reference to `LowPowerClass::standby()’

    C:\Users\Dean\Dropbox\DigitalHiveSystem\BeeCounterSend_RSUltra_Sleepv1_1/BeeCounterSend_RSUltra_Sleepv1_1.ino:161: undefined reference to `LowPower’

    collect2.exe: error: ld returned 1 exit status

    exit status 1
    Error compiling.

    #4665
    LIM PHANG MOH
    Keymaster

    Hi Dean,

    Looks like either your library is not installed properly or missing.
    Please post your code here using the code tags.

    #4671
    LIM PHANG MOH
    Keymaster

    Hi Dean,

    I was originally planning to do something like this:

    // Put the Beecvr to sleep. Enters the RSUltra into sleep mode.
    void gotoSleep (uint8_t dur) {
    uint16_t counter = 0;
    uint16_t sleepCount;

    // put the Beecounter to sleep
    digitalWrite(pwrPin, LOW); // cut power to the Beecounter
    digitalWrite(ploadPin, LOW); // as well as the pload pin on the Beecounter

    // put the XBee to sleep
    pinMode(xbee_sleeprq_pin, INPUT); // use internal pullup to pull pin to 3.3V

    // put the RSUltra to sleep
    sleepCount = hourWDTinterval * dur;
    while(counter < sleepCount) { // enter powerDown mode LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF); // iterate the counter counter++; } wakeup(); }

    Okay, that code will only work with AVR based Arduino. You can either use the :

    • LowPower library together with an external RTC module to wake up perioidcally through attachInterrupt().
    • RTCZero library without LowPower library (the RTCZero library has a simple function to put into standby mode). The built-in RTC in the Mini Ultra Pro board can be used to wake up the processor with any desired period of time as it has calendar support. You can try to work from this example.

    Please let me know if you have any questions.

    I’m sorry if the response was slow for the past few days, I was away on an emergency.

    • This reply was modified 7 years, 11 months ago by LIM PHANG MOH.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.