how to interface a servo motor with an arduino mega2560 using ros ?
i'm trying to use the code in the follwing link: http://wiki.ros.org/rosserial_arduino/Tutorials/Servo%20Controller how to implement this program .please help me .
Asked by rpxz on 2016-05-24 05:48:46 UTC
Comments
Whats' exactly your problem with the tutorial?
Asked by Femer on 2016-05-24 07:30:08 UTC
i'm unable to upload the ros code given to my arduino mega2560 board.
Asked by rpxz on 2016-05-25 00:33:10 UTC
could you send more details about the error message you receive from the Arduino IDE ?
Asked by Femer on 2016-05-25 03:34:15 UTC
it doesnt show any error.. but the servo doesnt move even after following the commands to b used after uploading the code
Asked by rpxz on 2016-05-25 05:01:05 UTC
ah, so you can actually upload the code on your Arduino board? You said you were unable to do it. In the "Testing" section I guess one part is missing: after starting roscore, type in a new terminal the command
rosrun rosserial_python serial_node.py /dev/ttyUSBX
(Make sure to use the correct USB)Asked by Femer on 2016-05-25 07:10:59 UTC
i already tried it. still it not moving.i connected an led to check whether there's any problem with the board,but that it isn't the problem. the servo progrm uploaded and rosrun n rostopic pub.. was also done even then its not happening..the ros core was also run
Asked by rpxz on 2016-05-26 00:07:11 UTC
fixed it .. it was nt getting enough power to the board .. thanx anyway :)
Asked by rpxz on 2016-05-26 02:22:35 UTC
what do u mean not enough power? how do you powering it before?
Asked by adelleodel on 2016-05-26 04:51:15 UTC
i was trying to give a HIGH to the powr socket through the code instead of directly connecting it to the vcc.
Asked by rpxz on 2016-05-26 23:17:44 UTC