Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Trouble understanding how the library works. #4669
    Dean
    Participant

    My sketch won’t compile using LowPower.powerDown. The response I got from RocketScream was this was not supported on the Ultra Mini. Apparently the only power saving mode supported is standby()…which does compile. However, it is not clear to me how to use this function.

    It would be great if RS provided some code on specifically how to put the Ultra Mini asleep for a period of time and then wake it up.

    in reply to: Trouble understanding how the library works. #4667
    Dean
    Participant

    So I deleted the Low-Power-master folder and put it back in the Arduino libraries folder. It now compiles with standby().

    However, it is not clear how you use the standby() function…how do I get it out of standby?

    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();
    }

    in reply to: Trouble understanding how the library works. #4666
    Dean
    Participant

    I’m really confused now. In a previous post you said that the only mode currently supported is the standby() function. The powerDownWakePeriodic example uses: LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);

    which I believe you said won’t work the mini ultra?

    in reply to: Trouble understanding how the library works. #4661
    Dean
    Participant

    I am having similar problems.

    in reply to: No member named 'powerDown' #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.

    in reply to: No member named 'powerDown' #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.

Viewing 6 posts - 1 through 6 (of 6 total)