I have a PIR sensor turning ON a camera (load A) when it detects movement, which then sends me an image through Wifi.
I would like to use the same output signal to turn ON a 10W LED (load B), but only during the night.
The circuit I attached isn't working but hopefully gives you an idea of what I'm trying to do. https://tinyurl.com/2bzf7ats
My thought process was:
1) the PIR output HIGH signal is 3.3V, current limited by its 1.5K resistor;
2) It currently is used to turn ON an n-mosfet, which turns ON the p-mosfet that allows power to the camera (this is working fine).
3) I would like to use the same trigger to turn ON the 10W LED, but only during the night. Therefore the n-mosfet through which the LED current passes should be open during the day. For this, a second n-mosfet would be used, with its gate voltage set by an LDR voltage divider.
Is there a better way to do this?
I would like to use the same output signal to turn ON a 10W LED (load B), but only during the night.
The circuit I attached isn't working but hopefully gives you an idea of what I'm trying to do. https://tinyurl.com/2bzf7ats
My thought process was:
1) the PIR output HIGH signal is 3.3V, current limited by its 1.5K resistor;
2) It currently is used to turn ON an n-mosfet, which turns ON the p-mosfet that allows power to the camera (this is working fine).
3) I would like to use the same trigger to turn ON the 10W LED, but only during the night. Therefore the n-mosfet through which the LED current passes should be open during the day. For this, a second n-mosfet would be used, with its gate voltage set by an LDR voltage divider.
Is there a better way to do this?

Last edited: