DS1631 and BS2p24
Jan Dvorak
Posts: 44
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
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 Savage
Parallax Tech Support
csavage@parallax.com
Bamse: Thank you very much, but it didnt help me :-( I would need somethink for DS1621 (similar) or DS1631