By this project we can do home automation using camera to save cost of sensors. In this project we will check that is there any person in room(area where camera is there) or not, if there is someone then lights and fan will get on or else it will get off.
Hardware requirements:
- Arduino.
- LED (If you dont want to use inbuilt LED of arduino).
- Small Fan (If you want to start lights as well as fan).
- wires as per your requirements.
Software requirements:
- Arduino IDE.
- pycharm or any prefered IDE.
As mentioned we can do person detection using 2 ways :
- Using caffemodel
- Using haarcascade
After downloading this project follow the following steps (in both the methods) :
- run the python code and see that output is perfect or not.
- remove commented line of arduino code from python file.
- connect your Arduino.
- copy arduino code from arduino_code.ino.
- check your com port from device manager.
- add your com port in python code, replace your com port with mine which is 'com4'.
- upload your code in arduino.
- run the python code.
Feel free to open an issue. We are glad to help you. And is you have solution for that issue I will allocate to you. ❤️
If you have any more idea related to this project then please share your idea on jimmyaghera123@gmail.com. If time permits I will surely do some work on your project.