🪔 Diwali Break: Orders placed now will ship from 25th November 2026. Place your order today — we'll get it to you right after we're back!
Project Hub /Artificial Intelligence & Edge ML/Gesture Recognition/Social Distancing Alarm Cap
Social Distancing Alarm Cap
Intermediate
ARDUINO
Project Specific
3 – 6 Hours
Partial Kit

Social Distancing Alarm Cap

An Arduino-based wearable social distancing alarm cap that uses four ultrasonic sensors to detect nearby people and alert the wearer via a buzzer.

Originally published on ElectronicsForU
View original tutorial

Parts You'll Need

This project is sourced from another site, not written by us — this list is our best match of their components against what we stock, not a verified bill of materials. Always check the original blog (linked above) for the actual parts list before buying.

We don't carry yet: Capacitors

Browse all components

How It Works

Why Build This

Apply embedded systems concepts to real-world public health challenges by developing a functional wearable prototype for physical distancing enforcement.
Gain hands-on experience integrating multiple identical peripheral sensors with a single microcontroller using digital input and output pins.
Enhance prototyping and hardware integration skills by mounting electronic components onto a wearable textile platform like a cap.

Real-World Application

Helps maintain physical distancing during disease outbreaks or crowded public spaces by alerting wearers when others come too close.

Skills You'll Learn

Ultrasonic distance measurement
Multi-sensor integration
Digital input and output interfacing
Buzzer control
Wearable electronics prototyping
Threshold-based logic programming

Safety Precautions

No specific precautions noted for this build — always follow general electronics safety practices.

Technology Tags

ARDUINO
ULTRASONIC SENSOR
HC-SR04
WEARABLE ELECTRONICS
PROXIMITY DETECTION

Frequently Asked Questions

Using four sensors allows the cap to detect people approaching from the front, back, and sides, providing complete 360-degree coverage rather than a single forward-facing blind spot.
The distance threshold is set as a numerical value variable inside the Arduino IDE sketch, which compares the calculated centimeter output from the HC-SR04 sensors against your desired safety limit.
Yes, you can substitute the buzzer with a small vibration motor or an LED indicator by adjusting the output pin logic in your Arduino code to suit your preferred notification style.

Gallery

This page is part of Kitkraft's Project Hub — a curated collection of electronics & robotics projects gathered from the maker community to help students and hobbyists discover and learn to build. Kitkraft does not claim authorship of the original project, and makes no representation as to the accuracy, completeness or safety of third-party source material. The summary and "How It Works" explanation above are AI-generated, rewritten with reference to the original tutorial — not a reproduction of it. Full credit and a direct link to the original source are provided above. If you're the original creator and have a concern about how your work is represented here, please contact us and we'll address it promptly.

Kitkraft Project Hub — curated from the maker community, credited at the source.
PRJ-00328