Shop OBEX P1 Docs P2 Docs Learn Events
Expanding outputs of a Basic Stamp. ( 200 outputs) — Parallax Forums

Expanding outputs of a Basic Stamp. ( 200 outputs)

JoeJoe Posts: 184
edited 2009-04-22 04:35 in BASIC Stamp
Hi.

I need to turn on and off 200 individual relays .

The comsuption of each relay is 150 mA only.

For this reason I need 200 outputs.

Do you know a simple way to do this ?

Thanks, Joe

Comments

  • Mike2545Mike2545 Posts: 433
    edited 2009-04-21 23:38
    _wtf___by_Link3Kokiri.gif Your post really doesn't make much sense. The relays draw 150mA, that is why you need 200 of them?

    Do the relays need to all be on at once?

    Define simple.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • JoeJoe Posts: 184
    edited 2009-04-22 01:31
    Hi,


    Of course , the 200 relays will work not at once.
    They will work independent.

    For example I will need to turn on the realy number
    125 only, and then the relay number 130 , etc.

    I think that now is more clear, thanks.

    Any idea is welcome.

    Thanks, Joe
  • Mike2545Mike2545 Posts: 433
    edited 2009-04-22 01:51
    Read this thread http://forums.parallax.com/showthread.php?p=780912

    A_whole_new_level_of_Tard_by_Jeriko_X.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • $WMc%$WMc% Posts: 1,884
    edited 2009-04-22 03:09
    Joe

    Take a look at serial to parallel shift reg.s. Start out with just one shift reg. and work up to 2 shift reg.Then another.
    Next include and other I/O pins to run another set of shift regs.

    Since "200" in DEC, is "11001000" in BIN, This falls in the one BYTE range.This is native to the stamp and "CON" , "VAR", and "DATA" should work.

    Its still gonna be complicated

    _________$WMc%_____

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············································ BoogerWoods, FL. USA
  • Mike GreenMike Green Posts: 23,101
    edited 2009-04-22 04:35
    The TPIC6595 from Texas Instruments combines an 8-bit cascadable serial to parallel shift register with MOSFET drivers that can easily drive a 150mA load. These work like a 74HC595 and ULN2803 combination, but in one package and with a MOSFET driver instead of a Darlington driver. They take 3 or 4 I/O pins for each string of these and you can string them together to quite a length, certainly 8 to 10 devices in series.

    If you're only going to have one relay on at a time, you could use a matrix arrangement with something like the TPIC6595 on one axis to switch the ground connection and what's called a "high side driver" on the other axis that switches the (+) power source to a particular relay.
Sign In or Register to comment.