We made an installation for a Virginia Is For All Lovers project, http://VAisForAllLovers.com .
It is made up of a Makey Makey, Arduino, and Code primarily, with some supplemental parts like music and bubbles.
The installation is to celebrate the diversity and human connection between all people of Virginia. We are moving the installation from place to place around the Richmond area. It invites people to share a photo of themselves with another person without regard to ethnicity, gender, religion, sexuality, social class, or disability. It is triggered by making a connection with another person.
Below you'll find the code and tuts we used to make this happen. Maybe you might want to make a photobooth or an installation of your own.
Step 1: The Things You'll Need...
1. Webcam with a long usb extension cable (at least usb 2.0)
2. Conductive handles of some sort (x2) with long wires that will reach your electronics
5. Computer speakers (or other amplified speaker set) and a 1/8" audio jack
8.Bubble Gun, twine, and a board
9. PC computer (we used a PC because it's inexpensive, the webcam works well with it, and we needed it to convert audio for the music module)
12. A domain server space (We're using 1and1.com)
13. BufferApp account (This allows you to email a photo to get queued for Twitter)
14. Twitter account
Tools: Soldering iron & solder, cutters, pliers, wire striper, dremel kit, and a helping-hand.
Plus stuff: Zip ties helped a lot and fearlessness.
Step 2: Get a Photobooth Site Up...
We used the photobooth tutorial and code found on tutorialzine and made modifications to it.
-Take photo on keypress 'u' (arbitrary, but it has to coincide with the keypress code on your Makey Makey)
-Upload automatically without preview or needing the 'upload' button to be pressed
Modifide code can be found here: https://github.com/AldoPadilla/ForAllLovers
Step 3: Get Your Makey Makey Running...
Your modified photobooth will respond to a keypress (let's continue to use 'u'). The Makey Makey sends this keypress when the circuit is closed by two people (closing the connection between 'Click' and 'Earth'). That's when the photo is taken.
This sketch+library sends the keypress 'u' to trigger your photobooth, then it waits for your photobooth to upload and email the photo before it lets you send another keypress. This prevents your photobooth from wiggin out and uploading blank images.
The Makey Makey also sends a signal to the Arduino when you close the connection; which, turns the servo and triggers the music shield simultaneously (This is in the next step).
Step 4: Arduino Setup for Music and Bubbles
Let's set up the Arduino to receive a signal from your Makey Makey! This will let us trigger the servo and music module.
This is the sketch we made for the Arduino. It triggers one out of sixteen random audio tracks from inside the micro SD card. It also makes the servo move 85º triggering the Bubble Gun.
Have these libraries uploaded and the sketch handy, next step we start wiring it all up.
Step 5: The Music Module
The WTV020 music module might be the most difficult to work with, but it's inexpensive. It requires a 2gb micro SD card, no larger and no smaller than this. Some 2gb cards just aren't recognized either... It's picky. You have to run some trial and error. Our Samsung 2gb card worked. It can only read AD4 audio formats, which can only be converted from WAV through a PC and a special program. Here are some other instructions on this music module.
At this point you should have the library and sketch in the Arduino (see previous step).You can find the tracks we used in our micro SD here or get sample tracks here. If you made WAV tracks this is the PC program you need to convert them and more instructions are here.
See Fritzing image above for wiring.
Step 6: Servo and Bubbles
The servo pulls a twine that in turn pulls a trigger on our bubble gun. Very effective because the VarSpeedLibrary helps us control the speed so that the bubbles are shot out perfectly.
See image for our example
Step 7: Set It All Up and You're Ready to Shoot
Once everything has been tested individually and things check out:
-The Photobooth Webapp shoots with the keypress 'u', uploads, and emails
- BufferApp is receiving your image and pushes to Twitter
-The Makey Makey is sending the letter 'u'
-The Arduino is receiving from the Makey Makey and triggering both the Servo and Music Module
-The Bubble Gun is shooting bubbles
-The Speakers are set to 11 and play the track in the Micro SD
Now you're ready for a photo party.
The steps in this Instructable might be a little loose, that's because you can modify so much. We hope that we included enough external links to answer any of your questions. Have a fun building!!!
-Aldo, Max, and Joel
We have a be nice policy.
Please be positive and constructive.