Shop OBEX P1 Docs P2 Docs Learn Events
using a bs2 to program a DS1620 to run in stand alone mode — Parallax Forums

using a bs2 to program a DS1620 to run in stand alone mode

sderycksderyck Posts: 6
edited 2009-01-23 13:04 in BASIC Stamp
Hello all,
first time asking a question.
I want to program a DS1620 with a Thigh and Tlow so it can run in stand alone mode.

I have succussfully run programs that collect information from the DS1620 and send it to the PC screen via debug plus.

if someone has a sample program i'd be grateful.

i've attached my latest attempt at the program. smilewinkgrin.gif

Comments

  • Tracy AllenTracy Allen Posts: 6,662
    edited 2009-01-22 06:33
    Welcome!

    Sample program and advice:
    www.emesys.com/OL2d1620.htm#thermostat

    For example, commenting your code, the following sets the upper threshold at 20 degrees Celsius:

    THi = 20   ' whole degrees Celsius
    HIGH RST ' Now activate it again and send the..
    SHIFTOUT DQ,CLK,LSBFIRST,[noparse][[/noparse]WHiT, THi*2\9] ' Write the THi setting
    ' note: WHiT followed by "," not "+"
    '          THi * 2 because the THi * 2 has to  be units of 0.5 degC
    '           \9 is needed to send all 9 bits
    LOW RST ' Done--deactivate.
    PAUSE 100
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • sderycksderyck Posts: 6
    edited 2009-01-22 12:03
    Thanks Tracy...

    I'll put that together and report back
  • sderycksderyck Posts: 6
    edited 2009-01-23 13:04
    Tracy,
    Thank you very much. Worked perfect!...
Sign In or Register to comment.