Every time, going to work in the morning, we try not to forget to turn off the apartment lights and appliances. Meanwhile, the function can be run machine consisting of three main blocks (Fig. 1): sensors, digital control unit and key. Here’s how it works.
The light from the lamp H1 illuminates the photodiodes B1 to B2 (Fig. 2), causing the transistors V1 and V2 are open and the inputs of the inverters D1.1, D1.2 into a low potential “0”, which is then converted to high “1” output. There are four possible combinations of the state of the photodiodes at the intersection of luminous flux: 1) B1, B2 is opened, 2) V1 — closed V2 — open, 3) B1, B2 — closed, 4) B1 — open B2 — closed. Thus, for each apartment included in the sequence of combinations will be 1, 2, 3, 4, 1, and output— 1, 4, 3, 2, 1. Now you need to “catch” these two sequences of combinations, to transform the sludge in a single pulse and to apply, respectively, to a summing or subtractive input of reversible counter D6.
This task is performed by a digital control device, assembled in logic elements (circuits D1—D7). It works in the following way. For example, in apartment included. A combination of 1, being the source of perceived logical element Z of the (D5.3), the output of which there is the potential of the “0” setting outputs RS-triggered collected on the logical elements 2I-NOT (D3.2, D3.3, D4.1, D4.2) in the zero state.