PSoC-Dark sensor. | Cypress Semiconductor
I am making a dark detector sensor on PSoC3. I am new to PSoC programing, so I need a little bit of help.
If you look at my Topdesign (The attached file), I am using a transimpedans amplifier ( To convert current flow from my photo diode ( SFH213) ) and further more I am using a comparator to compare two voltages. I want to make it so that, when it is dark (no or little current flow), the comparator output should be high, then I want to run an interrupts which should sets a pin high. And when it is low, I want to run an interrupts which sets the same pin low.
When there is light the positive terminal end of comparator is around 2V.
Negative terminal end of the comparator is 1V.
Thank you in advance.