EasyManua.ls Logo

Evolution Robotics ER1 - Input Analog

Default Icon
170 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 10 Application Programmer’s Interface
10-18 ER1 User Guide
Input Analog
This command displays the current value of one of the 16 analog inputs. (The 16th input
is tied to the battery. This uses the 0-5V scale as well, but it maps to a 0-15.6V scale on
the battery.)
Format:
input analog {<input number> <input number> ...}
Parameter
<input number> This specifies the number of the input to query. See the Analog Pin Out
that follows. The input numbers are the pins labelled A <input number> on the diagram.
You will only have access to inputs 0-14, although pin 15 is shown in the output display.
The resulting output values range from 0 to 65535, where:
0 represents 0 volts
65535 represents 5 volts
If the command is given with no arguments, each of the inputs, from 0 to 15, is listed in
the response. For example:
input analog
OK 3328 3328 3328 3392 3328 3328 3328 3264 3328 58432 3328
55040 3328 51648 3328 61568
If the command is issued with arguments, the value of each listed input, from 0 to 15 is
given in the response. For example:
input analog 0 9
OK 3328 58432
The arguments do not have to appear in any particular order, and repeated arguments are
allowed.

Table of Contents