13.3) For one of the sensors you chose to describe in your answer to Problem 13.2, identify a commercially
available example, locate the data sheet for the device that describes its performance, and answer the
following questions:
a) What is the range of the sensor?
b) In what form is the output (e.g., voltage, resistance, capacitance, and so on)?
c) What is the transfer function for the sensor?
d) What are the categories of error for the sensor? What is the overall accuracy?
e) Does the sensor exhibit hysteresis? If so, how much?
13.4) Using PDL (also called pseudo-code, see Chapter 6, Software Design), describe an algorithm for
performing switch debouncing in software. Does your routine report when the switch is initially activated
or when it is released?
Since this is a software design exercise, responses will vary. Evaluate answers based on plausibility and
how thoroughly the solution is thought through.
Example pseudo-code:
Routine returns with SwitchOpen, SwitchClosed, NoNewSwitch