Nowadays, because of the pandemic, we will have to be more careful when it comes to the distance between us and other people. By using our project, you will always be warned when someone is too close to you.
Howit works:
The device is set to react when an object/person is "close" (< 75 cm) or "too close" (< 25 cm). The "close" mode activates the buzzer and turns the RGB led into the blue light. The "too close" mode, makes the buzzer sounds more disturbing and turns the RGB led into the red light. While the distance between the persons is bigger than 75 centimetres, the light will be green and the buzzer will play a song, for letting you know that there is no one too close to you.
Library:For our project we've used the pigpio library which is installed in the following steps:
- first download and install the latest version:
wget https://github.com/joan2937/pigpio/archive/master.zipunzip master.zipcd pigpio-mastermakesudo make install
- before you run the code, you need to start the pigpio daemon
sudo pigpiod
- for running the code use the following command :
python3 project.py
Comments