ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to control a hobby servo via arduino using RViz GUI ?

asked 2017-02-11 03:52:53 -0500

RajashekharVS gravatar image

I am using ROS Indigo, Ubuntu 14.04LTE and Arduino UNO. I need to control a hobby servo via arduino using RViz GUI. If I move the scroll bar, the motor should rotate.

edit retag flag offensive close merge delete


@RajashekharVS have you find the answer or have you done this ?

lagankapoor gravatar image lagankapoor  ( 2018-02-08 04:56:41 -0500 )edit

Yes I have done. But not using ROS !

RajashekharVS gravatar image RajashekharVS  ( 2018-03-02 03:15:10 -0500 )edit

I have Done now Sir @RajashekharVS

lagankapoor gravatar image lagankapoor  ( 2018-03-04 23:47:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-11 08:30:53 -0500

ChriMo gravatar image

Easy job :-)

Use firmata firmware for your arduino ( ) and a simple python script using

Now you can write a small python-node for ros and enjoy rviz.

I did it the same way for testing my robots.

Cheers Christian

edit flag offensive delete link more


Can you send me a package with URDF and Arduino code to control one motor ? I am actually bad in programming. Can you please help me ?

RajashekharVS gravatar image RajashekharVS  ( 2017-02-11 09:22:24 -0500 )edit

Load firmata to your UNO and try this as base for your tests:

ChriMo gravatar image ChriMo  ( 2017-02-12 13:41:25 -0500 )edit

I tried but couldn't. Can you send me a package so that it will ease my job ? Thanks in advance !

RajashekharVS gravatar image RajashekharVS  ( 2017-02-18 22:31:51 -0500 )edit

Question Tools

1 follower


Asked: 2017-02-11 03:52:53 -0500

Seen: 633 times

Last updated: Feb 11 '17