The following circuit was designed for me by John...
--------------------------------------------------
So, your final circuit comes out looking like this:
+5>---+-------------+ | | [68k] [LDR] +---[1M]--+ | | | | | +----+---|+\\ | | | | >--+---->OUT [100K]--+-------------+--------------+---->GNDI've added a little hysteresis to keep the output from chattering as the + input goes through the trigger point, and also used a high-efficiency LED to allow more output current from the opamp into whatever OUT is feeding.
-------------------------------------------
I now need to invert the output - is this something I can do with the existing components, or will I have to add an addtional invertor to the output?
Any help greatly appreciated.
Dave