COVID-19 Mask Detector
![IMG_6296.JPG](/proxy/?url=https://content.instructables.com/FUX/0O81/K8T23CWF/FUX0O81K8T23CWF.jpg&filename=IMG_6296.JPG)
Due to the impact of the coronavirus (COVID 19) epidemic, only the staff can pass the entrance and exit of the Makerfabs office building, and must wear NFC masks specially customized by Makerfabs, which cannot be accessed by outsiders. But some people don't always wear masks. Therefore, we made a mask detector. If you wear an NFC mask, the door of the office building can be opened automatically. You can enter and exit freely, otherwise you will not be able to enter.
Supplies
![IMG_6304.JPG](/proxy/?url=https://content.instructables.com/FFD/EO8Q/K8T22T82/FFDEO8QK8T22T82.jpg&filename=IMG_6304.JPG)
Hardware:
- Maduino Zero NFC (get it from this link: https://www.makerfabs.com/maduino-zero-nfc.html )
- L298N Motor Driver Board (get it from this link: https://www.makerfabs.com/l298n-motor-driver-board...)
- NFC Sticker (get it from this link: https://www.makerfabs.com/nfc-sticker-white-wet-in...)
- Electromagnetic Lock (get it from this link: https://www.makerfabs.com/electromagnetic-lock-ta...)
Software:
- Arduino IDE
Download link: https://www.arduino.cc/en/Main/Software
Connect
![8.JPG](/proxy/?url=https://content.instructables.com/FEY/95P7/K8ZZ8GGN/FEY95P7K8ZZ8GGN.jpg&filename=8.JPG)
L298N module -- Maduino Zero NFC
- ENA -- D4 (GPIO4)
- IN1 -- D5 (GPIO5)
- IN2 -- D6 (GPIO6)
The electromagnetic lock is connected to L298N OUT2.
Masks With NFC
![IMG_6275.JPG](/proxy/?url=https://content.instructables.com/FD5/YSL3/K8T22T7K/FD5YSL3K8T22T7K.jpg&filename=IMG_6275.JPG)
NFC stickers the size of nails are attached to masks, which are supplied free by Makerfabs
Install
![IMG_6283.JPG](/proxy/?url=https://content.instructables.com/FRU/S34G/K8T22T7Y/FRUS34GK8T22T7Y.jpg&filename=IMG_6283.JPG)
The Maduino Zero NFC module is fixed on the door, and the NFC antenna is attached to the side of the door to detect whether the staff is wearing a mask
Test
![IMG_6296.JPG](/proxy/?url=https://content.instructables.com/FFF/O5Q8/K8T22T80/FFFO5Q8K8T22T80.jpg&filename=IMG_6296.JPG)
Staff wearing masks near the door, the instrument detected wearing masks, the door opened, a few seconds later, the door automatically closed.
Code
You can download the code from here to complete it.