Ask Your Question
0

using arduino inestead arbotix for controll motors

asked 2017-10-25 15:53:09 -0600

zakizadeh gravatar image

updated 2017-10-27 12:17:34 -0600

i want using arduino for control dc motor . What steps are needed ?? what change i need to use codes in ROS by Example Vol2 book . i want using arduino inestead arbotix controller to send command to DC motors. in book used arbotix package . like this example(please look at line 14) . i have to change this package??

edit retag flag offensive close merge delete

Comments

2

If you don't want to change any code then this is not a ROS question I believe.

In general:

  1. get a controller & amps that are compatible with your motors
  2. find / write node with a similar enough ROS API as the dynamixel drivers
  3. update the launch files
gvdhoorn gravatar imagegvdhoorn ( 2017-10-26 01:32:35 -0600 )edit

can i change this code and upload on arduino ??

zakizadeh gravatar imagezakizadeh ( 2017-10-26 04:29:01 -0600 )edit

I have no idea. I don't use dynamixels, nor any of the arbotix packages.

gvdhoorn gravatar imagegvdhoorn ( 2017-10-26 04:29:48 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-10-27 11:58:35 -0600

psammut gravatar image

updated 2017-10-27 12:02:13 -0600

Here is an explanation of how you could have an arduino control your motors in a general way:

Components required:

  • An arduino with code that can control your motor
  • A computer running ROS and a node that publishes data to a topic, such as an integer that corresponds to a motor value that you would like to use as a throttle value for your motor

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...

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!

edit flag offensive delete link more

Comments

thanks . in book used arbotix package . like this example . i shoud to change this package??

zakizadeh gravatar imagezakizadeh ( 2017-10-27 12:11:45 -0600 )edit

You should create your own package and your own node to interface with the arduino. First get the arduino to control your motors, then create a package and node to talk to the arduino.

psammut gravatar imagepsammut ( 2017-10-27 13:08:17 -0600 )edit

i want to run this example . what data is send to serial port ?? can i write program in arduino to get these data from serial port and manage dc motors?

zakizadeh gravatar imagezakizadeh ( 2017-10-27 14:06:43 -0600 )edit
-1

answered 2018-02-22 00:15:12 -0600

Darby Lim gravatar image

Hello :)

ROBOTIS provides official opensource repository as ROBOTIS-GIT

In this repository, you can find Dynamixel-Workbench to control all series of DYNAMIXELS. Because it is official package for DYNAMIXEL, you can get a proper solution when you faced some problems.

Furthermore, they provides OpenManipulator package for manipulation. You can get a information when you use MoveIt! or Arduino with DYNAMIXELS.

This is WIKI page for DYNAMIXEL and introduced packages.

WIKI for DYNAMIXEL

WIKI for Dynamixel-Workbench

WIKI for OpenManipulator

Enjoy with it!

Darby

edit flag offensive delete link more

Comments

I believe that this should be a comment instead of an answer as this doesn't answer the question. Instead, it just points to a wiki and GitHub repo.

jayess gravatar imagejayess ( 2018-02-22 00:33:29 -0600 )edit

Have you solved your problem? Nowadays I met the same problem as you, I don't know how to change the interface of artibox_controller.

Jichao gravatar imageJichao ( 2018-03-09 07:38:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-10-25 15:53:09 -0600

Seen: 387 times

Last updated: Feb 22 '18