Shop OBEX P1 Docs P2 Docs Learn Events
DS2438 - Object needed — Parallax Forums

DS2438 - Object needed

computer guycomputer guy Posts: 1,113
edited 2008-03-16 17:01 in Propeller 1
Hi everyone,

Would anyone be interested in writing an object for the DS2438 Smart Battery Monitor?
After reading the datasheet I have come to the conclusion that this would be great to measure the output of the 5.0 and 3.3 volt regulators and the current being drawn from them.

Here is the datasheet if anyone is interested - datasheets.maxim-ic.com/en/ds/DS2438.pdf.

Thank you smile.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker

Comments

  • computer guycomputer guy Posts: 1,113
    edited 2008-03-08 02:45
    Using the DS1302 (RTC) object as a starting point I have decided to try and write it myself.
    However if anyone has any advice/comments please post.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-03-08 02:46
    Isn't the DS1302 a TWI (I2C) chip? You'd be better off seeing if there is an object for a One Wire protocol chip.
  • computer guycomputer guy Posts: 1,113
    edited 2008-03-08 03:33
    Oh yes, thank you steven. I will do. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • computer guycomputer guy Posts: 1,113
    edited 2008-03-08 03:37
    There is actually a 1-wire routine object that includes demo code for a temperature IC.

    This will work great for a starting point.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • Fred HawkinsFred Hawkins Posts: 997
    edited 2008-03-16 16:30
    interesting: "Each DS2438 contains a unique 64-bit lasered ROM serial number..." Could that be used like a software dongle for the prop?
  • hippyhippy Posts: 1,981
    edited 2008-03-16 17:01
    @ Fred : It can. AFAIK all one-wire devices have a unique 64-bit code.

    It's a cheap-and-cheerful way to create a simple protection scheme ( does the code match what the software expects ) and the software can be written so it writes the code to Eeprom the first time it runs so no need to alter the downloaded code for every released product.

    It's fairly easy to crack though but the serial number could be used in more advanced ways.
Sign In or Register to comment.