User’s Guide
The AX-S1 has the identical mechanical and electrical universal expansion
structure as the AX-12 which can be connected to other Dynamixel units.
5-2. Distance Sensing Function
Let’s create a behavior control program that will print the distance sensor
values on the screen. There are three distance sensors. Let’s print the value of
each one by one on the screen. Select LOAD for the command, CM-5 screen as
the left parameter, and sensor 1 of the Dynamixel as the right parameter.
The finished program should look like the following. Refer to the
“Examples\Example(Read IR sensor value.bpg”inside the CD.
A beeping sound will be made when
the AX-S1 is connected to the CM-5
unit and the power is turned on. When
you run the program the result will
look like the following.
Bring your hand closer to the distance
sensor area. When the distance
between the sensor and your hand
decreases, the value printed on the
screen will increase, up to maximum
value of 255.
As the distance increases, the value will decrease down to zero. If the value does
57