Hi guys, I'm currently making a capacitance sensing device that displays the result on an lcd screen.
The circuit uses a MOSFET which is controlled by the Arduino when the Arduino output 1 is set to high the MOSFET is closed a 0V.
When the Arduino output 1 is set to low it starts timing and 5v is applied to the MOSFET opening it, allowing the unknown cap to begin to charge.
When the voltage across the capacitance reaches the voltage dividers Reference point (2.5v) the output of the comparator goes high.
Arduino detects the high output from the comparator on Output 2 and using the hardware interrupt command and stops the timer.
Using the timer taken the unknown capacitance can be found.
My question is will this circuit work? I'm not too sure about the MOSFET I've used.