Shop OBEX P1 Docs P2 Docs Learn Events
I want to control my camera with the Stamp. — Parallax Forums

I want to control my camera with the Stamp.

HumpeHumpe Posts: 10
edited 2007-12-11 18:38 in BASIC Stamp
Hi

Let see if I can explain this so you can give some help :-)

I want to control my camera with the Stamp. I have made a timer and now i want my camera to take a picture in diffrent intervals. The programming for that is no problem but the actual connection to te stamp is.

I have a wire remote control to the camte whch operates in a way that ehen there is connetion on two pins the camera takes a picture. How can i conect that·on the stamp education board?

I dont want any curent or voltage just make the connection to two pins and simulate a push of a button.

Crystal clear ? Im sorry for my bad english.

Post Edited By Moderator (Chris Savage (Parallax)) : 12/10/2007 5:59:24 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-08 15:30
    An optocoupler may do the job (do a web search for "wiki optocoupler" for a description). The Stamp side would be the LED which is hooked up like any other LED (see the What's a Microcontroller? tutorial for diagrams). The phototransistor side would be hooked up to the camera pins. The only question is which way to hook it up since the phototransistor switches current going in only one direction. Try both ways and one should work. Alternatively, you could use an SPST 5V reed relay. This has the advantage of working exactly like a pushbutton ... it's just a switch contact. You will need a reverse connected diode across the relay coil (so it normally doesn't conduct). One end of the coil goes to ground and the other end to the I/O pin. When you make the I/O pin HIGH, the relay contacts will close. Make sure you pick a relay with at coil resistance of at least 200 ohms.
  • HumpeHumpe Posts: 10
    edited 2007-12-08 15:54
    Thanks for your prompt reply Mike.

    I think the relay way sounds like the way to go. Do you have any suggestion for one ? Im very new to this electronic stuff. I found·this would that work?

    PRME15005 from CP Clare. What diod do I need ?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-12-08 15:58
    attachment.php?attachmentid=36952
  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-08 16:14
    The relay looks fine. It looks like the coil current is around 10-15 mA which is well within the capability of a Stamp I/O pin. PJ Allen's diagram is fine for a higher current relay, but you won't need the transistor or resistor, just connect the "bottom" end of the relay and diode directly to the I/O pin. A LOW will turn the relay on. A HIGH or INPUT will turn the relay off. The I/O pin will be initialized to INPUT when the Stamp is reset.

    Any switching or power diode with a rating of at least 50V should work. I typically use 1N4148 or 1N4001 diodes.
  • HumpeHumpe Posts: 10
    edited 2007-12-08 16:35
    Thanks a lot guys: I have placed the order and will be att store early Monday morning. I probably come back when i have burned the switch an a couple of the diods :-)
  • HumpeHumpe Posts: 10
    edited 2007-12-11 18:38
    Hi

    Just want to report that it all works well. Thanks a lot.
Sign In or Register to comment.