Counting pulses, while the MM sleeps....


Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9118
Posted: 07:38am 01 Oct 2025      

binary counter and a monostable?

The pulses go into the counter, the outputs of which go to GPIO pins. The monostable is triggered from the same pulse input as the counter input. It's output triggers the MM on its falling edge. The monostable has to be set to allow just a bit longer than the maximum number of pulses.

The pulses start, the monostable output goes high. When the monostable output falls the MM wakes up and reads the count.

Two CMOS chips aren't going to be much of a battery load.

I think you are going to have to do something like this to make sure things stay in synch. You can't allow for the inaccuracy of the charger pulses being at 1s and the MM being at 5s as one of them is bound to drift even if it's accurate initially. The MM doesn't need to do anything with the count until it's official wake up period, just store it.
.
Edited 2025-10-01 17:44 by Mixtel90