2020-03-23 08:56 AM
We are making ultra low power device, which has function to read change of state on pin. For better understanding please refer the attached photo. Well, in Case 1 we get pulse on the pin as wheel is rotating and it's fine to read. But the problem is when magnet comes near the reed switch and wheel is in stop condition, the reed switch will remains in close condition as shown in case 2. Due to this current will source from the controller continuously through internal pull-up resistor and this will discharge the battery in couple of hours and device will stop functioning. Therefore, we want some solution which gives a single pulse on GPIO, in both case continues open or close reed switch.