Shop OBEX P1 Docs P2 Docs Learn Events
DS1631 and BS2p24 — Parallax Forums

DS1631 and BS2p24

Jan DvorakJan Dvorak Posts: 44
edited 2006-07-17 18:20 in BASIC Stamp
I would like to try how to use I2C. So, I bought I2C thermometer DS1631 (http://www.chipcatalog.com/Maxim/DS1631.htm). But I wasn't able to use it according to datasheet. I found your application (http://www.parallax.com/dl/docs/prod/boards/28137.pdf) with DS1621 (http://www.chipcatalog.com/Maxim/DS1621.htm). I tried it, but without avail. Could you help me, how to write a correct program for READING temperature?

Comments

  • BamseBamse Posts: 561
    edited 2006-07-17 14:44
    Jan,

    I don't know if this helps since it's for a DS1624...
    But if your chip has a "Continuous_Conversion" option, you need to set it first...
    Then send the Start Conversion command...

    Note that BS2p24 does have the IC2IN/OUT commands so you don't really have to use the low level I2C as I do for the BS2.
    You can download the StampWorks manual (that's where I got the original I2C code) and have a look at another I2C example...

    http://www.parallax.com/detail.asp?product_id=27220
    http://www.parallax.com/dl/docs/books/sw/Web-sw-v2.0.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-07-17 14:47
    Also, which I/O lines are you using?· The I2C commands on the BS2p Stamp Modules only work on specific pins.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jan DvorakJan Dvorak Posts: 44
    edited 2006-07-17 18:20
    Chris: yes, I know, I use I/O lines 0 and 1.
    Bamse: Thank you very much, but it didnt help me :-( I would need somethink for DS1621 (similar) or DS1631
Sign In or Register to comment.