Shop OBEX P1 Docs P2 Docs Learn Events
Bs2 ds1620 — Parallax Forums

Bs2 ds1620

pSxMoDpSxMoD Posts: 4
edited 2012-02-11 11:41 in BASIC Stamp
Hi,

Does anyone have any example source code for the DS1620 temperature sensor and Basic Stamp 2? I am currently using the AppKit source code for the DS1620. How can I use this code to use the sensor in stand-alone mode? I would like a simple application so I can use the 1620 to light one color LED when the temperature is above a certain point, and when it drops below that point, it will light a different color LED. Any help with this is greatly appreciated. Thanks!

Comments

  • Tracy AllenTracy Allen Posts: 6,662
    edited 2008-11-26 23:40
    Here is a link for thermostat mode:
    www.emesys.com/OL2d1620.htm#thermostat

    Pin 7 on the DS1620 goes high when the temperature exceeds the threshold that you set. Pin 6 can be used for a different threshold. Don't try to connect the LEDs directly to the DS1620 pins, because that will caused the DS1620 to heat up. Drive the LEDs via transistors or a buffer like the CD4049.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • pSxMoDpSxMoD Posts: 4
    edited 2008-11-26 23:54
    Hey, thanks! I really appreciate your help. smile.gif
  • KievlaninKievlanin Posts: 55
    edited 2012-02-11 11:41
    pSxMoD wrote: »
    Hi,

    Does anyone have any example source code for the DS1620 temperature sensor and Basic Stamp 2? I am currently using the AppKit source code for the DS1620. How can I use this code to use the sensor in stand-alone mode? I would like a simple application so I can use the 1620 to light one color LED when the temperature is above a certain point, and when it drops below that point, it will light a different color LED. Any help with this is greatly appreciated. Thanks!


    Check here: http://forums.parallax.com/showthread.php?131460-Ds1620&p=1073760#post1073760

    I finally worked out a nice code (with big help of Scott Edwards...) using BS1.
    You will find a complete information there.
Sign In or Register to comment.