Button Party - Photobooth (Raspberry PI)

by sam.hermans in Workshop > Laser Cutting

666 Views, 1 Favorites, 0 Comments

Button Party - Photobooth (Raspberry PI)

20191011_151052.jpg

For one of our recent events we were looking for a way to equip each of our 8 offices in Belgium with a massive button, whenever the button is pressed a sound plays and a picture is taken and uploaded to slack.

Supplies

For one button you will need:

- 1 x Raspberry Pi (model doesnt really matter, we went for 3B)

- 1 x Power Supply

- 1 x SD Card ( We went with raspbian lite)

- 1 x Set of Speakers (link)

- 1 x 100mm button (link)

- 4 x Header Cables

- 1 x Resistor

- 4 x mounting screws

Go to Your Local Hackerspace / Makerlab / Fablab

20191009_174437.gif

For the next step you will need access to a Lasercutter.

If you live in Belgium go here.

For the button casing we went with 6 milimeter MDF wood.

Make sure the laser cutter is set to:

  • 6mm / MDF
  • red = CUT
  • black = ENGRAV

For tips and tricks on how to get the best results I would recommend reading this post.

Glue All the Boxes!

20191009_172617.jpg
20191010_085408.jpg
20191010_000103.jpg

The next step is easy and fun.

Buy some regular wood glue and glue all the pieces EXCEPT the backplate.

PS: Did we tell you you can also build these boxes in plexi ? If you do make sure you reverse all the text on them because it will be mirrored when you engrave.

Attach the Raspberry Pi

20191011_122803.jpg

We included some nice mounting holes for you to attach the Pi to the wooden backplate.

You should mount the Pi with the HDMI facing the open square.

Start Soldering

20191011_124533.jpg

There are a lot of ways to connect a push button to a Pi, and unfortunately most of them are just wrong.

I would recommend reading up on this article before you continue.

Upload the Software!

20191011_133407.jpg
20191011_133006.jpg

The way that our software works is like this:

- Pi Runs Debian

- Debian Runs Python

- Python Connects to GPIO for button presses

- Python runs pygame (for easy Webcam access and visuals)

Whenever a picture is taken pygame will send a REST call to a PHP server listening for POST-data.

The PHP server keeps track of all images and uploads them to slack.

You can go ahead and download our photo booth software from GitHub