Shop OBEX P1 Docs P2 Docs Learn Events
controlling relay w/a stamp? — Parallax Forums

controlling relay w/a stamp?

kieranofkieranof Posts: 5
edited 2007-04-21 22:23 in BASIC Stamp
hi,
i'm trying to make a project where different sound sources are inputted and either one source or the other will be outputted. i'm trying to do this with a bs2 & a relay and am having a lot of trouble because the lowest voltage relay i could find was a 5V, however, even with a transistor to ramp up the voltage coming from the stamp and into the relay, the best I can get it up to is 4.5 V, therefore the relay won't work because it's not getting enough power. Any suggestions?? I was trying to do this previously with a digital potentiometer instead of a relay but had even more problems with getting that one to work..
thank you,
kiera

Comments

  • Robert KubichekRobert Kubichek Posts: 343
    edited 2007-04-07 22:28
    Why don't you go fully digital with digital controlled analog muxes...
    Here is a link to one that has 16 analog inputs independently controlled/isolated from the other;

    focus.ti.com/lit/ds/symlink/mpc506.pdf


    Bob
  • T ChapT Chap Posts: 4,223
    edited 2007-04-07 22:31
    Can you post your schematic? Most relays that are rated at a voltage, will actually turn on at a lower voltage.

    There are other options to switching audio like Jfet transistors and audio switching IC's. For simplicity, you should be driving an NPN transistor by the Stamp, the relay has as fixed positive voltage on one pin, the other pin gets sent to GND by the NPN transistor which is driven by the Stamp pin. Google NPN relay driver, there will be tons of stuff to look at.

    Post Edited (TChapman) : 4/7/2007 10:35:38 PM GMT
  • Tech-ManTech-Man Posts: 100
    edited 2007-04-08 12:30
    I have built my own SSR's before to control X-mas lights, the nice thing about them is they can switch using about 3V since there switched by an OPTO isolator with Triac output. like this



    ·optoisolator.pngThen you will just add another transistor to this out put if your going to switch higher voltiges, also you would need to add a few resistors. I realy don't get what your trying to do so i hope this might help or somthing.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There are no Undo buttons in life.
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2007-04-08 14:25
    Have a look at this thread...
    http://forums.parallax.com/showthread.php?p=632696
    Regards,
    Quattro

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'
  • Ray0665Ray0665 Posts: 231
    edited 2007-04-20 14:51
    You might want to look at these relay boards they sound like they are exactly what you are looking for at a good price
    http://www.winford.com/products/cat_rly.php
  • bddbbd.bbddbbd.b Posts: 12
    edited 2007-04-21 21:48
    The simplest solution is to use an FET, like a 2n7000, with the source tied to ground, the gate to your stamp pin, and the drain to the relay coil. Hook up the other side of the coil to +V. and don't forget the snubber diode across the coil.
    But, I am a little confused since I have switched relays directly from a HIGH on a BS2. coto makes 5V coil relays with built in diodes....
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-21 22:23
    I believe the 2N7000 has a relatively high gate threshold. It begins to switch on at about 2.1V, but won't carry any significant current until the gate voltage gets to 4-5V. Use a logic level threshold MOSFET which switches at a lower threshold.
Sign In or Register to comment.