COVID-19 Mask Detector
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
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
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
NFC stickers the size of nails are attached to masks, which are supplied free by Makerfabs
Install
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
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.