Using a pot to simulate the LDR and with an LED on the output, I can make it jitter with no feedback, 1M feedback, but not with 100k feedback. Not very scientific, but I think 100k is ok.Once it is working, all you need to do is add a small touch of positive feedback to add hysteresis to the complete system so it doesn't toggle on/off when the light is on the borderline of the setting.
Link with info on why it is a good thing
Be sure that one end of the 100k is between the 1k and the gate, and the other end of the 100k goes to ground.you know what looking at it now..I have the 1K on the output of the 741 to the MOSFET Gate And looking at the 100K on pin 6 to ground but not on the gate of the MOSFET. If that makes any sense.
I think the MOSFET will switch fine at 10 V. Remember that you have the MOSFET switching ground, so the source will always measure 0V, and the drain will measure 0V when the MOSFET is on. What is your power supply and what is its actual voltage? If it's 12.0 V, the high output on pin 6 should be a little less than 11 V and the low output about 1.3 V. Can you see the voltage change on pin 6?Still not working! The MOSFET is showing 12 V on the gate but the Drain and source are all 0V.. I think the specs for the MOSFET needs something like 15V to turn on.. not 100% sure right now
*edit did not see your above post will check again
I think the MOSFET will switch fine at 10 V. Remember that you have the MOSFET switching ground, so the source will always measure 0V, and the drain will measure 0V when the MOSFET is on. What is your power supply and what is its actual voltage? If it's 12.0 V, the high output on pin 6 should be a little less than 11 V and the low output about 1.3 V. Can you see the voltage change on pin 6?
The pot does not control the LDR; the LDR's resistance depends only on whether or not it is being lit. When the LDR is in the dark, its resistance is very high; when the LDR is being lit, its resistance is much lower.edit see another mistake I'm sure of it.. the LDR for some reason I don't think in it's current state the pot is controlling it.
Depending upon the actual resistance values of the LDR you are using and the light conditions, you may have to change the value of R1 (on the schematic I posted.) Try it as 1k, 10k, 100k, and 1M and see which works best. Ideally, VR1 would be close to its midpoint at the switching point.took everything apart and going to stick it on the bread board to see what's the issue.
Depending upon the actual resistance values of the LDR you are using and the light conditions, you may have to change the value of R1 (on the schematic I posted.) Try it as 1k, 10k, 100k, and 1M and see which works best. Ideally, VR1 would be close to its midpoint at the switching point.
A couple of photos of my working breadboard are attached for whatever help they may be. The red LED indicates there is power to the breadboard. The yellow LED is on the op-amp output. The white LED is on the MOSFET's output. Note that I found that 1k was the optimum value for R1 with the LDR and the lighting conditions I am using. However, the circuit worked with a 100k for R1, but required that VR1 be at the very end of its range.
That's too bad considering the LM741 is perfect for the job and the circuit provided is working flawlessly for me. Good luck.A little update I switched to a LM339 the 741 was just not working out for me..