Ask Your Question

rosserial arduino timer problem

asked 2019-07-11 15:31:46 -0500

MrMartins gravatar image

I'm trying to make a publisher in Arduino to send some data to ROS. But I can't do it unless I comment the timer I have on my code. I'm using timer3 but already tried timer1 also.

The problem I get when running "rosrun rosserial_python /dev/ttyACM0" is : "Unable to sync with device"

But when the timer is off it works perfectly.

edit retag flag offensive close merge delete


for what do you need time form arduino?

khasreto gravatar image khasreto  ( 2019-07-11 16:41:28 -0500 )edit

I'm using them to control 2 motors. Btw, ROS is installed on a Raspberry Pi with no internet access so it's kind of hard to copy my entire code.

MrMartins gravatar image MrMartins  ( 2019-07-11 17:00:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-07-12 11:57:34 -0500

duck-development gravatar image

how often you timer fires? how long take it to finisch the timer interrupt?

it it create to mutch load then you get time outs in the communication.

edit flag offensive delete link more

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


Asked: 2019-07-11 15:31:46 -0500

Seen: 90 times

Last updated: Jul 12 '19