Control DC Motor with arduino
I want to control DCMotor with arduino and ROS but i am beginning in programmation. can you give me example of code?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I want to control DCMotor with arduino and ROS but i am beginning in programmation. can you give me example of code?
I would take a look at the roboclaw, it is a little more expensive than the arduino but it will do everything you need including PID for velosicty and position with an auto tuner. I have a ROS driver for it. http://www.ionmc.com/RoboClaw-2x15A-M... https://github.com/sonyccd/roboclaw_ros
If you know how to write code to control DC Motor in Arduino (which I am assuming you can) you can use these tutorials to understand how to integrate it with ROS. http://wiki.ros.org/rosserial_arduino...
It depends of your application, What kind of control do you want to apply? speed, direction, etc... However that kind of control over a DC motor it's more related to control circuits, I guess that the only control trough a ROS node with Arduino implementation is a On/Off control. Please give us more info about what exactly you want to do.
Asked: 2016-03-18 06:16:31 -0600
Seen: 4,828 times
Last updated: Mar 18 '16
did you solve this problem? ı have a dc motor with encoder .and ı want to communicate this with ros . please if you did it .tell me