I am a software developer and just started my journey in electronics side. I had this particular idea which I want to do for my project.
Problem statement: In my college every room has fans and light which is powered with normal switches. People when leaving the class don't switch off the fans and lights when leaving the classroom
Solution: I wanted to develop a software which will recognize when the classroom is empty and will switch off the lights as soon as no one is there.
It will have three components:
Sensor: This will detect that there are no people in the room and send a signal to the system
Software system: Which is responsible for taking in INPUT from the sensor do the processing and send either signal ON/OFF command in some form to the electrical main
Main Circuit: This circuit should understand the software command and convert it to signal of some form which makes circuit switch off and switch on
MY PROBLEM:
I am not able to figure out two things.
What circuit should I use which can understand a software command and convert to signal?
How can this circuit switch off the power?