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...
Смотрите видео Motion Sensor with a Raspberry Pi and Python онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Practical Python Solutions 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5,310 раз и оно понравилось 67 людям.