RHINO RMCS –2303 Operating Manual page 32

Hide thumbs Also See for RMCS –2303:
Table of Contents

Advertisement

rmcs.Serial0(9600);
//usb serial to monitor data on serial monitor
This function will initialize Serial communication by setting baudrate between Arduino and Serial
monitor in Arduino IDE. Baudrate can be changed as required.
rmcs.begin(&Serial3,9600); //uncomment if using hardware serial port for
mega2560:Serial1,Serial2,Serial3 and set baudrate
This function passes the pointer of serial port to be used. It's used to initialize serial port and set
baudrate.
Serial1
:
rmcs.begin(&Serial1,9600);
Serial2
:
rmcs.begin(&Serial2,9600);
Serial3
:
rmcs.begin(&Serial3,9600);
rmcs.begin(&myserial,9600);
//uncomment for using software serial and set baudrate
This function is used to set baudrate of Software Serial port. In Arduino Uno software serial should be
used.
rmcs.WRITE_PARAMETER(slave_id, INP_CONTROL_MODE, PP_gain, PI_gain, VF_gain,
LPR, acceleration, speed);
This function is used to write all parameters. Confirmation will be sent on Serial port shown as below
when
all parameters are written Successfully.
rmcs.READ_PARAMETER(slave_id);
This function read all current parameters and then print on Serial monitor.
Analog Mode:
rmcs.Enable_Analog_Mode(slave_id);
This function will enable your drive in Analog control mode. Speed of motor can be changed by
varying
potentiometer.
rmcs.Disable_Analog_Mode(slave_id); // To disable motor in Analog control Mode
32 |
P a g e
https://www.robokits.co.in/

Advertisement

Table of Contents
loading

Table of Contents