Code Monkey home page Code Monkey logo

rmcs-2303-ros-control's Introduction

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*

rmcs-2303-ros-control's People

Contributors

vishnu-kr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.