Hi every body.
I am trying to create automatic light control circuit for washroom. I made some thing and want to share with experts. Please check the circuit and tell me if I am missing or using anything extra in the circuit.
Let me explain my circuit and problem;
I place magnet on the door and this circuit above the door.
suppose the door is close and nobody is inside.
1- Door opened - magnet pass near REED switch, it pulse the 4017 clock and relay turned on/ light on.
2- door closed and reed switch again triggered and 4017 counter goes to Q2, light still on because somebody is inside the washroom.
3- door open and reed switch trigger, 4017 counter goes to Q3 and light turns off. because somebody is trying leave washroom.
4-door closed reed triggered and 4017 just reset to Q0 and light remains off, because no body is inside the washroom.
this will repeat if anybody else want to go to washroom.
So what you think and suggest Experts.