Make your own sensor

You can make your own sensor with simple control functions using the ADC port and OUT port on CM-510.

 

[ WARNING ] Connecting poorly designed circuits may damage the controller.  Please be sure to acquire sufficient knowledge about circuits beforehand.

 

PIN Information

Below is a pin diagram of CM-510’s external port.

(You should change the resistor if you use high flux LED.)

 

mcs_cm510_external_io.png

 

  1. OUT : 5V Output
  2. VCC (5V)
  3. ADC : Can read analog signals made by users.
  4. GND
  5. NC : Not used

 

NOTE : Please use the 5P Cable when using other sensors. The 5P cable can be purchased from ROBOTIS

 

Controlling User’s Device

[ External Output Control ]

Below is an example of an LED circuit to turn the LED on and off using the OUT port (pin 1) .

 

mcs_led_circuit.png

 

A high signal can be sent to the OUT port using RoboPlus Task.

  1. Select the user's device in the writable parameter such as LOAD and CALCULATE, then select the port on which the device is connected.

  2.  Then, set the high signal to the readable parameter using a constant.

mcs_auxuserdevicewrite.png

 

 

mcs_auxuserdevicehighsignal.png

 

[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.

 

 

mcs_tilt.png

 

 

mcs_cm-510_tilt.png

 

mcs_userdevice_adc_read.png