In this video, we will connect a raspberry pi to a motion sensor and write some python code to detect motion and send alerts to anywhere in the world.
This means that you can setup your raspberry pi at home before you leave the house. If there is any motion detected, you will get an alert. It is similar to most house alarms systems but without the setup and monthly costs.
To get started, you will need a Raspberry Pi , motion sensor (you can buy these on amazon for a few dollars) and a cable to connect pins on the motion detector to the raspberry pi’s board.
We’ll write some code for the raspberry pi to manage the sensor and send us alerts when it triggers.
Code:
https://github.com/pmahon2016/Motion_...
Sensor on Amazon:
https://www.amazon.com/HiLetgo-HC-SR5...
Cables on Amazon
https://www.amazon.com/Elegoo-EL-CP-0...
Auf dieser Seite können Sie das Online-Video Motion Sensor with a Raspberry Pi and Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Practical Python Solutions 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,873 Mal angesehen und es wurde von 73 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!