Low power transistors Schmitt Trigger for your sensor

Ian0

Joined Aug 7, 2020
13,097
1Meg reference voltage divider vs 10k for an IC like the LM393 is the trade off though :)
No-one else mentioned the LM393. It could be a TLC3702, which has 5pA input bias currents and push-pull outputs so it doesn't need a pull-up.
 
Top