finished the ‘door welcome music’ project and it’s working pretty nicely: when the door to our flat is opened a random mp3 will play and welcome the guest or say good bye. a panic button can be pushed to switch off the music immediately when needed. (video link)
hardware
a magnet is attached to the door and when it passes the hall sensor on the frame it will trigger a mp3 file. see the fritzing image for further reference about wiring the hall sensor and the push button. i am using the sparkfun mp3 player shield, as well as the proto screw board on top of it. also a cat-5 (normal ethernet cable) is utilized to connect sensor and arduino which makes it way less messy.
software
thanks to the awesome work of bill porter and bill greimann I can use their smooth libraries for this project: sparkfun mp3 player shield library and sdfat library. apart from that, the coding is pretty straight forward. whenever the magnet is sensed start to play the track, play it for a minute. if the button is pressed before that, stop the music. then pause for 30 seconds to avoid continous triggering. you can download the complete source code for this project here.






[...] thing you can look forward to when arriving at home after a long, arduous day at the office is some peppy theme music when you walk in the door. [Sebastian Sommer] built the system, and shows it off in the video after the break by dancing to [...]
[...] thing you can look forward to when arriving at home after a long, arduous day at the office is some peppy theme music when you walk in the door. [Sebastian Sommer] built the system, and shows it off in the video after the break by dancing to [...]
[...] thing you can look forward to when arriving at home after a long, arduous day at the office is some peppy theme music when you walk in the door. [Sebastian Sommer] built the system, and shows it off in the video after the break by dancing to [...]
[...] thing you can look forward to when arriving at home after a long, arduous day at the office is some peppy theme music when you walk in the door. [Sebastian Sommer] built the system, and shows it off in the video after the break by dancing to [...]
[...] thing you can look forward to when arriving at home after a long, arduous day at the office is some peppy theme music when you walk in the door. [Sebastian Sommer] built the system, and shows it off in the video after the break by dancing to [...]
I love this idea–any chance you can include a complete parts list and a bit more of the step-by-step instructions? I\’m new to Arduino and while this doesn\’t look too complicated, I don\’t totally understand how to do it for myself
yes, it’s fairly simple to do. you would need an mp3 player shield or a computer to play the files, the rest of the parts are pretty cheap and easy to organise:
digital hall sensor
magnet
push button
100k resistor (for hall sensor)
10k resistor (for push button)
arduino
mp3 player shield or computer
wiring (i use 2 cat-5 sockets and a cat-5 cable, soldered all parts to a small pcb)
powered speakers or speakers directly attached to mp3 player shield
i also use a proto screw shield for convenience, however this is not necessary.
look at the fritzing image for wiring. the full code can be downloaded here: http://www.sebastiansommer.com/arduino/sketches/doorwelcomemusic.ino it’s well commented so should be easy to follow and it will give you all necessary links to libraries, etc.
[...] Что может быть лучше когда возвращаешься домой после трудного дня, чем крутая музычка, играющая, когда ты заходишь домой. [...]
[...] to http://dynamicboost.wordpress.com/2012/03/05/door-welcome-music/ for help with finding the materials and the [...]
Hi,
I used your concept to make a PIR based Halloween Cemetery Howler designed to make spooky noises when people walk by. I put it out on YouTube on my Channel, GraveyardWorkshop. There is a complete how-to and a link to similar code. Thanks very much! If I had not seen your door-chime, I would not have had the opportunity to frighten so many kids and annoy so many dog owners!
hehe. this is a very purposeful use of the concept.
i do like it very much. have fun frightening the people walking by…