Shop OBEX P1 Docs P2 Docs Learn Events
ds2405 addressable switch question — Parallax Forums

ds2405 addressable switch question

ArchiverArchiver Posts: 46,084
edited 2004-06-09 15:55 in General Discussion
I am trying to interface a ds2405 to a bs2. Can anyone tell me
if this is possible and hopefully share some code?
thanks....

ljf

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-06-09 15:03
    Not without a protocol converter (serial to 1-Wire). If you have a BS2p
    or BS2pe you can use the OWOUT and OWIN instructions to communicate with
    the device. That said, I've tried that part and don't find it terribly
    useful or easy to use....

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: lfreeze2002 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=vjl9eKVTDaTzzPv7EyjoNvNzA71CsARbquA6tJ4u9-J2E1BLQK-li-wZiP4rvds-27HfvyJ_LPZR]lfreeze@c...[/url
    Sent: Wednesday, June 09, 2004 6:22 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] ds2405 addressable switch question


    I am trying to interface a ds2405 to a bs2. Can anyone tell me if this
    is possible and hopefully share some code? thanks....

    ljf
  • ArchiverArchiver Posts: 46,084
    edited 2004-06-09 15:47
    Thanks for the responses. after looking at the spec sheets, I think it would
    take a more than significant effort
    to interface a DS2405. Can you suggest an alternative to the DS2405 that
    would present a more standard
    "3 wire " interface to the bs2 but would be addressable. I have done a few
    goggle searches but can't seem
    to find anything,
    Thanks...

    ljf

    ---- Original Message
    "one wire"
    From: "Trygve Henriksen" <trygve.henriksen@v...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, June 09, 2004 7:48 AM
    Subject: SV: [noparse][[/noparse]basicstamps] ds2405 addressable switch question


    > Greetings!
    >
    > To do this you either need to use a BS2p24 or BS2p40, or you need to use
    > a DS2480(b) 1-wire interface chip.
    >
    > This is because the DS2405 uses what is known as the 1-wire protocol for
    > communication.
    > (No, you can't 'bit-bang' it, and SERIN/SEROUT and SHIFTIN/SHIFTOUT
    > can't handle this one)
    >
    > I don't have any code for that chip, but if you check the latest version
    > of the manual, I believe there are some examples there. (For the BS2p
    > models)
    > If you're using an older BS2 model, you need to take a look at the
    > DS2480 datasheet which should be available for download on
    > www.maxim-ic.com
    > (you'll also need the DS2405 datasheet from that site)
    >
    > :-)
    > Trygve
    >
    >
    >
    >
    >
    >
    Opprinnelig melding
    > Fra: lfreeze2002 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=FBi1v69bQubgiuLfKYHGDL0APAOTKaoGCdq1y6AvKl0xt-SNwEHAHQwEVBFoZ053a0J_L7OvUEM4_g]lfreeze@c...[/url
    > Sendt: 9. juni 2004 13:22
    > Til: basicstamps@yahoogroups.com
    > Emne: [noparse][[/noparse]basicstamps] ds2405 addressable switch question
    >
    >
    > I am trying to interface a ds2405 to a bs2. Can anyone tell me if this
    > is possible and hopefully share some code? thanks....
    >
    > ljf
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject
    > and Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-06-09 15:55
    There are I2C parts available -- but the ones I'm aware of have at least
    8 I/Os.

    * PCF8574 (8 IO points -- can't sink or source usable current though)
    * MCP23016 (16 IO points and very stout -- I like this part)

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: Larry Freeze [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=EYT9Vq6bKuwuKBS1JJ4NV5ws0pbe2tZCYJHfZtXpBY_oG9r-jUi6iFHF7K8dOGYyBeTJRpVjMpKmWK2G]lfreeze@c...[/url
    Sent: Wednesday, June 09, 2004 9:48 AM
    To: basicstamps@yahoogroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] ds2405 addressable switch question


    Thanks for the responses. after looking at the spec sheets, I think it
    would take a more than significant effort to interface a DS2405. Can you
    suggest an alternative to the DS2405 that would present a more standard
    "3 wire " interface to the bs2 but would be addressable. I have done a
    few goggle searches but can't seem to find anything, Thanks...

    ljf

    ---- Original Message
    "one wire"
    From: "Trygve Henriksen" <trygve.henriksen@v...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, June 09, 2004 7:48 AM
    Subject: SV: [noparse][[/noparse]basicstamps] ds2405 addressable switch question


    > Greetings!
    >
    > To do this you either need to use a BS2p24 or BS2p40, or you need to
    > use a DS2480(b) 1-wire interface chip.
    >
    > This is because the DS2405 uses what is known as the 1-wire protocol
    > for communication. (No, you can't 'bit-bang' it, and SERIN/SEROUT and
    > SHIFTIN/SHIFTOUT can't handle this one)
    >
    > I don't have any code for that chip, but if you check the latest
    > version of the manual, I believe there are some examples there. (For
    > the BS2p
    > models)
    > If you're using an older BS2 model, you need to take a look at the
    > DS2480 datasheet which should be available for download on
    > www.maxim-ic.com
    > (you'll also need the DS2405 datasheet from that site)
    >
    > :-)
    > Trygve
    >
    >
    >
    >
    >
    >
    Opprinnelig melding
    > Fra: lfreeze2002 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=EYT9Vq6bKuwuKBS1JJ4NV5ws0pbe2tZCYJHfZtXpBY_oG9r-jUi6iFHF7K8dOGYyBeTJRpVjMpKmWK2G]lfreeze@c...[/url
    > Sendt: 9. juni 2004 13:22
    > Til: basicstamps@yahoogroups.com
    > Emne: [noparse][[/noparse]basicstamps] ds2405 addressable switch question
    >
    >
    > I am trying to interface a ds2405 to a bs2. Can anyone tell me if this

    > is possible and hopefully share some code? thanks....
    >
    > ljf
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject
    > and Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject
    > and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >





    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.