Project in progress
Automated Photo Booth using Arduino and 1Sheeld

Automated Photo Booth using Arduino and 1Sheeld © Beerware

Automated Photo Booth takes a picture and posts it on Twitter with Arduino and 1Sheeld at Cairo Mini Maker Faire

  • 3,854 views
  • 0 comments
  • 12 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
Screen shot 2019 03 20 at 2 38 27 pm fqndazqcx1
1Sheeld
×1
PVC pipes and PVC elbow angles
×1
Relay Board
×1
Ultrasonic Sensor
×1
AC Lamp
×1
Cable ties
×1

Apps and online services

About this project

Time lapse video for the booth implementation and the whole day

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 project, 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.

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.


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.

Code

UntitledC/C++
/* 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;
}

Comments

Similar projects you might like

Bluetooth Steering wheel for a robot using 1Sheeld

Project tutorial by Kristian Blåsol

  • 2,499 views
  • 1 comment
  • 13 respects

DIY Vending Machine using Arduino & 1Sheeld

Project tutorial by Mahmoud Ahmed

  • 6,961 views
  • 7 comments
  • 32 respects

Automated Clothes & Shoes Donation Machine

Project tutorial by Mahmoud Ahmed

  • 2,440 views
  • 3 comments
  • 22 respects

4x4x4 LED cube with Arduino Uno and 1sheeld

Project tutorial by Hassan Ibrahim

  • 29,722 views
  • 6 comments
  • 60 respects

Super Easy to Build 1Sheeld 2 Wheel Drive Robot

Project tutorial by Garry Gerwer and Ahmed Hamdy

  • 16,690 views
  • 3 comments
  • 32 respects

Universal Remote Control using Arduino, 1Sheeld and Android

Project tutorial by Ashraf Nabil

  • 8,596 views
  • 5 comments
  • 13 respects
Add projectSign up / Login