กลับไปหน้ารวมไฟล์
contactless-doorbell-1df979-en.md

Sanitary Signaling: The Contactless Ultrasonic Doorbell

Traditional doorbell buttons are physical bio-hazard vectors exposed endlessly to hundreds of potentially infected delivery drivers. The Contactless Doorbell terminates this completely! The project exploits a rigid HC-SR04 ultrasonic sonar matrix to forge a pure acoustic boundary field instantly. A visitor simply hovers their hand completely harmlessly 5 centimeters in front of the robotic enclosure. The Arduino intercepts the collapsing sound-wave latency and violently trips a massive internal piezoelectric buzzer or an elite 220V physical House Chime to alert the inhabitants perfectly!

obstacle_avoiding_robot_front_1772681550494.png

Designing The Rapid-Fire Sonar Execution Array!

If the Arduino checks the ultrasonic sensor incredibly fast without delays, it creates "Acoustic Interference." The outgoing ping crashes immediately back into the old bouncing ping floating in the air, creating a horrifying NaN error!

  1. You MUST execute a clear delay(50) natively between sonar pings allowing the physical air waves to dissipate!
  2. The pulseIn() function mathematically calculates exactly how many Microseconds the entire acoustic journey consumed.
// Generating the exact 40KHz Ultrasonic Ping!
digitalWrite(TRIG_PIN, LOW); delayMicroseconds(2);
digitalWrite(TRIG_PIN, HIGH); delayMicroseconds(10);
digitalWrite(TRIG_PIN, LOW);

long rawDuration = pulseIn(ECHO_PIN, HIGH);
int distance_cm = rawDuration * 0.034 / 2; // Divide into strict Centimeters!

// The Hand Detection Logic Sequence!
if (distance_cm > 0 && distance_cm < 10) { 
  // An object is solidly hovering < 10cm away!
  Serial.println("GUEST AWAITING!");
  
  // Blast the Chime!
  digitalWrite(BUZZER_PIN, HIGH);
  delay(1500); // Hold the doorbell tone for exactly 1.5 Seconds!
  digitalWrite(BUZZER_PIN, LOW);
  
  // Massive 4-Second Lockout constraint!
  // Prevents the doorbell from fiercely buzzing infinitely if they leave their hand!
  delay(4000); 
}

Integrating Physical House Chime Solenoids!

A tiny 5V piezo buzzer cannot be heard across a massive three-story house.

  • You must interface the Arduino completely into the existing terrifying 18V AC Mechanical Box!
  • The Arduino utilizes a 5V Relay Module to violently short-circuit the traditional two 18V AC Doorbell wires!
  • When the Ultrasonic sensor hits, the Relay clicks closed completely for 500ms, commanding the heavy metallic House Chime Solenoid to aggressively smash "DING DONG" throughout the entire compound natively!

Architectural Containment Equipment

  • Arduino Uno/Nano (Operates flawlessly for decades tracking proximity).
  • HC-SR04 Ultrasonic Distance Module (Creates an aggressively visible "Robot Face" aesthetic commonly found in cyberpunk installations).
  • Active 5V Buzzer (Provides immediate high-frequency tone without needing complex tone() timers) OR 5V Optically Isolated Relay Module (For integration directly into existing heavy AC Chimes).
  • A Custom 3D Printed Weather Enclosure (Only two exact holes for the Ultrasonic microphones should be visible to completely eradicate rainwater infiltration vectors natively!).

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

title: "Contactless Doorbell"
description: "Acoustic switch substitution! Entirely remove the physical mechanical push-button transmission vector, commanding explosive active buzzer arrays dynamically using HC-SR04 sonar proximity thresholds natively."
category: "Home Automation"
difficulty: "Beginner"