Ask Your Question
0

How to read encoder ticks from arduino with pyserial

asked 2013-04-07 12:39:03 -0600

packrat gravatar image

updated 2013-04-09 10:50:14 -0600

I am using a arduino due to read two encoders for wheel position. How do I send those number strings to the pyserial and have pyserial read it as left, right wheel(for ros Odom)? I am not all that good at programming, so how would I setup up the sending side and the receiving side? The encoders resolution is 4096 tick/rev and full motor speed is 3k rpm. I am using the output for the differential_drive ros package. http://www.ros.org/wiki/differential_drive

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-09 12:13:16 -0600

Gav gravatar image

Hi Packrat,

Not quite what you're after, but you might find this useful: http://www.ros.org/wiki/ros_arduino_bridge It's an arduino bridge to ROS that handles odometry & encoders onboard, and is a lot more lightweight than pyserial.

There's a lot of functionality from the differential drive in there too, like PID feedback for speeds.

Cheers, Gavin

edit flag offensive delete link more

Comments

Well all processing is done by the onboard pc. I am trying to use the arduino as a relay to send the encoder ticks to the PC.

packrat gravatar imagepackrat ( 2013-04-09 14:19:23 -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: 2013-04-07 12:39:03 -0600

Seen: 1,486 times

Last updated: Apr 09 '13