RHINO RMCS –2303 Operating Manual page 30

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

Advertisement

Library Installation:
Download RMCS-2303 Arduino library from :
http://robokits.co.in/downloads/RMCS2303drive_Arduino_Library.zip
In Arduino IDE got to menu - Sketch > Include Library > Add .ZIP Library
Choose the downloaded zip file.
You can see confirmation if library import is successful
Open examples from Menu File > Examples > RMCS-2303_DC_Servo
Set parameters; make sure you choose parameters, serial port, and slave id properly before uploading
the code to Arduino board.
There are many more functions other than covered in example codes. Description of these functions
as below. In this code 'rmcs' is object for library class, it can be changed.
Functions for analog control mode
rmcs.Enable_Analog_Mode(slave_id); //Enable analog mode
rmcs.Disable_Analog_Mode(slave_id); //Disable motor in analog
mode
Functions for Digital speed control mode
rmcs.Speed(slave_id,5000);
rmcs.Enable_Digital_Mode(slave_id,1);
moving long int b=rmcs.Speed_Feedback(slave_id);//Speed feedback from drive
rmcs.Brake_Motor(slave_id, 1);
rmcs.Disable_Digital_Mode(slave_id,1);
//Set speed to 5000 RPM
//Enable speed mode, motor starts
//Brake motor in speed mode
//Disable motor in speed mode
https://www.robokits.co.in/
30 |
P a g e

Advertisement

Table of Contents
loading

Table of Contents