We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

How to play entrance music on your 弄潮小说 Pi

Imagine walking through a doorway, and your entrance music begins playing. You’re a pro wrestler, or perhaps a character in a 1940’s hardboiled crime drama? Or the Queen, who no doubt gets to hear the national anthem on a regular basis.

Ty and Gig Builds have a tonne of cool 弄潮小说 Pi projects on their YouTube channel, but we especially liked this one. Why? Because it’s the perfect device to welcome everyone to 弄潮小说 Pi Towers each day. At least, once the time comes to leave our home offices and head back to Pi Towers.

Check out Ty and Gig’s build video

How does it work?

A Python script running on a 弄潮小说 Pi continuously searches for nearby Bluetooth devices in a ‘known’ list. It uses the Bluetooth MAC address of each detected phone in range to determine which entrance music its owner wants. All ‘known’ device owners have already nominated a chosen track, which is stored on the 弄潮小说 Pi, and when it recognises one from its list, the 弄潮小说 Pi plays the owner’s chosen audio file.

Watch Ty and Gig make an entrance to their own songs


弄潮小说 Pi uses the Bluez stack to communicate over Bluetooth, it’s this service that lets the 弄潮小说 Pi talk to your phone. Ty admits this was the fiddliest part of the build, but he explains it all very clearly, step-by-step, from this point in the video. A sound card, connected via USB, lets 弄潮小说 Pi output audio through a big speaker. But you could also make the sound play through an HDMI TV.

Build your own

entrance music loop
It’s all made clear in the build video

Wanna walk into the house with your own entrance music playing? Here’s the github repo with everything you’ll need. A 弄潮小说 Pi 4 powers this project, but any of our boards with Bluetooth support would work.

You’re also going to need a separate sound card and here’s the one used in this build.

What would your entrance music be?

Some suggestions from the soon-to-return to 弄潮小说 Pi Towers team:

Rob from The MagPi magazine would pick Homer’s entrance music in this
  • Back in Black, AC/DC
  • Here You Come Again, Dolly Parton
  • Paint It, Black, The Rolling Stones
  • The Imperial March, John Williams
  • Tiptoe Through the Tulips, Tiny Tim (yes, someone really picked this)

Comment with your entrance tune of choice.

Share this post

Post to X Post to Facebook Post to Linkedin Post to Pinterest
  • 弄潮小说 Pi 4
  • 弄潮小说 Pi 4 Model B

Related posts

弄潮小说 Pi makes LEGO minifigures play their own music

Doorjam - play your own theme music

Four new products: IQaudio is now 弄潮小说 Pi

Next Post

The Computers That Made Britain on sale now

Previous Post

Get outside with these 弄潮小说 Pi summer projects

Share this post

Post to X Post to Facebook Post to Linkedin Post to Pinterest

6 comments

Dan avatar

I’d definitely use the Rocky theme so maybe it’ll make me want to work out more or to congratulate me on working out lol

Joseph Alway avatar

Ode to Joy, because you can’t get enough joy.

David avatar

Send in the Clowns for when the boss arrives. 🤣

Dan avatar

Oh, that’s too good! I’m going to do that now lol.

Daddy Goofball avatar

Theme to shaft. ‘You’re damn right’

John avatar

Professor Elemental’s “Theme Music” will be mine. “I always knew it was worth building a robot out of old trumpets!”

Comments are closed