Hello!
(Again) I have to measure a low frequency signal using a digital input. I did it with Arduino before, no I have to do it using a RaspberryPi. I know I can use almost the same circuit or even create one my self. But I want to fully understand the circuit I've used before:
C1 is the input for the analog signal (usually a sine). The second inverter is connected to a digital input. Where time between high and low leves ar counter for measuring frequency.
As far as I know this transistor Q1 is working in Cut-Off & Saturation mode. When input signal goes above Vbe cut-in voltage, first inverter input is pulled low. When Vbe is less than cut-in voltage, inverter is pulled up by R3.
I think I'm right in the previous reasoning. But yet I have some doubts like:
(Again) I have to measure a low frequency signal using a digital input. I did it with Arduino before, no I have to do it using a RaspberryPi. I know I can use almost the same circuit or even create one my self. But I want to fully understand the circuit I've used before:
C1 is the input for the analog signal (usually a sine). The second inverter is connected to a digital input. Where time between high and low leves ar counter for measuring frequency.
As far as I know this transistor Q1 is working in Cut-Off & Saturation mode. When input signal goes above Vbe cut-in voltage, first inverter input is pulled low. When Vbe is less than cut-in voltage, inverter is pulled up by R3.
I think I'm right in the previous reasoning. But yet I have some doubts like:
- I replaced R3 which was about 4.7kΩ for a preset in order to adjust input sensibility. I did it by trial-and-error and I don't know how does it work.
- What's the purpose of R2?
- Do R1 and C2 work as a low pass filter?
- Can I change VDD from 5V to 3.3V? (I guess I can, but just in case)