GIF Photo Booth
![wedding.gif](/proxy/?url=https://content.instructables.com/FSG/HEN5/JKVCS17T/FSGHEN5JKVCS17T.gif&filename=wedding.gif)
This is a GIF Photo Booth that I made for my wedding. I didn't want to spend a ton of money renting one so I decided to DIY a (relatively) low-cost version. While this seems really complex on first glance, if you've ever built something using a microcontroller before, this project is actually fairly easy. It's definitely easier than planning a wedding. That much is for certain.
Anyhow, this photo booth takes a series of 6 images, compresses them into a GIF file and then uploads it to Giphy. In doing this it creates a great online archive of your special event. The fact that it creates animated image sequences makes it super-fun for your guests to play with, and everyone has a great time using it. It was a big hit.
Materials
![02.jpg](/proxy/?url=https://content.instructables.com/FWR/JFPB/JOYNSXO3/FWRJFPBJOYNSXO3.jpg&filename=02.jpg)
![47.jpg](/proxy/?url=https://content.instructables.com/FQ9/DU95/JOYNSZ4P/FQ9DU95JOYNSZ4P.jpg&filename=47.jpg)
Materials you will need:
(x1) Raspberry Pi starter kit
(x1) Raspberry Pi camera V2
(x1) Thumb drive
(x1) 12" camera extension cable
(x1) LCD screen
(x1) HDMI cable
(x1) USB extension port
(x1) USB hub
(x1) USB keyboard
(x1) USB mouse
(x1) 1/4" mono jack
(x1) Power jack
(x1) 6-pin female header
(x1) 12V to 5V power adapter
(x1) 12V power supply
(x1) 25' 1/4" to 1/4" mono cable
(x1) Foot pedal switch
(x1) Video tripod
(x2) 16" x 1-1/4" x 1-/14" x 1/8" thick aluminum bars *
(x6) 1/4-20 x 3/8" thumb screws (for back panel)
(x6) 6-32 x 3/8 flathead bolts (for front panel)
(x4) M4 x 10mm bolts (for screen)
(x2) M2 x 8mm bolts (for camera)
(x2) #4 x 1/16" spacers (for camera)
(x4) #4 x 1/8" spacers (for Raspberry Pi)
(x4) 4-40 x 3/8" bolts (for Raspberry Pi)
(x2) 6-32 x 3/8" bolts (for power converter)
(x1) Stranded wire
(x1) Assorted shrink tube
(x5) Small zip ties
(x1) 18" x 18" x 1/8" black acrylic
(x1) 18" x 18" 1/4" black acrylic
(x1) 12" x 12" vinyl adhesive (optional)
* I purchased a 3' bar and cut it down to size.
Tools you will need:
(x1) 1/4-20 tap
(x1) 6-32 tap
(x1) 4-40 tap
(x1) M2 tap
(x1) #7 drill bit
(x1) #35 drill bit
(x1) 1/2" Countersink Bit
Cut the Acrylic
![01.jpg](/proxy/?url=https://content.instructables.com/F4B/ZY23/JOYNSXO2/F4BZY23JOYNSXO2.jpg&filename=01.jpg)
Download the attached cutting templates. Cut the front piece out of 1/4" black acrylic. Cut the back piece out of 1/8" black acrylic.
Ideally these pieces will be laser cut. If you do not have a laser cutter, or access to one through a local makerspace or want to pay an online service, then you can check out this Instructable which goes over digital fabrication by hand.
Thumb Screws
![09.jpg](/proxy/?url=https://content.instructables.com/FPL/3PGG/JOYNSXOB/FPL3PGGJOYNSXOB.jpg&filename=09.jpg)
![03.jpg](/proxy/?url=https://content.instructables.com/F67/BKFA/JOYNSXO4/F67BKFAJOYNSXO4.jpg&filename=03.jpg)
![04.jpg](/proxy/?url=https://content.instructables.com/FEX/IW7W/JOYNSXO5/FEXIW7WJOYNSXO5.jpg&filename=04.jpg)
![06.jpg](/proxy/?url=https://content.instructables.com/FDO/NVPP/JOYNSXO7/FDONVPPJOYNSXO7.jpg&filename=06.jpg)
![07.jpg](/proxy/?url=https://content.instructables.com/F8I/GMG8/JOYNSXO8/F8IGMG8JOYNSXO8.jpg&filename=07.jpg)
![08.jpg](/proxy/?url=https://content.instructables.com/FK1/V83Q/JOYNSXOA/FK1V83QJOYNSXOA.jpg&filename=08.jpg)
Line up the aluminum bars along the top and bottom edge of the 1/8" back panel. These are the edges that have three equally spaced holes.
Mark the center point of each of these holes on the aluminum bars using a transfer punch. Drill all the markings with #7 drill bits.Thread the holes with a 1/4-20 tap.
Also, while you're at it mark, drill and thread a 1/4-20 hole centered upon the plane that is perpendicular to one of the side with three holes on it. This will later serve to mount the photo booth to a tripod.
Attach the back panel to the aluminum bars using 1/4-20 thumbscrews.
Thread
![05.jpg](/proxy/?url=https://content.instructables.com/F8M/12WQ/JOYNSXO6/F8M12WQJOYNSXO6.jpg&filename=05.jpg)
Thread the four holes on the acrylic back panel that are arranged in a small square with a 4-40 tap. The Raspberry Pi will be mounted here.
Mount the Screen
![10.jpg](/proxy/?url=https://content.instructables.com/FED/QZ9Z/JOYNSXOO/FEDQZ9ZJOYNSXOO.jpg&filename=10.jpg)
![21.jpg](/proxy/?url=https://content.instructables.com/FJH/CKVL/JOYNSXYN/FJHCKVLJOYNSXYN.jpg&filename=21.jpg)
Mount the LCD screen to center of the back panel using M4 bolts.
![19.jpg](/proxy/?url=https://content.instructables.com/F4O/3ZSI/JOYNSXRX/F4O3ZSIJOYNSXRX.jpg&filename=19.jpg)
![11.jpg](/proxy/?url=https://content.instructables.com/FM8/8SKC/JOYNSXR0/FM88SKCJOYNSXR0.jpg&filename=11.jpg)
![15.jpg](/proxy/?url=https://content.instructables.com/FWN/L3YX/JOYNSXRT/FWNL3YXJOYNSXRT.jpg&filename=15.jpg)
![13.jpg](/proxy/?url=https://content.instructables.com/F1J/9K09/JOYNSXRQ/F1J9K09JOYNSXRQ.jpg&filename=13.jpg)
![14.jpg](/proxy/?url=https://content.instructables.com/F6K/KI5U/JOYNSXRS/F6KKI5UJOYNSXRS.jpg&filename=14.jpg)
![12.jpg](/proxy/?url=https://content.instructables.com/FLK/SXHF/JOYNSXR1/FLKSXHFJOYNSXR1.jpg&filename=12.jpg)
![16.jpg](/proxy/?url=https://content.instructables.com/F0A/PUFA/JOYNSXRU/F0APUFAJOYNSXRU.jpg&filename=16.jpg)
![17.jpg](/proxy/?url=https://content.instructables.com/FU3/0SNI/JOYNSXRV/FU30SNIJOYNSXRV.jpg&filename=17.jpg)
![18.jpg](/proxy/?url=https://content.instructables.com/FW6/OG3D/JOYNSXRW/FW6OG3DJOYNSXRW.jpg&filename=18.jpg)
![20.jpg](/proxy/?url=https://content.instructables.com/F4Y/3Y5E/JOYNSXRY/F4Y3Y5EJOYNSXRY.jpg&filename=20.jpg)
Flip the back assembly over so that the screen is facing up. Line up the 1/4" front plate atop the assembly.
Mark the three equally spaced mounting holes on the front panel onto the aluminum bar with a transfer punch.
Release the thumb screws from the back panel and once again free the aluminum bar from the acrylic panels.
Drill the new markings on the aluminum bar with a #35 drill bit. Thread them using a 6-32 drill bit.
While you're in the drilling mood, countersink both pairs of three mounting holes on the top and bottom of the acrylic panel's front face.
Flip the acrylic over so that the countersunk holes are facing down. Peel the protective coating off of this side. This is now the inward facing side.
Line up the aluminum bars with the mounting holes and fasten them in place with 6-32 x 3/8" flathead bolts.
Peel the Back
![22.jpg](/proxy/?url=https://content.instructables.com/FDM/KYVV/JOYNSY2I/FDMKYVVJOYNSY2I.jpg&filename=22.jpg)
Peel the coating off the inside face of the 1/4" back panel. This is the face the LCD screen is attached to.
Mount the Electronics
![26.jpg](/proxy/?url=https://content.instructables.com/FOW/FH0G/JOYNSY4N/FOWFH0GJOYNSY4N.jpg&filename=26.jpg)
![23.jpg](/proxy/?url=https://content.instructables.com/FES/ILIZ/JOYNSY4K/FESILIZJOYNSY4K.jpg&filename=23.jpg)
![24.jpg](/proxy/?url=https://content.instructables.com/FCO/35ZT/JOYNSY4L/FCO35ZTJOYNSY4L.jpg&filename=24.jpg)
![25.jpg](/proxy/?url=https://content.instructables.com/FC6/JBTE/JOYNSY4M/FC6JBTEJOYNSY4M.jpg&filename=25.jpg)
Now is time to mount the electronics to the acrylic back panel.
Mount the power jack, 1/4" mono jack and the USB jack to the panel using their mounting hardware.
Attach the 12V to 5V power convertor with 6/32 x 3/8" bolts.
Finally, attach the Raspberry Pi to the back panel using 4-40 x 3/8" bolts and 1/8" spacers.
Plug in Some Cables
![28.jpg](/proxy/?url=https://content.instructables.com/FZP/TC1I/JOYNSY4S/FZPTC1IJOYNSY4S.jpg&filename=28.jpg)
Connect the HDMI cable between the monitor and the Raspberry Pi.
Connect the cable from the panel-mount USB jack to the USB jack on the Raspberry Pi.
Connect the Jack
![30.jpg](/proxy/?url=https://content.instructables.com/FKN/C81G/JOYNSY4W/FKNC81GJOYNSY4W.jpg&filename=30.jpg)
![27.jpg](/proxy/?url=https://content.instructables.com/FA9/RGVT/JOYNSY4R/FA9RGVTJOYNSY4R.jpg&filename=27.jpg)
![29.jpg](/proxy/?url=https://content.instructables.com/FDO/KLR4/JOYNSY4T/FDOKLR4JOYNSY4T.jpg&filename=29.jpg)
Pull the four central pins out of the female header, leaving the two outside pins in place.
Solder a 12" red wire to one of the pins and a 12" green wire to the other pin.
Solder the other side of the red wire to the 1/4" jack's signal terminal. Solder the other of the green wire the to the 1/4" jack's outer barrel terminal. Honestly, if you mix these up it does not matter too much in this scenario.
Slide the female header onto Raspberry Pi's male header pins closest to the edge of the board such that one wire connects to Pin 18 and the other wire connects to 5V power. The red wire should technically go to the power pin. However, once again it honestly does not matter if this gets reversed since the switch that these wires are ultimately attached to is not directional.
Wire the Power Jack
![31.jpg](/proxy/?url=https://content.instructables.com/F6N/Z21K/JOYNSY5L/F6NZ21KJOYNSY5L.jpg&filename=31.jpg)
Connect the red wire from the 12V power converter to the terminal connect to the center pin of the power jack.
Connect the black wire right next to the red wire from the power brick to the other terminal of the power jack.
Wire the Plug
![32.jpg](/proxy/?url=https://content.instructables.com/F5Z/O5GY/JOYNSY5M/F5ZO5GYJOYNSY5M.jpg&filename=32.jpg)
Next, cut the plug end off the power supply to the LCD screen.
Strip back the insulation from the two wires connected to the plug.
Connect the one wire that is continuous with the plug's barrel jack to the ground connection of the power jack.
Connect the other wire continuous with the inside of the plug to the 12V power connection on the jack.
Connect the USB Plug
![35.jpg](/proxy/?url=https://content.instructables.com/F8Q/Q5ET/JOYNSY5P/F8QQ5ETJOYNSY5P.jpg&filename=35.jpg)
![34.jpg](/proxy/?url=https://content.instructables.com/FT3/V7FX/JOYNSY5O/FT3V7FXJOYNSY5O.jpg&filename=34.jpg)
![33.jpg](/proxy/?url=https://content.instructables.com/FQH/QMHH/JOYNSY5N/FQHQMHHJOYNSY5N.jpg&filename=33.jpg)
Cut the micro USB plug off of the Raspberry Pi's USB power adapter.
Solder the red power wire from the plug to the yellow 5V wire from the 12V to 5V power converter.
Connect the two black ground wires together as well.
Insulate the connections with shrink tube.
Plug in Some More Stuff
![36.jpg](/proxy/?url=https://content.instructables.com/FS9/U224/JOYNSY6E/FS9U224JOYNSY6E.jpg&filename=36.jpg)
Plug the power jack cable into LCD screen.
Insert the USB plug into the Raspberry Pi's USB input jack.
Clean up the cables by coiling them together and using a zip ties to keep them bundled.
Mount the Camera
![37.jpg](/proxy/?url=https://content.instructables.com/F0B/AV2O/JOYNSYOG/F0BAV2OJOYNSYOG.jpg&filename=37.jpg)
![38.jpg](/proxy/?url=https://content.instructables.com/FT8/3QWV/JOYNSYOH/FT83QWVJOYNSYOH.jpg&filename=38.jpg)
Thread the two camera mounting holes in the acrylic front plate using a M2 tap.
Use M2 x 8mm bolts and 1/16" spacers to mount the Raspberry Pi camera to the inside of the front panel.
Attach the Back Panel
![39.jpg](/proxy/?url=https://content.instructables.com/FYE/3KY8/JOYNSYT3/FYE3KY8JOYNSYT3.jpg&filename=39.jpg)
![40.jpg](/proxy/?url=https://content.instructables.com/FAF/4FMV/JOYNSYT4/FAF4FMVJOYNSYT4.jpg&filename=40.jpg)
Attach the back panel of the photo booth to the aluminum bars using the thumbscrews.
Peel the Cover
![42.jpg](/proxy/?url=https://content.instructables.com/FU4/868X/JOYNSYRU/FU4868XJOYNSYRU.jpg&filename=42.jpg)
![41.jpg](/proxy/?url=https://content.instructables.com/FF3/HJF9/JOYNSYRT/FF3HJF9JOYNSYRT.jpg&filename=41.jpg)
Peel the protective coating off the photo booth's front acrylic panel.
Labels (optional)
![46.jpg](/proxy/?url=https://content.instructables.com/FZE/WUZ1/JOYNSYZC/FZEWUZ1JOYNSYZC.jpg&filename=46.jpg)
![43.jpg](/proxy/?url=https://content.instructables.com/F8R/SXEJ/JOYNSYZ7/F8RSXEJJOYNSYZ7.jpg&filename=43.jpg)
![44.jpg](/proxy/?url=https://content.instructables.com/FCK/VD2I/JOYNSYZ8/FCKVD2IJOYNSYZ8.jpg&filename=44.jpg)
![45.jpg](/proxy/?url=https://content.instructables.com/FB7/2C9K/JOYNSYZB/FB72C9KJOYNSYZB.jpg&filename=45.jpg)
I cut a vinyl label which read "GIF PHOTO BOOTH" using a hobby vinyl cutter and placed it on the back. This was so that when people saw it from elsewhere in the room they knew what it was.
I also used vinyl to put information on the front of the photo booth letting people know the website they could visit to retrieve their pictures.
Assemble the Pedal Switch
![48.jpg](/proxy/?url=https://content.instructables.com/FXV/D1VX/JOYNSZ4Q/FXVD1VXJOYNSZ4Q.jpg&filename=48.jpg)
![49.jpg](/proxy/?url=https://content.instructables.com/FXL/JXLK/JOYNSZ4R/FXLJXLKJOYNSZ4R.jpg&filename=49.jpg)
![50.jpg](/proxy/?url=https://content.instructables.com/FA3/LXTV/JOYNSZ4S/FA3LXTVJOYNSZ4S.jpg&filename=50.jpg)
![51.jpg](/proxy/?url=https://content.instructables.com/FEN/JTWE/JOYNSZ5H/FENJTWEJOYNSZ5H.jpg&filename=51.jpg)
Open up the pedal switch as per the instructions on the switch.
Cut one end off of the 1/4" cable and strip back the outer insulation to reveal an insulated inner signal wire and an exposed ground wire.
Strip back a little insulation away from the signal wire. Solder one wire to the common terminal and the other wire to the NO (normally open) terminal. When the switch gets pressed the two terminals should make electrical contact.
Secure the cable in place inside the switch. I did this by both tying a stress relief knot (to keep it from getting pulled through) and also by using the inner stress relief clamp that was inside of the switch (the part with two screws).
Once I was sure it all looked good, I closed the switch back up.
About the Program
The program for the photo booth is based off of Lara Grant's Tumblr GIF Photo Booth. However, I decided to make some changes to it. For starters, it uploads to Giphy instead of Tumblr. Also, I created a more graphical interface to guide you through the process. Finally, I play back the gif at the end of the photo-taking sequence.
I should note that my 'GIF playback' is actually just a method of cycling through the image sequence that is used to create the GIF. I found that actual GIF playback was slow and unreliable, and kind of a pain-in-the-neck.
The code itself is fairly plug-and-play and does not need much customization.
This is the only line in the code that needs to be customized to upload to Giphy:
gif = upload(['*****INSERT CUSTOM TAGS*****'], 'animation.gif', username='*****INSERT YOUR GIPHY USERNAME HERE*****', api_key='******INSERT YOUR GIPHY API KEY HERE*****')
This line requires inserting your API key, username and custom tags. You should customize in text edit on your computer before copying it over to the Raspberry Pi.
In order to get an API key you need to register with Giphy for Developers. In order to really get it to work, you then need to apply for a production key in order to be able to upload more than 10 pictures a day. Also, to be entirely honest, the Giphy library I was using didn't work without the production key (this should not be the case).
Speaking of Giphy python libraries, you will need to download and install the following two libraries on your Raspberry Pi if you don't already have them:
giphypop
pygame
Now that you got all that, download the attached zip file (PythonFiles.zip), and load it onto a USB stick
Downloads
Plug Everything In
![pluggedIn.jpg](/proxy/?url=https://content.instructables.com/F5P/DZ4D/JPGW0BXY/F5PDZ4DJPGW0BXY.jpg&filename=pluggedIn.jpg)
The next step is to plug in everything in the following order:
- First, plug in the USB hub
- Next, plug the keyboard, mouse, and thumb drive with the software in the hub
- Once that is done plug the foot switch in the 1/4" jack
- Finally, plug in the 12V power supply to boot everything up.
Setup the Raspberry Pi
![gifPhotoDemo.jpg](/proxy/?url=https://content.instructables.com/FZ4/6Q7O/JPGW0C0I/FZ46Q7OJPGW0C0I.jpg&filename=gifPhotoDemo.jpg)
If you have never used a Raspberry Pi before or need a refresher on configuring it, check out Lesson 2 of Lara's Raspberry Pi Class.
Once your Raspberry Pi is configured, you are connected to a wifi network, and all of the photo booth files have been copied to the desktop, type the following into the Terminal:
>cd Desktop
>python photobooth.py
This should run the GIF photo booth.
If you are having trouble uploading GIFs, make sure that you have entered the correct username and API key. Also, be sure that you have formally registered your app with Giphy to get a full production key.
Once the program is running, you can unplug the USB hub (should you wish).
Setup the Photo Booth
![Photobooth1.jpg](/proxy/?url=https://content.instructables.com/F7X/JJ6A/JPADB1Q1/F7XJJ6AJPADB1Q1.jpg&filename=Photobooth1.jpg)
When your photo booth is thoroughly tested and you are ready for its debut, the next step is to install it.
Setup the photo booth on a tripod somewhere with a lot of floor space. Plug everything in, power it up, make sure it is connected to the internet and run the python script (as previously outlined).
It's best to point it at a blank wall or some sort of special backdrop.
For our wedding, I set up two C-Stands supporting a large white photo backdrop (which I had to iron). I attached the cloth to the C-stands by cutting a few small holes in it and zip tying it in place.
Have Fun!
![kissy.gif](/proxy/?url=https://content.instructables.com/FTH/AP2F/JPCY7H4V/FTHAP2FJPCY7H4V.gif&filename=kissy.gif)
![brothersHaley.gif](/proxy/?url=https://content.instructables.com/FIW/N57Y/JPCY7F14/FIWN57YJPCY7F14.gif&filename=brothersHaley.gif)
![conga.gif](/proxy/?url=https://content.instructables.com/FMS/T7LW/JPCY7F1P/FMST7LWJPCY7F1P.gif&filename=conga.gif)
Now is time to just let the photo booth do it's thing and have fun.
![](/proxy/?url=https://content.instructables.com/FP8/ABPR/K9R2LUOD/FP8ABPRK9R2LUOD.jpg?auto=webp&crop=1:1&frame=1&width=320)
Did you find this useful, fun, or entertaining?
Follow @madeineuphoria to see my latest projects.