switches_as_digital_inputs
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| switches_as_digital_inputs [2018/12/11 22:29] – created tell | switches_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. | Suppose we want to select from four different autonomous routines. | ||
| Line 17: | Line 19: | ||
| * 1: Closed, Open - drive forward | * 1: Closed, Open - drive forward | ||
| * 2: Open, Closed | * 2: Open, Closed | ||
| - | * 3: Closed, Closed | + | * 3: Open, Open - drive forward, turn left, drive, turn right, drive, and then place cube |
| - | [picture]? | + | Given three switches and 3 digital I/Os, we could chose from 8 alternatives. |
| - | But requiring the drivers to read the chart, even if it is written on the robot, is error prone. | + | {{ : |
| - | A better **user interface** would be a rotary switch. | + | |
| - | [picture] | + | But requiring the drive team to read a chart and set several switches, even if the chart is written on the robot, could be confusing in the heat of the match and error prone. |
| + | |||
| + | A better **user interface** would be a rotary switch, which we used on our 2018 competition robot. | ||
| + | |||
| + | {{ : | ||
| A typical rotary switch contains one or more " | A typical rotary switch contains one or more " | ||
| Line 33: | Line 38: | ||
| {{ : | {{ : | ||
| + | |||
| + | ====== More switch ideas ====== | ||
| + | |||
| + | Suppose there were only three autonomous choices. | ||
| + | Such a switch is called a " | ||
| + | |||
| + | [picture] | ||
| + | |||
| + | Notice how the body of the switch is labled " | ||
| + | |||
| + | [picture] | ||
switches_as_digital_inputs.1544585359.txt.gz · Last modified: 2018/12/11 22:29 by tell
