Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Camera Shutter Release Timer


  • Please log in to reply
5 replies to this topic

#1 Vojin

Vojin

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationVancouver

Posted 20 October 2010 - 10:07 PM

One more Extremely-Simple-Project :)

Design:
Posted Image

On the breadboard:
Posted Image

How it works:
http://www.youtube.com/watch?v=YG4yLwIarb4

Code:
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace ShutterRelease
{
    public class Program
    {

        static Boolean status = false;

        public static void Main()
        {
            // write your code here

            OutputPort focus = new OutputPort(Pins.GPIO_PIN_D8, false);
            OutputPort shutter = new OutputPort(Pins.GPIO_PIN_D10, false);

            InterruptPort button = new InterruptPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeHigh);
            button.OnInterrupt += new NativeEventHandler(button_OnInterrupt);

            while (true)
            {
                if (status)
                {
                    focus.Write(true);
                    shutter.Write(true);
                    Thread.Sleep(10);
                    focus.Write(false);
                    shutter.Write(false);
                    Thread.Sleep(5000);
                }
            }

        }

        static void button_OnInterrupt(uint data1, uint data2, DateTime time)
        {
            status = !status;
        }

    }
}

Attached Files



#2 Crispin

Crispin

    Advanced Member

  • Members
  • PipPipPip
  • 65 posts
  • LocationLondon, England, Earth

Posted 20 October 2010 - 10:24 PM

Nifty... But, why the while loop and not just put the code into the event handler? Cheers, Crispin
--
Take a seat, I'll be right with you.

#3 hari

hari

    Advanced Member

  • Members
  • PipPipPip
  • 131 posts

Posted 20 October 2010 - 10:44 PM

I see lots of potential. What kind of cable did you use? for which camera? Would you mind sharing the resources that you used to figure out the pins and functions of the camera remote cable? Thanks for sharing.

#4 Vojin

Vojin

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationVancouver

Posted 21 October 2010 - 02:25 AM

Nifty...

But, why the while loop and not just put the code into the event handler?

Cheers,
Crispin


Well.. it was 15 minutes project :)

#5 Vojin

Vojin

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationVancouver

Posted 21 October 2010 - 02:41 AM

I see lots of potential.
What kind of cable did you use? for which camera?
Would you mind sharing the resources that you used to figure out the pins and functions of the camera remote cable?
Thanks for sharing.


Cable - from old mouse (it has 7 pins, so I cut 4 of them and it worked
Camera is Sony Alpha 350 (DSLR-A350), but connector is same for all Sony Alpha and Minolta SLR

Connector Info

Posted Image


Connector is just with 3 pins:
  • A - Auto focus
  • B - Base
  • C - Shutter release

So to take picture, you need to focus (Connect A to B ) and then fire shutter (Connect C to B )

#6 pascal06

pascal06

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts
  • LocationFrance

Posted 21 October 2010 - 09:20 PM

Excellent, thanks for sharing, Here is a idea for a futur version: http://www.glacialwa...robotics/?p=325 ;) /pascal




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.