Shop OBEX P1 Docs P2 Docs Learn Events
controlling a camera from BS2 — Parallax Forums

controlling a camera from BS2

agoldenagolden Posts: 2
edited 2008-02-10 17:59 in BASIC Stamp
I am trying to use the basic stamp to control the shutter release of a point and shoot camera. I have already soldered wires to the appropriate connections on the camera so that when the wires make contact, the camera takes a picture. What I don't know how to do (as I am very new to all this) is to have the basic stamp make the connection between the wires for me. I assume I woud use a transistor? If so, what type, and what would the code look like?

Thanks!

Alex

Comments

  • achilles03achilles03 Posts: 247
    edited 2008-02-08 20:59
    Yes, you can probably use transistors for most cameras with electronic shutters. If you use a NPN transistor, just connect a pin of the stamp to the base of a transistor using, say, a 1k resistor. Then connect the emitter and collector to appropriate leads of the camera (make sure you hook up the leads correctly; it won't work if you have the positive/negative leads reversed). And make sure to connect the ground of the stamp to the collector of the transistor. If you have it hooked up to pin 5, the PBASIC code would just be something like:

    HIGH 5
    pause 1000
    LOW 5

    Just make sure the pause is long enough to trigger the camera. I've hooked up cameras to stamps in the past, but I used solid state relays. Either works.

    Hope that helps.
    Dave

    P.S. Most point and shoot cameras don't focus on things far away very well. What is your application?
  • raj_sharma79raj_sharma79 Posts: 3
    edited 2008-02-10 16:02
    Better use Photomos Relay to triger the camera best way isolate the camera from your circuit there will be no damage and its work well, Cosmos and toshiba makes this relays.
  • agoldenagolden Posts: 2
    edited 2008-02-10 17:59
    Thanks, Dave. I had everything right except I forgot the ground! Works perfectly now.
Sign In or Register to comment.