Welcome Audio Played When Motion Detected: DIY Home Automation Tutorial

  Рет қаралды 30,743

Fair Electro

Fair Electro

Күн бұрын

In this tutorial video, we will show you how to create a DIY home automation system that plays a personalized welcome audio whenever motion is detected. You'll learn how to integrate motion sensors with audio playback devices to create a unique and interactive experience for your visitors. We'll guide you through the step-by-step process of setting up the motion detection system, configuring the audio playback, and customizing the welcome message. Join us and add a touch of creativity and automation to your home! You can make this project with little effort after watching this video.
For making this project, I am using:-
1. Arduino Nano.... s.click.aliexp...
2. Df player mini.... s.click.aliexp...
3. PIR Sensor......... s.click.aliexp...
4. Speaker............. s.click.aliexp...
5. Jumper Wires... s.click.aliexp...
6. 1k Resistor....... s.click.aliexp...
7. Bread Board.... s.click.aliexp...
Code:- drive.google.c...
Library for DF player mini:- github.com/DFR...

Пікірлер: 121
@tessagarland2840
@tessagarland2840 10 ай бұрын
This is really brilliant. If you dont mind a few questions...I want to make a sensor in a work of art that plays a piece of audio I make Im guessing I make an Mp3 and copy to SD card? Also the exhibition in on for a month, so ca invigilator switch on and off from mains switch, so plug and play? Also I see in comments you say it can run when unplugged from a computer and run off a 5volt transformer, I cant see where this would plug into your set up...or do I need an extra part? Thanks
@fairelectro
@fairelectro 10 ай бұрын
yes, you can make
@fairelectro
@fairelectro 10 ай бұрын
Connect Vin pin to +ive 5v and GND pin to -ive of power supply.
@tessagarland2840
@tessagarland2840 10 ай бұрын
@@fairelectro Hi sorry can you explain alittle more what is a Vin pin and GND pin do i need to order these as extra parts?
@user-ds4iw7ce4g
@user-ds4iw7ce4g 9 ай бұрын
vin menas positive and gnd means ground it is already in arduino u dont need to order it.@@tessagarland2840
@freefireother
@freefireother Жыл бұрын
Can I make it by soldering If yes then where to connect battery Thumbnail mei nhi hai plzzz reply
@fairelectro
@fairelectro Жыл бұрын
ap soldring kar sakty ho. or pcb b bana sakty ho
@rrggaming420
@rrggaming420 Жыл бұрын
​@@fairelectrobattery kidr lgani soldering krte waqt
@illustration_world_
@illustration_world_ Жыл бұрын
​@@rrggaming420battery ka possitive terminal Arduino ke VIN pin me aur battery ka negative terminal Arduino ke GND pin me..
@LailyQurota
@LailyQurota Жыл бұрын
Hi, thank you for your tutorial. I've following your every step by step, but when i try to monitor it after upload the code, they tell me that connecting to DFPlayer mini failed, can you help me with that?? i have install the library btw
@fairelectro
@fairelectro Жыл бұрын
Your df player mini is not connected properly. Check wiring
@LailyQurota
@LailyQurota Жыл бұрын
@@fairelectro now, it is shown OK but only that..
@ericsonjohnpiano8815
@ericsonjohnpiano8815 6 ай бұрын
Can you use Arduino Uno for this?
@fairelectro
@fairelectro 6 ай бұрын
Yes, we can use.
@andreschulz1090
@andreschulz1090 7 ай бұрын
sehr Cool danke da für, aber eine Frage, es geht bei mir nur mit wenn auch der USB angeschlossen ist, ist das Normal ? ich möchte es komplett als Akku betrieb haben ist das Möglich ? wenn ja, wie ?? ich hab da nicht so eine große Ahnung mit sowas
@fairelectro
@fairelectro 7 ай бұрын
Schließen Sie eine 5-V-Gleichstromversorgung an. Verbinden Sie +ive mit dem Vin-Pin des Arduino und -ive mit dem GND-Pin.
@andreschulz1090
@andreschulz1090 7 ай бұрын
@@fairelectro ja super danke für die Info werde es morgen direkt machen Top
@retrobombstudios1258
@retrobombstudios1258 10 ай бұрын
could this be connected to a pico?
@fairelectro
@fairelectro 10 ай бұрын
yes, we can connect.
@aathifshaan6663
@aathifshaan6663 4 ай бұрын
Sir can i use ultrasonic sensor instead of Pir…. Pleese reply🙏🏽
@fairelectro
@fairelectro 4 ай бұрын
Yes, we can connect.
@aathifshaan6663
@aathifshaan6663 4 ай бұрын
@@fairelectro should we make any change in code??
@kassidyye568
@kassidyye568 28 күн бұрын
@@aathifshaan6663hey, did u ever figure out the code? i also have an ultrasonic instead of a PIR
@VijayVijay-dm2bn
@VijayVijay-dm2bn 6 ай бұрын
I need a similar setup for my project - Actually I am making formula one car model( 10 feet in size) for display purpose. I want to put this setup in my car so that when ever people come closer to the car, the sensor sense the moving object and play a sound of real formula car. Can you build this setup for me ?
@gustavoscarrone3538
@gustavoscarrone3538 8 ай бұрын
Hello, very nice!! I wonder if this has to be plugged into the the computer at all times? that is the only part I didn't get...
@fairelectro
@fairelectro 8 ай бұрын
Its working with 5v DC power
@FinnTobey-j6l
@FinnTobey-j6l 13 күн бұрын
Williams Scott Jackson Sharon Young Lisa
@lottebidee
@lottebidee 2 ай бұрын
Hi! would like to use this for an installation, using audio exciters + installation would be behind window. would the sensor be sensible enough to work? thank you for your reply and would it work with audio executors (+ which ones are the best? ). Also the audio files would be 10` is this soutable for Arduino?
@fairelectro
@fairelectro 2 ай бұрын
yes it works. Sensor rang upto 21 feet.
@clintonreducto2924
@clintonreducto2924 2 күн бұрын
How about if ibaant to detect only for human? Is other motion things or like animals detected?
@fairelectro
@fairelectro Күн бұрын
yes, it detects any type of motion.
@rrggaming420
@rrggaming420 Жыл бұрын
Can i use IR infrared obstacle avoidance sensor plzz reply
@fairelectro
@fairelectro Жыл бұрын
Yes, you can use but its not a long range sensor
@rrggaming420
@rrggaming420 Жыл бұрын
Thanks again 👍🏻😄
@rrggaming420
@rrggaming420 Жыл бұрын
I am using ir infrared sensor Aur use ye PIR error bta rha hai KYA KRU Compile nhi ho rha
@rrggaming420
@rrggaming420 Жыл бұрын
/sdk/hardware/tools/avr/bin/avr-g++ -no-canonical-prefixes -std=gnu++11 -c -g -Os -w -mmcu=atmega328p -DF_CPU=16000000L -DUSB_VID=null -DUSB_PID=null -DARDUINO=10812 -DIDE="ArduinoDroid" -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO /build/sketch_sep04a.cpp -o /build/sketch_sep04a.cpp.o sketch_sep04a.ino: In function 'void loop()': sketch_sep04a.ino:38:27: error: unable to find numeric literal operator 'operator"" PIR' Return code is not 0 Ye aa rha hai
@rrggaming420
@rrggaming420 Жыл бұрын
Iska solution bta doo
@json6764
@json6764 Жыл бұрын
Nice Project... Thank you I will give it a shot, hey can this run on 5 volts?
@fairelectro
@fairelectro Жыл бұрын
yes, it works on 5v.
@kaliktp1586
@kaliktp1586 24 күн бұрын
Just wondering if an upgraded to 100 db speaker what would the set up be?
@fairelectro
@fairelectro 24 күн бұрын
use audio amplifire
@vaishalikashid4245
@vaishalikashid4245 9 ай бұрын
Do i have to connect mobile charger to the circuit with the batteries or instead of batteries. And where to connect the charger ? And do i have to connect the laptop continuously for the SOFTWARE as shown in the video. Pls reply it would be a great help.:D😊
@fairelectro
@fairelectro 9 ай бұрын
Arduino needs 5v DC. and mobile charger have 5v DC output. you can connect mobile charger directly . You can also connect battries
@cyrilkittondaan6657
@cyrilkittondaan6657 6 ай бұрын
Can I use sound module so that when it detect noise the Mp3 module will give an audio warning? Please reply
@fairelectro
@fairelectro 6 ай бұрын
Yes you can use.
@royal..rajput
@royal..rajput Жыл бұрын
If I want to make a similar system for three doors, then how will it be made?
@fairelectro
@fairelectro Жыл бұрын
Use three pir sensors for three doors with single arduino nano
@royal..rajput
@royal..rajput Жыл бұрын
How can I connect? Please send the circuit diagram. Is it a bit urgent please?
@royal..rajput
@royal..rajput Жыл бұрын
And instead of Arduino I have used esp32, its code
@vaishalikashid4245
@vaishalikashid4245 9 ай бұрын
Hi I wanted to make this for my school project. Just wanted to ask do i have to connect my laptop continuously to the circuit or will the PIR detect without it.pls let me know.And thanks for a wonderful idea. :D
@fairelectro
@fairelectro 9 ай бұрын
Just connect to Mobile charger or give 5v dc to GND pin and Vin pin of arduino
@anapamelabandoy927
@anapamelabandoy927 4 ай бұрын
Hi, I'm still new to this. My student is working on a project similar to this, but we cant place a servo motor code along with this set-up. Our concept is like whenever the PIR can sense something the speaker will play the audio and at the same time the servo motor will move as well. Can you help? Thank you
@fairelectro
@fairelectro 4 ай бұрын
I make video on this project as soon as possible.
@jvvalle7714
@jvvalle7714 4 ай бұрын
​@@fairelectro hi I'm one of the advisers of the student working on this project, and we've really hit a wall, the presentation of the device is fast approaching and we don't know how to move forward on this. I hope you can help. Thank you so much
@jvvalle7714
@jvvalle7714 4 ай бұрын
​@@fairelectro hi I'm one of the advisers of the student working on this project, and we've really hit a wall, the presentation of the device is fast approaching and we don't know how to move forward on this. I hope you can help. Thank you so much
@jvvalle7714
@jvvalle7714 4 ай бұрын
​@@fairelectro hi I'm one of the advisers of the student working on this project, and we've really hit a wall, the presentation of the device is fast approaching and we don't know how to move forward on this. I hope you can help. Thank you so much
@jvvalle7714
@jvvalle7714 4 ай бұрын
​@@fairelectro hi I'm one of the advisers of the student working on this project, and we've really hit a wall, the presentation of the device is fast approaching and we don't know how to move forward on this. I hope you can help. Thank you so much
@fantomedits800
@fantomedits800 9 ай бұрын
sir i have an big question that that i am not able understad codeing
@kassidyye568
@kassidyye568 28 күн бұрын
this is so cool! i want to make a similar motion detecting speaker, but i want to play music from my spotify library instead. do you have any recommendations on what player to use instead of a DF player?
@imnotcreativeenough8453
@imnotcreativeenough8453 10 ай бұрын
Does it have to stay connected to the PC or would it still work after disconnecting it?
@fairelectro
@fairelectro 10 ай бұрын
It will worked after disconnecting. It needs 5v DC power only.
@Sor3x_the.Original
@Sor3x_the.Original Ай бұрын
Nice thanks you ❤❤
@nuraminhossain6762
@nuraminhossain6762 3 ай бұрын
This project is not possible without Arduino Nano? 0:40
@fairelectro
@fairelectro 3 ай бұрын
you can use arduino uno
@DigitalRyuutaCyberIntelligence
@DigitalRyuutaCyberIntelligence 4 ай бұрын
Nice tutorial mate. I have two question, would it be possible to connect a second speaker for Stereo Sound. So basically one for the Right and One for the Left channel? And is it possbile to have random playback mode with multiple sound files? So each time it triggers, it plays a different sound?
@fairelectro
@fairelectro 4 ай бұрын
yes, its possible.
@fairelectro
@fairelectro 4 ай бұрын
Connect first speaker to GND pin and L spk pin and second speaker to GND and R spk pin.
@DigitalRyuutaCyberIntelligence
@DigitalRyuutaCyberIntelligence 4 ай бұрын
@@fairelectro Thank you for the quick reply! I will order the parts soons :)
@kyramoelcha7523
@kyramoelcha7523 7 ай бұрын
can you also do it when you do a a specific move like if you just walk it plays a sound
@fairelectro
@fairelectro 7 ай бұрын
yes, sound plays
@eyzonyt1678
@eyzonyt1678 6 ай бұрын
Can you use uno instead of nano? is the code the same?
@fairelectro
@fairelectro 6 ай бұрын
Yes, we can use arduino uno.
@girishc8816
@girishc8816 4 ай бұрын
we can use without laptop
@fairelectro
@fairelectro 4 ай бұрын
yes we can use with 5v dc power
@EVERSSANTOS1
@EVERSSANTOS1 Жыл бұрын
Hello! I carried out your project, but when I disconnect it from the USB port it does not work, could you tell me how to solve this problem? Thanks.
@fairelectro
@fairelectro Жыл бұрын
which board you are using?
@EVERSSANTOS1
@EVERSSANTOS1 Жыл бұрын
Arduino Nano V3.0 Atmega 328 Ch340@@fairelectro
@vaishalikashid4245
@vaishalikashid4245 9 ай бұрын
Hi Can I use mp3 player instead of df mini player.pls reply
@fairelectro
@fairelectro 9 ай бұрын
Which mp3 player you want to use?
@TMRu22311
@TMRu22311 10 ай бұрын
I have a small project and space is limited. Would this setup work with an Arduino Pro Mini and a 9v battery? I am almost sure it would work, but want to be certain. Also, Does the DF mini have a small amp built in? I want to use a small speaker and it doesn't need to be very loud at all. Thank you for sharing :D
@fairelectro
@fairelectro 10 ай бұрын
yes, it works
@fairelectro
@fairelectro 10 ай бұрын
you can connect 3 watt speaker
@TMRu22311
@TMRu22311 10 ай бұрын
@@fairelectro Thank you for the reply, I appreciate that Sir!
@25akashpal67
@25akashpal67 6 ай бұрын
how can i use other audio instead of this welcome audio??
@fairelectro
@fairelectro 6 ай бұрын
copy audio file into sd card which you want to play
@funnydog9508
@funnydog9508 4 ай бұрын
Sir can we use ir sensor at the place of motion sensor
@fairelectro
@fairelectro 4 ай бұрын
Yes, we can connect.
@mosaddekhossain7568
@mosaddekhossain7568 7 ай бұрын
Bro,How can I Design my circuit diagram for project,I need just a Diagram or Figure
@Xenpai-tl6mb
@Xenpai-tl6mb 4 ай бұрын
Can i use Arduino uno instead of Arduino nano?
@fairelectro
@fairelectro 4 ай бұрын
yes you can use aarduin uno.
@Rod-Breaker
@Rod-Breaker 4 ай бұрын
It support any type of audio file?
@fairelectro
@fairelectro 4 ай бұрын
it supports mp3, wav format files.
@junjelnavales4619
@junjelnavales4619 8 ай бұрын
Why I can't open the code you provide?
@fairelectro
@fairelectro 8 ай бұрын
Install arduino IDE software on your computer and then open
@ADITYAFFLIVE52
@ADITYAFFLIVE52 4 ай бұрын
Sir what use df moni player and sd kard
@saisallinonechannel9421
@saisallinonechannel9421 5 ай бұрын
Want this in ac current
@fairelectro
@fairelectro 5 ай бұрын
You want to play audio with ac current?
@14615elpuma
@14615elpuma 11 ай бұрын
Where can i buy the whole kit?
@fairelectro
@fairelectro 11 ай бұрын
In video description, all component links are listed
@EdG407FL
@EdG407FL 8 ай бұрын
Hi, I am looking for a device with a pre-recorded message via an SD card to plug and play. Could I connect this device to a stereo amplifier and then to speakers? I am thinking of getting a Sparkfun Trigger and a stereo amp. Ideally I would like the sound to activate automatically when the power is turned on without the use of any other controllers such as an Arduino. Does something like this even exist? Please let me know, thank you.
@jaisiddhisuperpowerpltd1872
@jaisiddhisuperpowerpltd1872 5 ай бұрын
if your sound is under 10 second then you should buy 1820 py voice module in which you donot need to add sd card and if your sound if more than 10 sec then you should search on google MTP(multi time programmable) voice module
@zoubirabbes3551
@zoubirabbes3551 4 ай бұрын
Wich software u use to do the schematic
@imnotcreativeenough8453
@imnotcreativeenough8453 5 ай бұрын
Hello! So, I have couple of question regarding both the Arduino IDE and the speaker. The speaker you use in the video seems to be different from the one you used in the video? Also, after running the code, it gives the error message "fatal error: DFRobotDFPlayerMini.h: No such file or directory #include "DFRobotDFPlayerMini.h" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. exit status 1 Compilation error: DFRobotDFPlayerMini.h: No such file or directory" Is there a way I cou,d fix this? I've installed the zip folder you provided in the description.
@fairelectro
@fairelectro 5 ай бұрын
Install DFRobotDFPlayerMini.h library first
@imnotcreativeenough8453
@imnotcreativeenough8453 5 ай бұрын
@@fairelectro Thank you so much 🙏
@electrodoctorofficial
@electrodoctorofficial Жыл бұрын
Wonderful working
@HamzaAfzalv
@HamzaAfzalv 10 ай бұрын
can we play multiple audios? like welcome and then thanks for shopping when exiting?
@fairelectro
@fairelectro 10 ай бұрын
Yes we can
@royal..rajput
@royal..rajput Жыл бұрын
Please reply and send me solution
@rrggaming420
@rrggaming420 Жыл бұрын
Thanks
@fairelectro
@fairelectro Жыл бұрын
Can use any bread board
@allunagarajuallu399
@allunagarajuallu399 Жыл бұрын
Please send me code zip file
@fairelectro
@fairelectro Жыл бұрын
Code link given in video description
@allunagarajuallu399
@allunagarajuallu399 Жыл бұрын
Zip file name tell me it compiling shows error
@fairelectro
@fairelectro Жыл бұрын
@@allunagarajuallu399 install df player library
@abhishek____IIII
@abhishek____IIII 10 ай бұрын
Sir can we use Arduino Uno
@fairelectro
@fairelectro 10 ай бұрын
Yes, we can use.
@abhishek____IIII
@abhishek____IIII 10 ай бұрын
​@@fairelectrosir can you pls give me your whatsaap number I am having trouble
Mastering MP3 Player Busy Pin with Arduino & Audio-Visual Synchronization
13:26
The Last Outpost Workshop
Рет қаралды 9 М.
Audio modules for electronics project
37:54
Playful Technology
Рет қаралды 52 М.
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 92 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,5 МЛН
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 56 МЛН
DIY Home Security - ON A BUDGET!
9:12
DIY Perks
Рет қаралды 5 МЛН
How to make Mini Plotter V1
7:46
Average Engg
Рет қаралды 2,2 М.
Best BASIC Controllers for WLED! (QuinLED, Athom, Smlight, + more)
19:08
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
Mining Magnetite
16:20
Cody'sLab
Рет қаралды 268 М.
Effective Ways To Detect People With Common Sensors
7:43
Core Electronics
Рет қаралды 78 М.
Easy Diorama and Book Nook Audio - DFPlayer Mini #dfplayer-mini
10:11
Random Making Encounters
Рет қаралды 25 М.