กลับไปหน้ารวมไฟล์
social-distancing-mask-d33e68-en.md

It's been almost two years, and we are tied up with masks every day. Mask is a boring thing, but it is a lifesaver in this situation. And every day, we have to wear a mask to protect ourselves. But I'm bored of this mask that we everyday use. Why not make it a little smarter!

That's why I make this social distancing mask that can help to maintain social distancing. When a person comes near you, and the distance is less than 3 feet, the mask shows a red collared sad face. And when the distance is less than 1.5 feet, the sad😟 face blinks continuously. If no one is in the range of 3 feet, then the mask shows a smiling face😊

The Smart Mask: Redefining Social Interaction

The Social Distancing Mask is a high-tech response to the modern challenges of public health. While standard masks protect the wearer and those nearby physically, they don't help manage the psychological aspect of Physical Distancing. This wearable project solves that by integrating a "Social Radar" into the fabric of the mask. Using laser technology, the mask measures the proximity of people around you and displays its "mood" through expressive LEDs, silently but firmly asking for space.

Making Procedure

Laser Precision: The VL53L0X Sensor

It uses a VL53L0x Time-of-Flight (ToF) sensor to measure the distance. VL53L0x is a low-profile laser-ranging sensor with millimeter-level accuracy. This sensor is very suitable for this project for its compact size and ranging accuracy.

Unlike typical ultrasonic sensors which are bulky and can be affected by clothing texture, this mask uses the VL53L0X Time-of-Flight (ToF) Sensor.

  • Millimeter Accuracy: It uses an eye-safe laser pulse to measure distance by calculating the time it takes for the photon to bounce back.
  • Low Profile: The sensor is incredibly thin, making it perfect for integration into soft wearable fabrics without being obtrusive.

Miniature Engineering: Power and Design

Creating a "Smart Mask" requires specialized hardware choices:

  • Arduino Pro Mini: I use an Arduino pro mini as the brain of the project. It was chosen for its extremely small footprint and 3.3V operation, which matches the voltage of modern sensors and small batteries.
  • Expressive UI: I use red and green color SMD led for the facial expressions. Using SMD (Surface Mount Device) LEDs, the creator built a lightweight "display" that can be seen from several feet away without adding heavy electronic modules to the wearer's face.
  • Lithium Polymer Power: A 100mah mini lipo battery is powering all of this. A tiny 100mAh Li-Po battery powers the entire system for hours, hidden within the folds of the fabric.

Coding

First of all, I have included the Adafruit Vl53l0x library to make the sensor work. Then I define the variables for the LEDs and the sensor. And in the setup function, I initialize the sensor and set the pin mode for the LEDs as output.

Then in the loop function, I use to measure.RangeMilliMeter command to read the distance in millimeters and uses some conditions to show different facial expressions with distance.

The Arduino Pro Mini is programmed with three distinct zones:

  1. Safe Zone (>1000mm): The mask shows a green, smiling face 😊 to welcome interaction.
  2. Warning Zone (500mm -- 1000mm): The mask shifts to a red, sad face 😟, alerting both you and the other person that the 3-foot limit has been breached.
  3. Danger Zone (<500mm): The sad face begins to blink aggressively, indicating a critical proximity violation.
if (measure.RangeMilliMeter >= 500 & measure.RangeMilliMeter < 1000) {
   digitalWrite(red, LOW);
   digitalWrite(green, HIGH);
   delay(1000);
 }

Here, if the measured distance is less than 1000mm, and if greater than or equal to 500mm, the musk shows a red SAD face.

else if (measure.RangeMilliMeter < 500) {
   digitalWrite(red, LOW);
   digitalWrite(green, HIGH);
   delay(50);
   digitalWrite(red, HIGH);
   digitalWrite(green, HIGH);
   delay(50);

Here if the measured distance is less than 500mm, the red-Sad face blinks continuously as an indication of crossing extreme distance.

But if the distance is greater than 1000mm, the mask shows the green smiley face.

The Future of Wearable Safety

This project is a masterclass in Wearable Technology. It demonstrates how compact sensors and microcontrollers can be used to augment human behavior in real-time. Whether used as a practical tool for the immunocompromised or a provocative piece of "Design Fiction," the Social Distancing Mask is a glimpse into a future where electronics are part of our everyday wardrobe.

We've been wearing masks for years, and they can be boring! Why not make them smarter? I created this social distancing mask to help maintain health protocols. When someone get's closer than 3 feet, the mask shows a sad face. If they cross 1.5 feet, it blinks warningly. It's a fun, protective hack for the modern world.

Videos

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
author: "abid_hossain"
category: "Wearables"
components:
  - "1x Arduino Pro Mini 328 (3.3V/8MHz)"
  - "1x VL53L0X Time-of-Flight Laser Ranging Sensor"
  - "1x 100mAh Li-Po Battery"
  - "1x Red SMD LED (for Sad expression)"
  - "1x Green SMD LED (for Happy expression)"
  - "1x Soft Fabric Mask Base"
description: "A smart wearable facial interface that uses Time-of-Flight laser sensing to enforce social distance through interactive LED expressions."
difficulty: "Intermediate"
documentationLinks:
  - "https://github.com/adafruit/Adafruit_VL53L0X"
downloadableFiles:
  - "https://projects.arduinocontent.cc/a2dba3b5-d915-4ab0-a488-8a1eb7a34276.ino"
encryptedPayload: "U2FsdGVkX1+w+5SHc81jI+zX4IP8em405+SVCFJPnDSGm8p1beMBBi7Org+caffPC3yddrUD2IDEmPuXQPKxNXzvfZhCVlxBzHD4CGUy4v8="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/social-distancing-mask-d33e68_cover.jpg"
lang: "en"
likes: 0
passwordHash: "02c6c82a33db3528d141178d3f9fdd4d34ea6e60b21adf3d45d3606045bfb847"
price: 299
seoDescription: "Stay safe with the DIY Social Distancing Mask. Features a VL53L0X laser sensor and facial expressions to warn others when they're too close."
tags:
  - "social-distancing"
  - "laser-sensing"
  - "wearables"
  - "covid-19"
  - "iot"
title: "Social distancing Mask"
tools:
  - "1x Soldering iron"
videoLinks:
  - "https://www.youtube.com/embed/gGJNhP25Euk"
  - "https://www.youtube.com/embed/edxfCn4LOss"
views: 2345