Home automation project for Lane Tech PCL course.
The project mainly uses a photo resistor and a vibration sensor. The vibration sensor is attached to the door you want to trigger the code and the photo resistor/rest of the photon needs to be in an area affected by the light that it controls. When the door is opened the vibration sensor should have an input greater than 0. When the vibration sensor has a reading the photon checks the light level through the photo resistor. If the light level is high it signals the servos to turn one way and turn the lights off. If the light level is low it signals the servos to turn the other way which turns the lights on. There is a delay built in to allow time to close the door and not have the program trigger on that input to the vibration sensor.
The video links would work through this program so
Video: https://go.screenpal.com/watch/cZlIlBnnCJX











Comments