DIY door control switch control light working principle and component selection

The bathroom is a must-see place every day. It is really troublesome to turn on the lights and turn off the lights when entering the bathroom at night. Sometimes I forgot to turn off the lights and wasted energy.
Here is a circuit of the door control switch, which is simple to make. After installing the door control switch in the family bathroom, the door light is still on after the door light is turned on; the door light is off when the door is opened, and the door light is still off. You said that fun is not fun? hurry up! However, don't forget to read the instructions below.

Circuit working principle: The gate switch circuit is as shown below. The circuit adopts D-type trigger CD4013 to form a switch memory circuit. IC-A is connected to a monostable circuit, and IC-B is connected to a bistable circuit. GH is a normally open reed switch, and the GH is closed when the door is closed normally. When the door is opened, GH is disconnected. The Q1 end of IC-A outputs a high level to trigger IC-B, so that Q2 outputs a high level, the triac is turned on, the light is on, and the monostable time of IC-A is from R2, C3. The value determines that the one-shot time of the component value in the figure is 7 seconds. During this time, regardless of how many times GH is turned on and off, Q1 outputs a high level, so the door is opened and the door is closed and Q1 is kept high during the one-shot time. level. After the one-shot time is over, the person opens the door to the bathroom, Q1 outputs a high level, Q2 flips to a low level, and the light goes out.

Component selection: All components are selected according to the model indicated in the figure. GH is a Ø3*27 normally open reed switch. The magnet can be used as a magnetic strip in the magnetic contact of the waste plastic stationery box. Install the reed switch and magnet close together and close the reed when the door is closed. As long as the wiring is correct, the circuit is installed correctly and can work normally without debugging.

DIY door control switch control light working principle and component selection

PCB as shown:

NB Personal GPS Trackers

NB Personal GPS Trackers,Children GPS Trackers,Kids GPS Trackers,NB Children GPS Tracker,NB kids GPS Tracekrs

eSky wireless Inc , https://www.eskygpsiot.com