Make-an-Entrance Party Doorbell

Let your guests choose their own sound effects, using clever wireless sensors and a Raspberry Pi.

Written by Matt Richardson

image
image

MATT RICHARDSON
(mattrichardson.com) also wrote the feature “Raspberry Pi Inside” on page 26 of this issue. His books Getting Started with Raspberry Pi and Getting Started with BeagleBone are available at makershed.com.

NEXT TIME YOU HOST A PARTY, LET YOUR GUESTS CHOOSE WHAT KIND OF ENTRANCE TO MAKE! The Make-an-Entrance Party Doorbell is a wireless doorbell with four buttons. Your guests can select between themes you choose, say, royal fanfare, heavy metal, Star Trek, or cheering sports fans. When they push a button, a regular doorbell sound is heard inside. But when the door is opened, a fun sound effect is played to match their selection.

At the core of the project is a Raspberry Pi equipped with the EnOcean Sensor Kit. This kit is neat because it allows you to use wireless sensors and buttons that don’t require batteries. The kinetic energy exerted to press the doorbell button is used to send a wireless signal to the Raspberry Pi to select the sound effect. A solar-powered contact sensor then signals the Pi that the door has been opened, prompting the Pi to play the appropriate sound.

Changing the entrance themes is as easy as changing WAV files and updating a dry-erase board. Your friends will always look forward to making an entrance at your next party.

image

1. SET UP THE TRANSCEIVER MODULE AND FHEM SERVER. The EnOcean transceiver plugs into your Raspberry Pi’s I/O pins. Update the Pi software and firmware as described on the makezine.com project page, then install FHEM, the open-source home-automation web server.

2. TEST FHEM. Find your Pi’s IP address, then open your computer’s web browser to http://<RPi-IP-Address>:8083/fhem. You’re looking at the FHEM web server on your Pi. Test the EnOcean switches and you’ll see their statuses change on the web page. Cool!

3. DOWNLOAD PROJECT CODE AND SOUND FILES. The Python source code will connect to FHEM via telnet and process all the actions that FHEM detects from the EnOcean Pi module. You just need to find 4 fun WAV files for sound effects, plus a fifth for the doorbell sound. Freesound.org is a great resource.

4. INSTALL THE SENSORS. Stick the EnOcean kinetic switch to the dry-erase board with mounting tape and decorate according to your themes. Attach the contact sensor to the door frame, and its magnet to the door.

5. FINISHING TOUCHES. Edit your Pi’s crontab to launch the party doorbell script on reboot. Remove your keyboard, mouse, and monitor, and plug your sound system into the Pi’s analog audio output. Your Make-an-Entrance Doorbell is ready to party. Images

Get complete instructions, code, and video on the project page: makezine.com/projects/make-an-entrance-party-doorbell

Time Required: 1–2 Hours

Cost: $140–$200

Materials

» Raspberry Pi single-board computer, Model B or B+ Maker Shed item #MKRPI2 or MKRPI5, makershed.com, running the latest version of Raspbian and connected to the internet

» SD Card, 4GB or more Get a Pi and 8GB SD card together, Maker Shed #MKRPI4 or MKRPI5. Or get more goodies in the Raspberry Pi Essentials Kit #MSRPIESS, or Raspberry Pi Starter Kit #MSRPIK.

» EnOcean Pi RF Module from Element 14 at element14.com. Choose the 902MHz version for U.S.A./Canada, 868MHz for Europe/China, or 315MHz for Asia excluding China.

» EnOcean Sensor Kit from Element 14. The kit includes kinetic pushbutton switch module, and solar-powered magnetic reed switch and temperature sensor modules. Again, choose 902MHz, 868MHz, or 315MHz.

» Spare rocker plate for EnOcean kinetic switch Get a second kit, or 3D-print your own plates following the guide at makezine.com/go/enocean-rocker.

» USB power supply

» Computer speakers or sound system

» Mounting putty

» Dry-erase board, small (optional) for the doorbell sign. Feel free to be creative with other materials here.

» Mounting tape

Tools

» USB keyboard such as Maker Shed #MKPMR06 or MKPMR07

» USB mouse

» HDMI monitor with audio capabilities

» Computer

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.42.240