Hi guys,
As mentioned before (in other topics) im using a teensy 3.2 with an SX1267 LoRa chip. Got everything working (almost) perfectly. Now I put it in hibernate (duff snooze library) mode and my device wakes up every 15minutes to send a massage. Teensy uses 50uA in hibernate mode, but the total device still uses 1.80mA.
After some testing I found out it's the clock of my SPI connection, when I disconnect the SCK (I use pin 13) + ground of the SX1276 the current drops to 50uA again. I tried cutting off the SPI before going to sleep but without succes. What have I done wrong Code I tried:
As mentioned before (in other topics) im using a teensy 3.2 with an SX1267 LoRa chip. Got everything working (almost) perfectly. Now I put it in hibernate (duff snooze library) mode and my device wakes up every 15minutes to send a massage. Teensy uses 50uA in hibernate mode, but the total device still uses 1.80mA.
After some testing I found out it's the clock of my SPI connection, when I disconnect the SCK (I use pin 13) + ground of the SX1276 the current drops to 50uA again. I tried cutting off the SPI before going to sleep but without succes. What have I done wrong Code I tried:
Code:
LMIC_shutdown();
SPI.endTransaction();
SPI.end(); // shutdown the SPI interface
pinMode(13, INPUT);
digitalWrite(13, LOW); // shut off pullup resistor