User Tools

Site Tools


switches_as_digital_inputs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
switches_as_digital_inputs [2018/12/11 22:37] – [Selecting from among more than two alternatives] tellswitches_as_digital_inputs [2018/12/11 22:42] (current) tell
Line 11: Line 11:
  
 We could use two DIOs for two different limit switches: one for UP, one for DOWN, and if neither switch is closed, we interpret that to mean the mechanism is somewhere in between. We could use two DIOs for two different limit switches: one for UP, one for DOWN, and if neither switch is closed, we interpret that to mean the mechanism is somewhere in between.
 +
 +===== Autonomous Selection =====
  
 Suppose we want to select from four different autonomous routines.  we could use two switches, and tell the drive team to set them according to a table like this: Suppose we want to select from four different autonomous routines.  we could use two switches, and tell the drive team to set them according to a table like this:
Line 36: Line 38:
  
 {{ :rotary-binary2.png?nolink |}} {{ :rotary-binary2.png?nolink |}}
 +
 +====== More switch ideas ======
 +
 +Suppose there were only three autonomous choices.  One three-position toggle switch could control two DIOs.
 +Such a switch is called a "single pole, double-throw, center off" switch.  The switch, and its schematic symbol look like:
 +
 +[picture]
 +
 +Notice how the body of the switch is labled "on-off-on."  This how to tell that it has a center-off position without even moving the lever.   We wired it up like this:
 +
 +[picture]
  
  
  
switches_as_digital_inputs.1544585840.txt.gz · Last modified: 2018/12/11 22:37 by tell