midon design 1WSwitch User Manual

A 1-wire serial interface

Advertisement

Quick Links

midon design
A 1-Wire Serial Interface
1WSwitch
Figure 1 1WSwitch
1WSwitch User Guide Version 1.02
November 18, 2008
1WSwitch User Guide Version 1.02
Page 1 of 28

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 1WSwitch and is the answer not in the manual?

Questions and answers

Summary of Contents for midon design 1WSwitch

  • Page 1 A 1-Wire Serial Interface 1WSwitch Figure 1 1WSwitch 1WSwitch User Guide Version 1.02 November 18, 2008 1WSwitch User Guide Version 1.02 Page 1 of 28...
  • Page 2: Table Of Contents

    J5 Usage .....................18 Software Change History ................20 8.1. Upgrading 1WSwitch Software .............20 8.2. Upgrade Instructions ................20 Trouble-Shooting Problems with 1WSwitch ..........22 Error Messages..................23 1WSwitch Schematic ................24 1-Wire Sensors ..................25 Legal Disclaimer..................28 1WSwitch User Guide Version 1.02 Page 2 of 28...
  • Page 3: List Of Tables

    Table 2 EIN Settings Recommended..............17 Table 3 RJ-12 Pin-outs in use................18 Table 4 1WSwitch Software History..............20 Table 5 Common 1WSwitch Problems and Resolutions........22 Table 6 1WSwitch Error Messages..............23 Table 7 Reset Type Messages ................23 Table 8 Midon Design – Available/Compatible Sensors ........26 1.2.
  • Page 4: Introduction

    Sensors can be polled on a regular basis (from 1 to 99 minutes), or manually interrogated. In a typical application, 1WSwitch is connected to a serial port on a PC. Serial interface software is then used to gather the data received from 1WSwitch and process it.
  • Page 5 • Manual Poll of sensor readings. While 1WSwitch is normally used for continuous (from 1 to 99 minute intervals) polling of sensor readings, it can also be used manually to take sensor readings on command from the serial interface.
  • Page 6: Installation

    1WIO relay units from the 12V output of 1WSwitch, the transformer needs to supply at least 350mA (250mA for 1WIO and 100mA for 1WSwitch) per 1WIO relay unit, up to a maximum of 800mA, or 2 1WIO relay units. Beyond that, supplemental powering will need to be provided for the off-board units.
  • Page 7: Using 1Wswitch

    Note: an ERA command is not required every time that an INI command is issued. It should only be required for first time use. If you believe that 1WSwitch has not found all 1-Wire devices, re-issue the INI command. Now program the configuration by using the command.
  • Page 8 – the state of all switch sensors is normally preserved through a power cycle. Use the command for all DS2406’s (or DS2407) and command for DS2405’s. If there are no apparent errors, you are ready to use 1WSwitch. Enjoy! 1WSwitch User Guide Version 1.02 Page 8 of 28...
  • Page 9: Using 1-Wire Switch Sensors

    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 >...
  • Page 10: Wswitch Commands

    6. 1WSwitch Commands Table 1 1WSwitch Command List Syntax Command Description Display on-board ADC voltage during DAD<on|off> poll output Note 3 Enable or disable debug outputs DEB<on|off> Use only when directed to by Midon Design Delete a sensor that was previously DEL<sensorid>...
  • Page 11 Display Time from the Real Time Clock Display sensor readings of all connected 1-Wire Devices in either verbose (includes serial numbers) or non-verbose mode TOG <sensorid> TOGgle a DS2405 sensor output from Where <sensorid> is a decimal 1WSwitch User Guide Version 1.02 Page 11 of 28...
  • Page 12: Using The Set Command

    Enter the time in decimal minutes. Use the command to adjust only this parameter. Serial # Display Set this to On if you want 1WSwitch to display the 1-wire ID of all sensors. Use the command to adjust only this parameter. Time Display Set this to On if you want 1WSwitch to display the voltage as measured at connector J2 pin 3.
  • Page 13: The Dis Display Output

    OnBoard ADC Display Set this to On if you want 1WSwitch to display the output from the on- board Analog to Digital Converter connected to pin 3 of J2 and referenced to ground on pin 4 of J2. Use the command to adjust only this parameter.
  • Page 14: Using The Eep And Mem Commands

    After entering the command, 1WSwitch will display the contents of memory. Use the “;” key to advance to the next memory location, and use the “/” key to go to the previous memory location.
  • Page 15: Missing Sensor Display

    1WSwitch continuously polls for the presence of all sensors that have been registered via the command, in other words, for sensors that are known to 1WSwitch. If any of the sensors are detected as missing, the following display will result: >MON 09:52:34...
  • Page 16: Options

    Polling of sensors is done sequentially and very fast (milliseconds per sensor). The more sensors that are equipped, however, the more time it will take for 1WSwitch to recognize a missing or re-added sensor. 6.6. Options 6.6.1. On Board ADC Display (DAD) The DAD (Display A to D) option is to enable or disable the on-chip voltage sensor (Analog to Digital Converter, or ADC).
  • Page 17: Ds2408 Based Relay And Led Usage

    MD2088 8 LED Ouput 6.7. DS2408 Based Relay and LED Usage 1WSwitch software has the ability to actuate relay modules based on the DS2408 port expander chip from Dallas/Maxim. One such module is the Midon Design 1WIO. The 1WSwitch supports up to 40 1WIO relay modules (MD2083) and the command input then actuates those relays (numbered from 01 to 80).
  • Page 18: J5 Usage

    The pin-out of the J5 connector is shown in Figure 4. Figure 4 Connector J5 RJ-12 Pin-out Pin 1 is derived from the power supply feeding 1WSwitch. It is DC rectified, so it will not matter if your power supply is AC only.
  • Page 19 Midon Design MD208x Relay and LED +5VDC Sensor (1WIO) Supply Simon Atkins’ Hub (shown for reference +5VDC DC Supply DC Supply only. 1WSwitch does not support this device) AAG TAI8550 Combo Switch +5VDC AAG TAI8520 Temp Sensor +5VDC AAG V3 1-Wire Weather Station +5VDC...
  • Page 20: Software Change History

    8.1. Upgrading 1WSwitch Software Midon Design strives to continue to add value to the 1WSwitch product and, as a result, we release new features to the 1WSwitch software from time to time. Upgrading 1WSwitch is easy. Software updates can be ordered from our web pages.
  • Page 21: Figure 5 1Wswitch Top View

    The following figure shows the location for installing the new processor, U1. Figure 5 1WSwitch Top View 1WSwitch User Guide Version 1.02 Page 21 of 28...
  • Page 22: Trouble-Shooting Problems With 1Wswitch

    9. Trouble-Shooting Problems with 1WSwitch The most common problems associated with using 1WSwitch are listed in the following table. If these instructions do not result in better results with your 1WSwitch, please feel free to contact Midon Design at support@midondesign.com.
  • Page 23: Error Messages

    1WSwitch has sufficient memory for only 60 unique 1-Wire device ID’s. Not installed 1WSwitch could not communicate to the device that you were trying to access. Check your 1-Wire bus wiring, or make sure that you are specifying the correct sensor number.
  • Page 24: 1Wswitch Schematic

    1WSwitch Schematic Figure 6 1WSwitch Schematic Figure 6 shows all components as equipped on a 1WSwitch. The PCB also has mounting connections for an optional DS2438 that can be used as a voltage sensor for external voltages (from zero to 5Volts) through the AIN connection on 1WSwitch User Guide Version 1.02...
  • Page 25: Wire Sensors

    1-Wire Sensors Figure 7 DS2405 Pinout Figure 8 DS2406 & DS2407 Pinout 1WSwitch User Guide Version 1.02 Page 25 of 28...
  • Page 26: Table 8 Midon Design – Available/Compatible Sensors

    Figure 9 DS2408 Pinout Figure 10 DS2438 Pinout Table 8 Midon Design – Available/Compatible Sensors Midon Part Number Description MD3014 DS2405 Switch Sensor MD3023 DS2406 Switch Sensor MD2083 1WIO 4 Relay Output MD2084 1WIO 4 Input MD2088 1WIO 8 LED Output...
  • Page 27 MD3020G 1 Relay Output MD3020H 1 LED output 1WSwitch User Guide Version 1.02 Page 27 of 28...
  • Page 28: Legal Disclaimer

    © Copyright 2008 Midon Design. All rights reserved. No part of this document may be reproduced, recorded, transmitted or distributed in any form or by any means without the written consent of Midon Design.

Table of Contents