COVID-19 Mask Detector

by Lan_Makerfabs in Circuits > Arduino

6437 Views, 22 Favorites, 0 Comments

COVID-19 Mask Detector

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

Hardware:

Software:

  • Arduino IDE

Download link: https://www.arduino.cc/en/Main/Software

Connect

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

NFC stickers the size of nails are attached to masks, which are supplied free by Makerfabs

Install

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

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.