loading

Anybody wonders one day to make a photo booth in any event. Actually a couple of days ago there was for the first time in Egypt "Cairo Mini Maker Faire" event, where around 3000 makers all over Egypt came to celebrate this event. I tried to implement a low cost, fancy and easily to be implemented photo booth.

In this instructable, you will find a full description for the bill of materials and the dimensions of the booth and in the video, you will find the time lapse for implementing the photo booth from scratch.

Step 1: Tools and Components

1- PVC pipes

2- PVC elbow angles

3- Banner

4- AC Lamp

5- Arduino Uno

6- 1Sheeld

7- Relay Board

8- Ultrasonic Sensor

9- Cable ties

Step 2: Hardware Implementation

Actually, the circuit implementation is so simple. I have build the circuit on Fritzing. All you need is ultrasonic sensor and relay with AC lamp.

Regarding the Photo booth, you will find an image with the whole dimensions of the PVC pipes and in the video you will find how we implement itself.

Step 3: Arduino Sketch

Actually, as shown below the code is straight forward. We always checks the value of the ultrasonic sensor and whenever it becomes less than 40 cm, we will blink our AC Lamp 3 times as an indication for the capturing, then the camera will capture the image and finally the mobile will post the image on twitter. Just one line of code for capturing and another one for tweeting.

/* Include 1Sheeld library. */
#include <OneSheeld.h>
const int trigPin = 2; const int echoPin = 4; const int ledPin = 13;
void setup() { /* Start communication. */ OneSheeld.begin(); pinMode(ledPin, OUTPUT); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); }
void loop() { long duration, cm; digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); // convert the time into a distance cm = microsecondsToCentimeters(duration); if(cm <= 40){ digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW delay(1000); digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW delay(1000); digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW delay(1000); Camera.setFlash(ON); /* Take the picture. */ Camera.rearCapture(); /* Wait for 10 seconds. */ delay(10000); /* Post the picture on Twitter. */ Twitter.tweetLastPicture("We are having fun at Cairo mini #makerfaire, photo taken by @Arduino and @1Sheeld!"); }
delay(100); }
long microsecondsToCentimeters(long microseconds) { return microseconds / 29 / 2; }

Step 4: Test

Finally, you can test it right now. You can see the final version of the booth.

Awesome build. What kind of camera do you use and where do you connect the camera? Thanks!

About This Instructable

1,292views

10favorites

License:

More by ashraf nabil:Line Follower Robot Using Camera Shield in 1Sheeld & Arduino Automated Photo Booth takes a picture and posts it on Twitter with Arduino and 1Sheeld Real-time BitCoin Price monitor using LED Matrix, Arduino and 1Sheeld 
Add instructable to: