Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Reply To: XBee Networks of Mayfly Loggers – 900Mhz

Home Forums Mayfly Data Logger XBee Networks of Mayfly Loggers – 900Mhz Reply To: XBee Networks of Mayfly Loggers – 900Mhz

#12917
Sara Damiano
Moderator

    @jkirchoff – drive the pin level with the digitalWrite(#, level) function.

    If you’re using a Mayfly, the XBee’s sleep request pin is attached to the Mayfly pin 23. So to wake the bee, send data, and put it to sleep all you needs is:
    digitalWrite(23, HIGH);
    Serial1.print(“some text);
    // more print statements as desired
    digitalWrite(23, LOW);

    Use XCTU to set your XBee up to use pin sleep. That’s also (by far) the easiest way to test your other radio settings and connectivity before deploying. You could code all the radio setup with the Mayfly, but Digi’s program makes it much, much easier.