User guide

midon design
1WSwitch User Guide Version 1.02 Page 9 of 28
5. Using 1-Wire Switch Sensors
Figure 3 DS2405 or DS2406 Applications
Figure 3 shows some of the ways in which DS2405 or DS2406 1-Wire sensors
can be connected to external devices. The PIO pin on the 1-Wire device can be
used as either an input or as an output. When used as an input, make sure that
you set the 1-Wire sensor to the off state, otherwise the PIO input changes will
not be visible to the device.
When properly connected as a switch input, 1WSwitch will show state changes
whenever they occur, for example:
FRI 08:11:10
Switch #01[C90000005F31C412]=On
>
FRI 08:11:12
Switch #01[C90000005F31C412]=Off
>
FRI 08:11:17
Switch #01[C90000005F31C412]=On
Note that “On” means that the DS2405/6/7 PIO output is at ground voltage level.
Thus, in the applications shown in Figure 3, “On” would mean that switch SW1 is
closed, or LED DS1 is lit, or relay RLY1 is activated.