hallard / Mini-LoRa

Arduino Mini Lora Battery/Sensors Board
175 stars 38 forks source link

TPL5110 - Wake pin #2

Closed ricaun closed 6 years ago

ricaun commented 6 years ago

I realy like the ideia to use TPL5110 to manager a wakeup timer.

But I don't understand why you put the DRVN of TPL5110 on A2 pin...

Maybe change to pin D3 how haves external interrupt, this way is possible to put the arduino on SLEEP_FOREVER and TPL5110 will wakeup. And put the button to D4.

hallard commented 6 years ago

this is because D3 is already used by the push button and needed to keep compatibility with old boards. Anyway it's not a problem I'm using sleep forever waked by pin change interrupt on A2 it's working fine

ricaun commented 6 years ago

Nice!! I didn't know that pin change interrupts can wake up the arduino, That's awesome, I need to try some codes.