DOCTOR WHO MUSIC PLAYER
I acquired an old Doctor Who Money Box from a car boot sale, for a pound, but it sat on the shelf for many months as I didn't know what to do with it. Then Pimoroni released their Pirate Audio range. A small HAT, or as they call them pHAT, which sits neatly on the top of a Raspberry Pi Zero. Guess what, it is also the perfect size for attaching to one of the side panes of the Doctor's TARDIS.
Because the TARDIS was a money box it is hollow inside. This makes it perfect for housing the Raspberry Pi and meant that I could simply slot in the Raspberry Pi and the speakers inside TARDIS. Although I did have to use a Dremel to carefully remove some of the plastic. The pirate audio is easy to set up and Pimoroni have made a really good guide which makes it clear and simple to set it up. I copied over a few MP3 music files onto the Raspberry Pi placing them in the Standard Music Folder and when I ran the software from Pimoroni it automatically found the music files and added them to the pirate audio The TARDIS uses Mopidy which is a free extensible music server written in Python, perfect for running on the Raspberry Pi, this enables you to access the TARDIS (Raspberry Pi) directly from a laptop tablet or mobile device. Simply key in the IP address of your Raspberry Pi and it will take you to the setup page, from here you can create track listings, playlists and you can also link your Spotify or other 3rd party music streaming services. One of the configurations that I had to make was to the IP address as this is a dynamic IP address so it changes every time that you load up the Raspberry Pi. This is a problem because it means that you always must enter in the new IP address in order to access your music. To solve this issue, I set up a static IP address, thanks to the PiHut for their simple how to user guide. The final feature of the TARDIS is its flashing blue light. I wrote a simple Python code to enable the blue LED to flash. This was coded using GPO Zero and basically consists of four functions, one that flashes the light another one that keeps the light static, a third one that flashes the light slowly and the forth one that pulses the light. When the Raspberry Pi boots up a crontab is run which executes the Python program which selects a random function, therefore you get a random light output and some music. Check out Pimoroni's range of Pirate Audio which are available here : |
Click below for code
|
- Home
- Python
- Ras Pi
-
Pi Hardware
- Pi-Hacks
-
Pi-Hacks 2
- The Joker
- Hologram Machine
- Google Vision: Camera Tell
- Yoda Tweets
- Pi Phone
- Darth Beats
- Twitter Keyword Finder
- Crimbo Lights Hack
- Xmas Elf
- Halloween 2016
- Halloween Hack 2015
- Socrative Zombie
- Voice Translation
- The Blue-Who Finder
- GPIO, Twitter
- Pi Chat Bot >
- PiGlow & Email
- Pibrella Alarm System
- SMS with Python >
- Pi-Hacks 3
- Minecraft
- Computing
- Contact Me
- Random Hacks