16 September 2014

Arduino Selfie


 

My attention is drawn towards the noise behind me....
I cannot believe it.
There it is.

  The Arduino is taking a SELFIE !!


 

How did this happen?
 
Well actually, it is not that difficult for an Arduino.
 
I found out that my Canon Powershot SX50 HS camera has a port on the side for a remote switch. In the "Optional Accessories" section of the camera brochure, it identifies the remote switch model as RS-60E3. I then looked up the model number on this website to find out the size of the jack (3 core, 2.5mm), and the pinout (Ground, focus and shutter) required to emulate the remote switch. Once I had this information, I was able to solder some really long wires to the jack and connect up the circuit (as described below).
 

And before I knew it, the Arduino was taking Selfies !!!


 
Warning : Any circuit you build for your camera (including this one) is at your own risk. I will not take responsibility for any damage caused to any of your equipment.
 

Parts Required:


 

Fritzing Sketch


 


 
 

Connection Table


 


 
 

Three core, 2.5 mm jack


 


 
 

Camera Connection to Relays


 


 
 

Jack pinout


 


 
 

Completed Circuit


 


 
 

Arduino Sketch


 
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
    
/* ===============================================================
      Project: Arduino Selfie
       Author: Scott C
      Created: 14th Sept 2014
  Arduino IDE: 1.0.5
      Website: http://arduinobasics.blogspot.com/p/arduino-basics-projects-page.html
  Description: Arduino takes selfie every 30 seconds
================================================================== */

 /* 
  Connect 5V on Arduino to VCC on Relay Module
  Connect GND on Arduino to GND on Relay Module */
 
 #define CH1 8   // Connect Digital Pin 8 on Arduino to CH1 on Relay Module
 #define CH3 7   // Connect Digital Pin 7 on Arduino to CH3 on Relay Module
 
 void setup(){
   //Setup all the Arduino Pins
   pinMode(CH1, OUTPUT);
   pinMode(CH3, OUTPUT);
   
   //Turn OFF any power to the Relay channels
   digitalWrite(CH1,LOW);
   digitalWrite(CH3,LOW);
   delay(2000); //Wait 2 seconds before starting sequence
 }
 
 void loop(){
   digitalWrite(CH1, HIGH);  //Focus camera by switching Relay 1
   delay(2000);
   digitalWrite(CH1, LOW);   //Stop focus
   delay(100);
   digitalWrite(CH3, HIGH);  //Press shutter button for 0.5 seconds
   delay(500);
   digitalWrite(CH3,LOW);    //Release shutter button
   delay(30000);             //Wait 30 seconds before next selfie
 }
    
    


 

By connecting up the camera to an Arduino, the camera just got smarter !!
The Arduino connects to 2 different channels on the relay board in order to control the focus and the shutter of the camera. The relays are used to isolate the camera circuit from that of the Arduino. I have also included a couple of diodes and resistors in the circuit as an extra precaution, however they may not be needed.

Warning : Any circuit you build for your camera (including this one) is at your own risk. I will not take responsibility for any damage caused to any of your equipment. Do your research, and take any precautions you see fit.


 
 

The Video


 


 


 
 

If you like this page, please do me a favour and show your appreciation :

 

 
Have a look at my patreon page.
Visit my ArduinoBasics Google + page.
Follow me on Twitter by looking for ScottC @ArduinoBasics.
Have a look at my videos on my YouTube channel.


 
 

 
 
 



However, if you do not have a google profile...
Feel free to share this page with your friends in any way you see fit.

14 September 2014

ArduinoBasics Patreonage

Thank you very much for taking the time to come and visit my blog. I hope you get a lot out of tutorials, and I also hope that my efforts are making a difference.

I love the whole concept of open hardware, open software, and being part of a community.
I help you, you help me, we help each other.

As you know, my ArduinoBasics tutorials are completely free ! 
They always have been, and always will be. 

How can you help me stay on track an keep publishing Arduino tutorials?
There are so many ways you provide encouragement,
  • A simple thank you in the comments
  • A Google plus one
  • A tweet or a like or a public share of the pages you enjoy
  • A link back to these pages if you used the content in any way
  • But wait, that is not all - you can also become a patreon.
Rather than describe what becoming a patreon is all about, here is a short video that explains it well:



By becoming a patreon, you will receive bonus content, and have the chance to win special prizes.
Thank you for your continued support, and thank you for keeping the dream ALIVE !!!

For all of my ArduinoBasic tutorials - please visit my projects page

Currently there are: 0 patreons supporting this blog.
You could make it change to : 1 - for as little as $1.