Skip to content

Vishnu-Kr/RMCS-2303-ROS-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rhino DC Motor Position Control with RMCS 2303

Introduction:

The repository consist of steps and guide for controlling a Rhino DC Motor with RMCS 2303 Driver based on ROS topics.

 

Components Needed:

  • Rhino DC Motor - 1
  • RMCS 2303 Driver -1
  • 12 V DC Power supply
  • BreadBoard
  • Jumper Wires
  • Teensy 4.1

 

Pre-Requisite:

  • ROS Noetic
  • VS Code with PlatformIO

   

Circuit Diagram & Connections

 

Procedure:

  1. Create New Project fig 2  

  2. Name the project, Select Board teensey 4.1

  3. Create src/main.cpp, paste the code present in src folder. Change the CPR Value for adjusting the angle rotation of motor.    

  4. Go to Include folder and make a file named RMCS2303.h and paste the given code:

 

  1. Go to src folder and create a file named RMCS2303.cpp and paste the given code:

  2. Go to libraries section and search for ros. Download the Rosserial Arduino Library by Michael Ferguson. Select the project name and add project dependency. fig 3  

  3. Compile the Code and upload to teensey.

  4. Run the below commands in separate terminals:-

  5. Terminal 1:

roscore
  1. Terminal 2:
rosrun rosserial_arduino serial_node.py /dev/ttyACM0 _baud:=9600
  1. Terminal 3:
*rostopic pub /position_in std_msgs/Float32 "data: 10.0" -1*

About

Rhino DC Motor Position Control with RMCS 2303

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages