1-Wire Twilight Sensor
The object of this project is to add a twilight sensor, so that our Home Control System (HCS) can know whether it is dark or light outside. This information can then be used to decide when to open or close curtains and to decide if security lights need to be enabled. Although this is currently linked to our 1-Wire input board, it could equally be used with our our generic optically-isolated input board or any other circuit that using switched voltages.
Design
|
I've looked several ways to achieve this function but, decided to use a pre-built module from Maplin to provide the basic functionality. The module is a Kemo M122 and it is has a low current relay within it.
The unit is mounted on the side of my house under the roofline and is north facing.
|
It looks like Maplin no longer sell the Kemo M122 module but they do sell a cheaper and similar kit" class="link" target="_blank">.
The sensor is wired up using burglar alam wire to a 4-pin PCB connector (Maplin part no. HB58N). This plugs in to our 1-Wire input board but, it could be interfaced to other I/O boards and devices. The wiring to the pins are: The output of the twilight sensor does NOT drive any lighting directly as this would compromise the security of this feed by exposing it to external devices. It would also mean that lighting and other devices connected to this feed are fixed to coming on at dusk and going off at dawn. Typically, devices are required to be activated at dusk but, be switched off well before dawn. This project is complete and operational and the twilight sensor has been in use for many years now. It has been totally reliable too. We have since moved the sensor over to our USB input board though as this is now being used for all the PIR sensors in our home.Wiring
Status
Conclusions
Further Reading
