Typically a single low-power lamp in a ceiling cluster is driven by the NLC, using a separate security light power feed. The NLC also takes a power feed from a switch or another lighting controller (such as my Simple Light Controller) which basically enables the controlled light to be used as a normal light as well. The diagram below shows a typical application such as an ensuite bathroom. The NLC is used in rooms that require person activated lighting (hall, landing, ensuite bathroom, main bathroom, lounge, etc.) but, not in rooms that require darkness when occupied (e.g. bedrooms).
I wanted the NLC to use the minimum power possible when not active and the use of CMOS logic results in a power consumption that is very low. Maplin 12v reed relay 12V (SPST JH13P) has a coil resistance of 1050ohms, resulting in low power use when in operation.
One application for a retriggerable one-shot is that of a single mechanical contact debouncer. As you can see from the above timing diagram, the output will remain high despite "bouncing" of the input signal from a mechanical switch. Of course, in a real-life switch debouncer circuit, you'd probably want to use a time delay of much shorter duration than 10 seconds, as you only need to "debounce" pulses that are in the millisecond range. http://ectinschools.org/page.php?ps=2&p=13
The first two gates act as an AND gate and let the PIR pulses through when the twilight sensor output is high (i.e. it is dark). A high input signal switches on the transistor and causes the capacitor to discharge. During this period, the output signal is forced high by the right-most inverter. Timing begins as soon as the PIR pulses are passed through. The transistor switches off causing the capacitor to charge through the variable resistor. Once the capacitor has charged to about 50%, the inverter will trigger the input into the last AND (NAND + NOT = AND) gate back to low. If the 'switch' input is high, the invertor prior to the AND gate makes sure the output can't go high to switch on the relay.
The maximum length of the delay can be calculated by: Delay time (t) = 0.7 x C where C is the capacitance in mF. So, if C = 100uF, the maximum delay is 0.7 x 100 = 70s. If a longer delay time is needed then a larger capacitor can be used.
The outputs from the CMOS logic ICs can only sink very low currents so a BC337 transistor (Maplin part no. QB68Y) is used to drive the relay coil. http://bp3.blogger.com/_BQac7gcHPK0/RkhZpXbcFkI/AAAAAAAAAU0/eNNRjj-vbTc/s1600-h/12V+DC+Motor+Speed+Controller+by+4011.jpg
The output and 'switch' input both connect to the load via diodes, such that either of them can be used to power the load. The diodes introduce a voltage drop but the supply is likely to be a battery bank anyway which is higher than 12V and the LED bulbs used have a built in regulator:
http://www.ultraleds.co.uk/ultimate-mr11-acdc-warm-white-bulb-p-1765.html
In some circumstances a
The wiring in each PIR is: