To set up the hardware once you have all the required items ready, you will need to assemble the circuit as demonstrated in the wiring diagram. Once you finish arranging the hardware, you need to start setting up the software.
1. Based on whether your Raspberry Pi module comes pre-installed with an operating system, you may need to install Raspberry Pi OS – or any other Linux distro — or update the OS. Once you install the OS, you will need to run the following command in a command line window to activate the sound output through a headphone or speaker:
sudo amixer cset numid=3 1
2. Then, you need to download a sound file for the alarm. You can either download a free stock sound of your choice or get it directly using the terminal. We are using a free sound of a warning alarm in a public place. It can be downloaded using the following code:
wget https://mixkit.co/free-sound-effects/download/991/?filename=mixkit-warning-alarm-buzzer-991.wav --no-check-certificate
3. You can get started by developing a dedicated program to vary resistance values. Thankfully, you will not have to write the entire code from scratch; you can simply copy and paste it from an official Raspberry Pi tutorial.
4. After setting up the code, you will need to calibrate the Raspberry Pi fart detector.
5. In addition, you need to set up monitoring using the sensor along with programming when the alarm goes off. To ensure you don’t have to take the pain of manually switching the program on and off, you must also set up continuous monitoring with the sensor.
6. Lastly, you could configure the duration of the alarm so that it continues to play repeatedly until the fart disappears.
With this terrific device set up, go and plant it in the family’s favorite place to hang out together. Don’t forget to set up a secret security camera to record other people’s reactions when the alarm suddenly goes off. Happy farting!
Stay connected with us on social media platform for instant update click here to join our Twitter, & Facebook
We are now on Telegram. Click here to join our channel (@TechiUpdate) and stay updated with the latest Technology headlines.
For all the latest Automobiles News Click Here