Introduction: Make the Talking / Voice Notification Warning System

About: Maker 101; Beginner and intermediate level Maker projects! You can find projects such as "How to" and "DIY" on programmable boards such as Arduino, ESP8266, ESP32 and Raspberry Pi on this channel. The projects…

This project we have made a Talking / Voice Notification and Warning System. At least two sensors can be used in this project.

Step 1: Video Tutorial

In this project, PIR sensor (The PIR Motion sensor module is an automatic control module based on infrared technology) and IR sensor (IR Infrared Obstacle Avoidance Sensor Module has a pair of infrared transmitting and receiving tubes). The DFPlayer Mini module was used to play audio files. (The DFPlayer Mini MP3 Player For Arduino is a small and low price MP3 module with an simplified output directly to the speaker) We used one 9V battery for power consumption and one mini speaker for audio files.

Step 2: PCB Files (Gerber - Schematic)

We chose DIP components for the PCB, so it became an easily solderable board. Of course, this project includes one Atmega328P microcontroller and the minimum required component.

PCBWay celebrates its 6th anniversary. $0 For New members first order & Low Price for PCB Stencil at

Get the PCB - Schematic - Gerber files:

Step 3: Source Code

  • Please change the names of mp3 files like 1, 2, 3, 4 ...

  • Upload the mp3 file to Micro SD card.

  • Install the DFPlayer library from Library Manager.

  • Install the SoftwareSerial library from Library Manager.

  • Whatever sound file you will use, change the filename in the code. Like this:

  • Upload the Source Code.

Get the source code file from this link:

Step 4: Required Components

DFPlayer Mini MP3 -

HC-SR505 Mini PIR -

ATmega328P-PU IC -

L7805 TO220 -

Mini Speaker -

Micro SD Card 8GB -

9V Battery Connector -

Ceramic Capacitor -

Electrolytic Capacitor -

DIP IC Sockets -

Type B USB Socket -

12MHz Crystal -

16MHz Crystal -

Resistor -

Switch -


RD6006 Power Supply - (Coupon:BG6006)

RD6012 Voltage Converter - (Coupon: BG6012)

Banggood Summer Prime Sale -

Banggood Summer Prime Brand Sale -