TinyScreen+ Sleep Mode Question

Started by jgavlik, January 21, 2023, 01:57:53 PM

Previous topic - Next topic

jgavlik

****
Sr. Member
Posts: 68
Logged
Can the TinyScreen+ board be woken up by an external accelerometer signal (interrupt, I suppose) instead of one of the push buttons as this link suggests  ... https://tinycircuits.com/blogs/learn/tinyscreen-external-interrupt-sleep-mode?_pos=1&_sid=7de2a5d9b&_ss=r

That is, without any hardware changes...just software.

Thanks,
-john

lennevia

Administrator
*****
Hero Member
Posts: 437
Logged
Hello John,

Depending on how your accelerometer functions, you may be able to detect a pulse on one of its pins and use that to trigger the interrupt.

Here's the documentation on the attachInterrupt function: https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/
And some helpful hints specific to using an accelerometer in this Arduino forum post: https://forum.arduino.cc/t/configuring-interrupt-on-accelerometer-lis331hh/174168/3

Cheers,
Réna

jgavlik

****
Sr. Member
Posts: 68
Logged
Réna,

Thanks for your quick reply.

Now to a related question....

Can one get a hold of some sort of RTC (Real Time Clock) interrupt software to 'wake up' the processor. - I'm thinking of once each second.   This solution would suit many applications and peripheral types that only use the I2C bus.

Thanks again,

-john


jgavlik

****
Sr. Member
Posts: 68
Logged
Looks like it....let me check it out further...if it, indeed is, consider offering it to all of those of us who would like to reduce the power consumption of this processor.

Thanks again....
-john

alijen

*
Newbie
Posts: 0
Logged
This solution would suit many applications and peripheral types that only use the I2C bus.

SMF spam blocked by CleanTalk