Project showcase
Capture Photos with one Click

Capture Photos with one Click © MIT

Push button to take photos by phone wirelessly

  • 4,705 views
  • 0 comments
  • 7 respects

Components and supplies

About this project

Alot i and my friends wants to take a photo and there is no one to hold the mobile for us. And here comes the genius tesla with a brilliant idea where i hold the button in my hands , 1sheeld in my back pocket.
Finally Cheeeeeeeeeese


Code

Untitled fileArduino
/*

Camera Shield Example

This example shows an application on 1Sheeld's camera shield.

By using this example, you can take a photo using your phone's
camera each time you press the hardware push button placed on
pin 12.

OPTIONAL:
To reduce the library compiled size and limit its memory usage, you
can specify which shields you want to include in your sketch by
defining CUSTOM_SETTINGS and the shields respective INCLUDE_ define. 

*/

#define CUSTOM_SETTINGS
#define INCLUDE_CAMERA_SHIELD
#define INCLUDE_TWITTER_SHIELD

/* Include 1Sheeld library. */
#include <OneSheeld.h>

/* A name for the button on pin 12. */
int buttonPin = 12;
/* A name for the LED on pin 13. */
int ledPin = 13;

void setup()
{
  /* Start communication. */
  OneSheeld.begin();
  /* Set the button pin as input. */
  pinMode(buttonPin,INPUT);
  /* Set the LED pin as output. */
  pinMode(ledPin,OUTPUT);
}

void loop()
{
  /* Always check the button state. */
  if(digitalRead(buttonPin) == HIGH)
  {
    /* Turn on the LED. */
    digitalWrite(ledPin,HIGH);
    /* Turn on the camera flash. */
    Camera.setFlash(ON);
    /* Take the picture. */
    Camera.rearCapture();
  }
  else
  {
    /* Turn off the LED. */
    digitalWrite(ledPin,LOW);
  }
    
}
the code

Schematics

Circuit
Take%20photo%20and%20tweet.fzz

Comments

Similar projects you might like

Capture and Tweet

Project showcase by tesla nerd

  • 878 views
  • 0 comments
  • 8 respects

One Button Click Artificial Intelligence Based Home Monitor

Project tutorial by Geeve George

  • 7,427 views
  • 1 comment
  • 43 respects

Skype Emergency Call

Project showcase by Manuel Miguel

  • 966 views
  • 0 comments
  • 4 respects

Automated Photo Booth using Arduino and 1Sheeld

Project in progress by Ashraf Nabil

  • 3,458 views
  • 0 comments
  • 11 respects

Burglar Surveillance Camera

Project showcase by 1Sheeld

  • 3,075 views
  • 3 comments
  • 5 respects

Control a RGB Led using Arduino and a smartphone's camera

Project tutorial by Mr robot Maker

  • 2,816 views
  • 0 comments
  • 8 respects
Add projectSign up / Login