ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This question is very vague because there are lots of different motors and lots of different motor controllers that can be interfaced with an arduino.
Here is an explanation of how you could do in a general way:
Components required:
If you have those two things you can modify the arduino code by adding ROS functionality to it. Do the first of these 3 tutorials: http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
With these examples you will gain the knoweledge to allow you to send AND receive data to/from your arduino. With this knoweldge you can have your arduino serve a motor controller, by sending it throttle values and having it convert those throttle values to whatever signals are required to control your motors. Easy peazy lemon squeezy!
2 | No.2 Revision |
This question is very vague because there are lots of different motors and lots of different motor controllers that can be interfaced with an arduino.
Here is an explanation of how you could do in a general way:
Components required:
If you have those two things you can modify the arduino code by adding ROS functionality to it. Do the first of these 3 tutorials: http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
With these examples you will gain the knoweledge to allow you to send AND receive data to/from your arduino. With this knoweldge you can have your arduino serve a motor controller, by sending it throttle values and having it convert those throttle values to whatever signals are required to control your motors. Easy peazy lemon squeezy!
3 | No.3 Revision |
Here is an explanation of how you could do have an arduino control your motors in a general way:
Components required:
If you have those two things you can modify the arduino code by adding ROS functionality to it. Do the first of these 3 tutorials: http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
With these examples you will gain the knoweledge to allow you to send AND receive data to/from your arduino. With this knoweldge you can have your arduino serve a motor controller, by sending it throttle values and having it convert those throttle values to whatever signals are required to control your motors. Easy peazy lemon squeezy!
4 | No.4 Revision |
Here is an explanation of how you could have an arduino control your motors in a general way:
Components required:
If you have those two things you can modify the arduino code by adding ROS functionality to it. Do the first of these 3 tutorials: http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
With these examples you will gain the knoweledge to allow you to send AND receive data to/from your arduino. With this knoweldge you can have your arduino serve a motor controller, by sending it throttle values and having it convert those throttle values to whatever signals are required to control your motors. Easy peazy lemon squeezy!