Ex. - External Communication - iRobot IR-CT01 User Manual

Ez controller
Table of Contents

Advertisement

3.8. Example –External Communication
Controlling the actuator through external communication by the Bluetooth port.
Select [Example] - [IRROBOT_EZController] - [EZ]–[EasyControl_ExtCom]
[Description]
Mode switch (#8) can be positioned anywhere. (Mode switch only works in the built-in basic program)
-
Supply power to the input power terminal (#7). Make sure correct input voltage(7.4V or 12V) and correct
-
polarity.(GND and VCC)
Carefully insert the connector suitable for the selected communication. (#14 PWM / #15 TTL / #16 RS-485)
-
-
(For PWM connector (#14), refer to the page 6 to make sure correct polarity.)
There is a port (# 18) for external communication at the bottom right, and connects the device to the pin
-
according to the pin arrayal.
If you press the A(B) button in the example, 'A(B)' is sent as an ASCII value.
-
-
When the board receives 'A' as an ASCII value, the actuator moves to the A point set the same as before,
Similarly, when the ASCII value 'B' is received, the actuator moves to the set point B.
[Program Description]
On the Arduino, IO8 and IO9 pins are declared as RX
and TX respectively.
Set baud rate of serial monitor with Serial.begin () function
Check the data which is sent and received by the
Sw_func () function and ExtComData_Func () function
on the serial monitor.
EZ Controller User Manual_EN_V.1.0
Since it is based on Bluetooth, the
communication voltage level is 3.3V.
Communication data is received byte by byte through
"ExtComData_Listen ()" function.
The Sw_Func () function sends ASCII code values
corresponding to A and B respectively, and the
ExtComData_Func () function moves the actuator to the
position corresponding to the received ASCII code value.
14

Advertisement

Table of Contents
loading

Table of Contents