AR-181ArduinoIntermediatePremium

Arduino Welcome Door: A Sensor That Greets Everyone Who Walks In (PIR + DFPlayer Mini + Speaker)

When someone walks through the door, a real voice says "Welcome!" The PIR sensor catches the motion and the DFPlayer Mini plays an MP3 sentence from the microSD card through the speaker. Three greetings take turns and the same one never repeats; while the person is inside the sensor keeps seeing motion but the code stays quiet, and after 5 seconds without motion the next arrival is greeted again. Anyone who stayed longer than 45 seconds gets a goodbye.

0.0(0)
Arduino Welcome Door: A Sensor That Greets Everyone Who Walks In (PIR + DFPlayer Mini + Speaker)
Put it by the door and everyone gets a welcome: when the motion sensor sees someone, the MP3 module says "Welcome!" through the speaker. Three sentences take turns and the same one never comes twice in a row. While the person is inside the code stays quiet; after five seconds without motion they count as gone, a long stay gets a goodbye and the next arrival a fresh greeting. You learn to read a motion sensor, wait out its warm-up, tell arrivals from departures with timing and play sound files in order.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions