Detecting and counting pulses while in deep sleep
Posted: Mon Aug 01, 2022 7:48 am
Hello, I'm trying to count incoming pulses with ESP32 and micropython.
The idea is to measure current rainfall and rain quantity. I don't have the hardware for the rain measurement at the moment, but a colleague made some adjustments to simulate it - a button that could be pressed manually. At the moment I'm able to detect when the button is pressed and what I would want to do next is to detect if the button (and how many times) is being pressed while the device has been in deep sleep. I'm not sure if it is possible at all and I would be thankful for some pointers on where and how to search for such a thing.
Please, keep in mind, that the hardware part of this whole project is not my strength and I'm just programming the device and learning about it on the go.
The idea is to measure current rainfall and rain quantity. I don't have the hardware for the rain measurement at the moment, but a colleague made some adjustments to simulate it - a button that could be pressed manually. At the moment I'm able to detect when the button is pressed and what I would want to do next is to detect if the button (and how many times) is being pressed while the device has been in deep sleep. I'm not sure if it is possible at all and I would be thankful for some pointers on where and how to search for such a thing.
Please, keep in mind, that the hardware part of this whole project is not my strength and I'm just programming the device and learning about it on the go.