User’s Guide
5-5. Surrounding Light Sensing Function
Let’s create a behavior control program that will print the surround light sensor
values on the screen. There are three light 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 program will look like the following. Refer to the“Examples\Example(Read
light sensor value).bpg”inside the CD.
Depending on the brightness of light, it
will take values ranging from 0 to 255.
Because the sunlight is very strong,
the test outdoor may not work. In
indoor, sensor can be very sensitive to
devices th t emit strong light,
including flashlight,
incandescent lamp
and others.
a
There are also many other items
related to light sensing. Refer to the
AX-S1 manual for more information.
64