This is a mask which annoys the user till they wear their mask back on if they remove it.
The concept is very simple. This mask vibrates for 10 seconds as a time of warning for the user to wear their mask back on, and if they did not wear the mask still, it will turn on a buzzer with a loud sound till the user puts the mask back on.
This mask gives the user 10 seconds buffer time to wear back the mask, that is it vibrates for the first 10 seconds. After 10 seconds, the Buzzer also turns on with the vibrations.
You can make one like this also by following the steps!
The hardware required for this are:
Softwares required:
Let's Start with making the connections with the Arduino.
First, Insert the Arduino NANO board in the mini breadboard.
Connect the positive wire (red wire) of the Buzzer to the D5 pin of the Arduino NANO and connect the negative wire (black wire) to the GND pin of the Arduino NANO.
Now take your vibration motor and connect the positive wire to the D3 pin of the Arduino NANO and connect the negative wire to the GND pin of the Arduino NANO.
Connect two free wires, one coming from the D7 pin of the Arduino NANO and another one form the GND pin of the Arduino NANO. These wires will later be used to connect to the mask.
The last step for making this circuit is connecting the battery. Take a 9V battery and connect its Positive side to the VIN pin of the Arduino NANO and the negative side to the GND pin of the Arduino NANO.
Finally, it should make a circuit like this:
Now let's go to the code for this project
Open Arduino Studio and open a new sketch and copy this code to your sketch:
CLick here to go to Github to download the code.
After uploading the code to your Arduino NANO, Check whether your circuit works. When the two free wires coming form the circuit touch, the vibration motor should not turn on, and when they go out of contact, the vibration motor must turn on and after 10 seconds, the Buzzer must turn on. The Buzzer and Vibration will turn off once the two wires meet and touch again.
Assume one wire to be the mask, and another wire to be a face, so when they meet, that means the user is wearing the mask, and when the wires go out of contact, it means the user has removed the mask.
Now, lets start making connections to the wire and body.
You can use an alligator clip wire to clip the wires
Take some alluminium foil or other conductive metal, clip it with the wire connecting the GND pin of the Arduino NANO which was earlier coming out of the board.
This step might be hard, stick the aluminium foil in your face.
Now, lets connect the wire to the mask. Connect the wire coming out of D7 pin of the Arduino nano to another alligator clip wire. Now clip the wire to a face mask.
When wearing the mask, make sure the outer part of the alligator clip makes solid contact to the metal piece or alluminium foil, so that the circuit can recognize that the user is wearing the mask. You can adjust the mask till it makes proper contact. For a hint of how to do that, you can see my Youtube Video
Congrats! now, you have made the complete circuit! You can use this now!
Stay Safe and wear mask!
Like my tutorials or want to support me? Subscribe to my Youtube!
