Shop OBEX P1 Docs P2 Docs Learn Events
1-wire project — Parallax Forums

1-wire project

Lars50Lars50 Posts: 23
edited 2005-01-16 10:22 in BASIC Stamp
My small project consists today of 8 off DS18S20 measuring temperuture in a heating system.·When reaching certain setpoint various things should happend, as start/stop of pumps and open/close of valves. There are also a few external signals that will effect operation of the system.

Using a BS24p I have all temp probes working and DS2405. Now the plan· is to upgrade to DS2406 or even 2408 (this after recommendations).

I been through Dallas notes and search on Google but have not yet figured out how to correcly toggle the 2406, I use the code below:

OWOUT 0,1,[noparse][[/noparse]$CC,$AA,$07,$00]·························· ' alter $07 to $08 toggle·and $06 back again
OWIN 0,0,[noparse][[/noparse]sram]
DEBUG CR, HEX2 sram
OWOUT 0,1,[noparse][[/noparse]$CC,$55,$07,$00,sram ^ $40]·······················
OWIN 0,0,[noparse][[/noparse]crc]
DEBUG CR, HEX2 crc
OWOUT 0,0,[noparse][[/noparse]$FF]
OWIN 0,0,[noparse][[/noparse]i]

and manage to toggle but I'm not sure why.

I would appreciate if somebody could give me a hint.

Thanks Lars
Sign In or Register to comment.