door welcome music

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.

door welcome music - complete system

door welcome music - hall sensor and door

door welcome music - arduino setup in boxdoor welcome music - arduino setup in boxdoor welcome music - panic buttondoor welcome music - breadboard setup

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.

Tagged , , , , ,

11 thoughts on “door welcome music

  1. […] 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 […]

  2. […] 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 […]

  3. […] 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 […]

  4. […] 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 […]

  5. […] 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 […]

  6. Karl says:

    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

    • dynamicboost says:

      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.

  7. […] Что может быть лучше когда возвращаешься домой после трудного дня, чем крутая музычка, играющая, когда ты заходишь домой. […]

  8. […] to http://dynamicboost.wordpress.com/2012/03/05/door-welcome-music/ for help with finding the materials and the […]

  9. Graveyard Workshop says:

    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! :-)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: