Counting pulses, while the MM sleeps....


Author Message
Volhout

Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 6107
Posted: 07:06am 30 Sep 2025      

Hi Grogster,

You can also connect G+ to pin 16 of the MM2. Then you wake up every time a new sequence of pulses starts at the first edge of the first pulse, count the pulses and go back to sleep. The housekeeping you do every 5 seconds or so, would then be triggered by 1 in every so many wakeups from pulse counting.

(you can't sleep with a XX seconds AND also sleep with wake up, since MMBasic prevents that).

Volhout
Edited 2025-09-30 17:18 by Volhout