ROBOTIS e-Manual v1.13.01
You can make your own sensor with simple control functions using the ADC port and OUT port on CM-510/CM-530.
[ WARNING ] Connecting poorly designed circuits may damage the controller. Please be sure to acquire sufficient knowledge about circuits beforehand.

Below is a pin diagram of CM-510’s external port.
Below is a pin diagram of CM-530’s external port.
| NOTE : Please use the 5P Cable when using other sensors. The 5P cable can be purchased from ROBOTIS |
[ External Output Control ]
Below is an example of an LED circuit to turn the LED on and off using the OUT port (pin 1) .
(You need to adjust the amound of resistance depending on the type of controller and/or the type of LED.)

A high signal can be sent to the OUT port using RoboPlus Task.
Select the user's device in the writable parameter such as LOAD and CALCULATE, then select the port on which the device is connected.
Then, set the high signal to the readable parameter using a constant.

![]()
When the code above is executed, high signal will be sent to the OUT port of the device connected to PORT 3, and the LED will turn on.
[Reading the ADC Value]
Most of the sensors used in robots, such as IR sensors and distance sensors, support analog output. The CM-510 can use its external ports to read the sensor’s analog output signals. These sensors may be designed by the user or bought from a store.


You can incorporate the sensor’s analog output to your robot's movements as in the example below.
