I have a nodemcu that needs to turn on periodically (every 2 hours) to take measurements, send them to me and then go back to sleep. I need this to be able to last for at least a year on batteries, and so I chose the TPL5110 for this use (and it works perfectly). I have a sim module that uses a lot of power and this is also hooked up to the tpl. Now I need to update the setup so that it can continually read from an accelerometer and wake up to take readings if the value reaches a certain threshold. Now I know that the tpl cannot do this, it's simply a timer, but I'm hoping someone knows of a way of doing it.
I've heard about the ATtiny, but I don't think it will work because
- my sketch is too intensive for it and
- I still need to be able to kill the sim module also.
Would it be possible to use the ATtiny as a kill switch, much in the same way a tpl works?