Comment on Simple light-sensitive light switch?
nilclass@discuss.tchncs.de 6 months ago
It’s not completely stupid. One pissible issue: when the light level is around the threshold, slight variations (think: cloud passing by) will cause the relay to switch back and forth quickly. This can be solved with some additional parts (keyword: hysteresis).
I would recommend using a microcontroller, it makes this problem easy to solve, plus you can have more logic to trigger the lights (eg time based).
Another thing is turning off: if it’s purely based on light level, you need to make sure the sensor does not “see” any of the LED light, otherwise it thinks the sun is back up
leisesprecher@feddit.org 6 months ago
At least the last problem could probably be solved by simply a simple housing so the sensor “looks” outside - at least I hope so.
litchralee@sh.itjust.works 6 months ago
If you’re looking to do this project without a microcontroller – it’s an exercise that every SW engineer should consider doing at least once – then the venerable 555 timer may be of aid here:
elonics.org/light-sensor-circuit-using-ldr-555-ti…