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...
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.
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.
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...
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 >...
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...
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.
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.
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.
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...
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).
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).
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...
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.
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...
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.
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.
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...
Need help?
Do you have a question about the 1WSwitch and is the answer not in the manual?
Questions and answers