Shop OBEX P1 Docs P2 Docs Learn Events
interface DS2436 voltage monitor to Basic Stamp II — Parallax Forums

interface DS2436 voltage monitor to Basic Stamp II

Vladimir059Vladimir059 Posts: 9
edited 2006-06-03 18:08 in BASIC Stamp
Hello Everybody! Please inform me is it possible interface DS2436 voltage monitor to Basic Stamp II?· I couldn’t find any I2C commands for BS2.
If it is·possible please provide sample code for I2C protocol and example BS2 program for ·DS2436 ·voltage monitor.
Thank you in advance
Vladimir. icon8.gificon8.gificon8.gif

Post Edited By Moderator (Joshua Donelson (Parallax)) : 10/23/2009 4:06:15 AM GMT

Comments

  • HarborHarbor Posts: 73
    edited 2006-06-03 06:54
    The Parallax website has sample code for the I2C interface, but I'm not personally familiar with it. It is much easier in my case to buy one of the Stamp models that has the I2C commands built in. That is, the 'firmware' of the higher end stamps is already coded to support the I2C interface. This feature starts with BS2P, but I haven't kept up with the product line to know how many later models there may be by now.

    With that said, let me note that the Dallas Semiconductor product identified as DS2436 is a "one-wire" device, not I2C. That's a different protocol. I haven't seen code for it on the website, but I imagine it is there. Probably your best bet for either of these protocols is an article in Nuts and Volts magazine. The ones related to Basic Stamps are kept on the website. I'll find the link and post it in a minute.

    In both cases, the BS2P and later models of Stamp (or at least higher end ones) have these protocols coded in the firmware. And a couple of other nice protocols as well, like the interface to popular LCD controllers.

    http://www.parallax.com/html_pages/downloads/nvcolumns/Nuts_Volts_Downloads.asp

    is the link for the Nut and Volts columns. At a quick glance, #79, #85 and #115 deal with I2C. I did not see one about one-wire, but I don't have time for an extensive search.

    Post Edited (Harbor) : 6/3/2006 7:02:39 AM GMT
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-06-03 06:58
    Gents -

    Just to confirm, Harbor is correct on both couts. The BS-2p series, and all subsequent PBASIC Stamp processors can use either I2C or Dallas 1-wire. The plain BS-2 can not support either in native mode.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->

    Post Edited (Bruce Bates) : 6/3/2006 1:18:17 PM GMT
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-06-03 12:55
    Nuts & Volts #115 shows how to do I2C with a BS2
    http://www.parallax.com/detail.asp?product_id=27976
    http://www.parallax.com/dl/docs/cols/nv/vol5/col/nv115.pdf
    The programming examples can be downloaded here --
    http://www.parallax.com/html_pages/downloads/nvcolumns/Nuts_Volts_Downloads_V5.asp

    Post Edited (PJ Allen) : 6/3/2006 1:49:17 PM GMT
  • GadgetmanGadgetman Posts: 2,436
    edited 2006-06-03 13:57
    It is possible to interface with 1-Wire on a 'plain' BS2, too.
    But you'll need a BS2480(b) chip to do it.

    You can find datasheets on http://www.maxim-ic.com

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't visit my new website...
  • Vladimir059Vladimir059 Posts: 9
    edited 2006-06-03 18:08
    Thank you to all of you . Yes, I made a mistake DS 2436 is Dallas 1-wire protocol device not I2C. And now I have two options either buy appropriate Stamp module or use interfacing device DS2480(B) like Gadgeman adviced. I checked up Maxim's site and I think, it might work, but I still don't know how to write code for this application.
    Maybe does anybody know another voltage monitor divice, which can be easy interfaced with Basic Stamp II ?
    Thank you in advance
    Vladimir
Sign In or Register to comment.