Shop OBEX P1 Docs P2 Docs Learn Events
DS1620_HR code help — Parallax Forums

DS1620_HR code help

damiondamion Posts: 39
edited 2006-07-24 17:38 in Learn with BlocklyProp
Hey there,
·I'm using the bs2p with ds1620. For some reason I'm getting values of about 27.98 degrees F. I've tried using both of these codes but I'm still getting the same value:

http://forums.parallax.com/attachment.php?attachmentid=40238

http://www.emesystems.com/OL2d1620.htm
Two concerns:

····· 1. What considerations (if any) need to be made when converting this code from bs2 to bs2p.

····· 2. Inspite of the low value, I don't seem to be detecting any change in my reading.

Comments

  • Tracy AllenTracy Allen Posts: 6,658
    edited 2006-07-22 00:23
    Can I assume that your DS1620 is working okay for normal resolution?

    I don't recall anything that would change between the BS2 and the '2p for that code to work properly.

    Be sure you have the chip seet in its single shot mode, not continuous mode, and you have to cycle the power off and on again for the setting to "take". Be sure there is a good bypass capacitor across the DS1620 power.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • damiondamion Posts: 39
    edited 2006-07-22 00:53
    Thanks Tracy,

    How would I go about checking if it is working with normal resolution?

    How do I set it to single shot mode?
  • Robert@HCCRobert@HCC Posts: 80
    edited 2006-07-22 10:22
    Damion -
    Damion said...
    How do I set it to single shot mode?



    ' -----[noparse][[/noparse] Initialization ]--------------------------------------------------
    
    Setup:
      HIGH Reset                                    ' alert DS1620
      SHIFTOUT DQ, Clock, LSBFIRST, [noparse][[/noparse]WrCfg, %11]    ' with CPU, one-shot mode
      LOW Reset                                     ' release DS1620
      PAUSE 10
    
    



    Thats from the code in the 1st link....

    Try downloading this pdf, Damion ... it will have the normal resolution code...

    http://www.parallax.com/dl/docs/cols/nv/vol6/col/nv123.pdf

    Also make sure you use the cap as Tracy said, and check over you wiring - I have gotten wierd results due to screwy connections, be it loose or just wrong.

    Cya next week...and good luck!
  • Shawn LoweShawn Lowe Posts: 635
    edited 2006-07-24 17:38
    Also, you might want to order another one, in case you do have it wired and programmed correctly and just happen to have a bad one.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    My last words shall be - "NOT YET!!!"
Sign In or Register to comment.