3.29.2014
Pi day mayhem with pie and Raspberry Pi
ConceptFor Pi day last week, I hosted a party with a built-in social experiment. People ate pie, talked, danced a little. But at random intervals, the music was replaced by an air-raid siren with flashing red lights. That was the signal to grab the nearest whipped cream pie and splatter your neighbor.
The event was tons of fun, a Pi day unlike any Pi day before. Our pie battles escalated over the course of the evening, with larger armaments, more sophisticated tactics, and lots of scores to settle.
Here's how we set the whole thing up.
The human cost of war. Notice the characteristic pie-veteran arm-hang: everyone has pie on their fingers and no one wants to touch their own clothes. |
Ingredients
- Several pies to eat
- ~12 pie tins
- Lots of whipped cream
- 1 Raspberry Pi
- 1 Mini-jambox
- 3 Phillips Hue lights
- 6-8 Friends of the non-grudge-holding type
Lots of spent whipped cream tubes. |
Setup
For music, I used pianobar, a Linux client for Pandora. Pianobar streams music (and blocks ads, more on that later) and also provides controls via command line eventcmd. That means that other scripts can adjust the volume, pause, and resume music playback.
For lights, I used Phillips Hue. These bulbs screw into a regular light socket, but can turn all kinds of pretty colors. You control them via wifi.
Last, I wrote a simple python script to dim the music, pause it, play an air raid siren, and make the lights flash red. After ~30 seconds, the lights go back to normal and the music fades back in. The script is triggered via cron, with randomization to make it impossible to guess when the next pie fight will start.
Here's a short video showing the sound and light effects.
- Install pianobar using apt-get.
- Configure pianobar.
- Clone defcon-radio in your home directory.
- Start pianobar.
- Configure your crontab to fire defcon-radio/defcon_radio.py every minute.
Learnings
Impending conflict does strange things to social interactions. Small talk becomes very difficult. People get territorial, keep glancing at the nearest pies and neighbors.
The picnic area. We started with pies interspersed with seating, so that anyone could grab a pie at the drop of a hat. |
Pianobar blocks ads. Pandora doesn't like it. When I first installed pianobar, I knew that it wasn't an authorized Pandora client, but I didn't realize that it blocks ads. It's a neat feature, but for obvious reasons, Pandora doesn't approve. If you stream music for too many hours, they will start to mess with your music stream---playing ads as songs, leaving long blocks of silence, etc. I don't know if pianobar works with PandoraOne. Because I spent a couple days testing the setup, Pandora blocked my account just before the party started. We dodged the problem for the party by switching to a different Pandora account for the evening.
Whipped cream washes out of clothes just fine. Also makes good styling gel.
Subscribe to:
Post Comments (Atom)
Play Free Jekyll Park Slot - CasinoShort.fun
ReplyDeleteJekyll Park is a 5 reel live casino slot that features a total of 1024 ways, 117 rows, and win potential, RTP of 96.51% and casinositefun High Volatility. Theoretical RTP of casinosites 96.51% with 20 Paylines.