|52||Modular Autonomous Home Light
|## Group Members
Cary Chai (caryzc2), Samuel Darmamulia (sid2), Makomborero Tizora (mtizor2)
Some modern buildings have motion detectors installed which are connected to a room’s circuitry and can shut off the lights and power in a room when no one is occupying it. However, currently, there is no modular solution that can be used with older buildings without having to open up the walls and rewire the internal circuitry.
We will have a sensor unit which will detect the occupancy of a room and communicate with a modular, external unit which can be implemented on manual light switches to automatically turn off and on lights without needing to rewire a building's circuitry. This way, typical families can afford to have motion detected lighting installed without needing to hire an electrician to install motion sensors.
There will be one infrared sensor which will sit at the entrance of the room and when someone passes by it within certain parameters, the sensor will count up one. When someone leaves, the device will count down one. If the current count is zero, a separate unit attached to the manual switch will flip the light switch to turn it off/on after a certain amount of time.
These two devices will communicate with each other through Bluetooth. There would also be a method to calibrate the infrared sensor, so it would be easy to implement in all rooms with old light switches.
In addition, we want to have an integrated phone app which will be able to communicate with the units in order to allow the user to turn off and on the lights from anywhere within the house and get a full IoT light experience.
## Components List
- MCU: We will be using an ATMEGA16U2 microcontroller. The microcontroller will be responsible for communicating with the infrared sensor, bluetooth module, and servo motor.
- Infrared Sensor: We will be using the HC-SR501 PIR Sensor. This sensor will be in charge of determining if people have entered into the room.
- Bluetooth transmitter/receiver: We will be using Bluetooth HC-05 module
- Power supply: We will be using double AA batteries and a battery case.
- Motor: We will be using servo motor
## Criterion for success
- Successful detection of occupants entry and exit from the room using infrared sensors
- Storage on sensor unit of number of occupants in the room and the state of the light switch
- Lightweight servo switch that attaches to currently existing light switches.
- Bluetooth communication between MCU sensor and MCU switch units
- App to control the light switch from anywhere in the room
## Links for Parts
- Servo Motor:
- Bluetooth: (x2) https://www.amazon.com/HiLetgo-Wireless-Bluetooth-Transceiver-Arduino/dp/B071YJG8DR
- Sensor(Motion Sensor):
- Battery cases: