Weekend Project: Raspberry Pi Photo Booth

Weekend Project: Raspberry Pi Photo Booth

Hi, this is Wayne again with a topic “Weekend Project: Raspberry Pi Photo Booth”.
These days, everybody loves climbing around in photo booths at parties and weddings, but if you’re the one throwing the party, maybe you don’t want to risk your camera or laptop in case things get out of hand. Fortunately, single board computers and cheap camera modules make it super easy to create your very own and share those photos online. The gang over at ylm have been working on this project for quite a while. This is its first iteration. While i missed the huge red button, the newest version uses the raspberry pi touchscreen and the new raspberry pi 3, with the integrated wifi. If you have access to a 3d printer, there are some included files for mounting brackets or you can have a lot of fun. Building your own enclosure first you’ll need to get the latest version of raspbian. The official linux operating system for the raspberry pi then use your favorite imaging software to write the os to an sd card place the sd card into your pi and plug the pi into a monitoring keyboard plug in your camera. Module as well.

But don’t worry about the touchscreen just yet next up you’re going to run the initial configuration for the raspberry pi, there’s most of the usual stuff here, like expanding the file system, changing the localization settings and, of course, enabling the camera we’ll also need to get the Raspberry pi connected to the internet. The easiest way to do this is to go to the gui interface and connect to a local wi-fi network. There’S a number of software packages we’ll need to install before we compile the software for the photo booth, we’ll start by updating the os and then adding a handful of python packages like imaging g data, the google api and an alternate browser next, we’ll clone the software To run the photo booth, which is called, i kid – you not touch selfie next you’ll need to go to google and create an account or sign in to one that you already have once done, go to photos.google.com and create a new album. You’Ll need at least one image to start so make sure you have one handy already, then you’ll need to create an application specific password for your photo. Booth. You’Ll only be able to do this. If you have two-factor authentication set up on the account, so make sure you do that visit google’s security site to generate the password, write it down and keep it in a safe place. You’Ll need to use it later to connect your photo booth to google photos, while still logged into your account visit. Console.Developers.Google.Com click on create a project and name it whatever you’d like. While your new project is created, click on credentials on the left, menu and select the oauth consent screen tab complete the product name shown to users field which can be anything you like now select the credentials, tab, select, oauth, client id and click the create credentials.

Weekend Project: Raspberry Pi Photo Booth

Pull down select the other for application type and name it installed, and then click create now you’ll be able to see it in your list of credentials. For this app select the installed credential click, the download json button and a file name, something like client, secret and a whole bunch of numbers should download to your computer. Once it’s completed downloading, rename the file open, selfie.json and then drag and drop it into the touch. Selfie scripts directory now that we have all of our credentials in order it’s time to run, touch selfie. For the first time. Your web browser will pop up sign in to google using the same credentials as before, and then it will ask you if your pi photo booth can manipulate your photos, click on allow and then it will display a long string of numbers and letters copy.

The string and paste it into the terminal window after the prompt that says enter the authentication code hit enter and, if all is well, the photo booth will snap a photo and upload it to the album you have previously configured or it might generate an error. If that’s the case, we’ll need to configure an album open, another terminal window on the pi and run the list album script copy the id for the album that you want to use and add it to the config file for touch selfie while you’re in there. You can also add custom messaging to the email that’s generated when a photo was taken to customize the logo stamped onto each photo. Just save your new logo as a png file and move it into the scripts.

Folder then run photo booth again and click the customize button in the pop-up window. Next to logo file click, the browse button, select your file and click open. You should see a preview of your new logo when you’re done click done now. It’S time to finally install the touch screen, but before you begin shut down, the pi fasten, the pi 3 and the touch screen together using the included, screws and standoffs connect.

Weekend Project: Raspberry Pi Photo Booth

The touchscreen’s ribbon, cable to the pi headers marked display use a red jumper wire to connect the touchscreen’s five volt, pin to the pi’s gpio pin 2 and the black wire to connect the touchscreen ground to pi gpio, pin 6. thread. The camera’s ribbon cable, through the slot in the camera, mount reattach the ribbon cable to the board and affix the camera to the mount with poster tape. Fasten the leg stance to the touchscreen with the included screws, connect the pi 3 to a wall charger or portable battery pack using the micro usb cable.

Your photo booth is complete. Now we just covered the very basics of getting this project set up and ready to run, but you can have a ton of fun. Creating your own custom enclosure just go wild with creativity. We’Ve also seen this project change an awful lot since we were first introduced to it and i’m sure you have tons of ideas of ways to improve and extend it. Let us know in the comments below we’ll see you in the next weekend: project foreign .