Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Reading Dynamixel with AVR 8535

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
3 postsPage 1 of 1
3 postsPage 1 of 1

Reading Dynamixel with AVR 8535

Post by ryann2k1 » Sun Mar 28, 2010 5:09 am

Post by ryann2k1
Sun Mar 28, 2010 5:09 am

Hi all,

Does anyone ever work with Code vision C AVR programming environment?

I am doing a project and trying to replace the cm-5 with the microcontroller AVR ATMEGA 8535 and managed to send commands to the dynamixel motor. but when it comes to read the dynamixel, my microcontroller can not detect the data, it can just detect the FF FF and the rests are missing.

Thank you in advance.

Regards,


Ryan
Hi all,

Does anyone ever work with Code vision C AVR programming environment?

I am doing a project and trying to replace the cm-5 with the microcontroller AVR ATMEGA 8535 and managed to send commands to the dynamixel motor. but when it comes to read the dynamixel, my microcontroller can not detect the data, it can just detect the FF FF and the rests are missing.

Thank you in advance.

Regards,


Ryan
ryann2k1
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 154
Joined: Thu Nov 16, 2006 1:00 am

Post by nsted » Mon Jul 05, 2010 1:54 am

Post by nsted
Mon Jul 05, 2010 1:54 am

Did you find a solution to this...I'm having a similar problem. When I try to read, I always get the full header and ID, and then every other byte is dropped?!
Did you find a solution to this...I'm having a similar problem. When I try to read, I always get the full header and ID, and then every other byte is dropped?!
nsted
Newbie
Newbie
Posts: 3
Joined: Mon Jul 05, 2010 1:52 am

Post by i-Bot » Mon Jul 05, 2010 10:27 am

Post by i-Bot
Mon Jul 05, 2010 10:27 am

The usual problem when these symptoms occur is that you are not reading the UART fast enough. If the bus is running at high speed, especially 1M, the bytes come back pretty fast, and the UART only has a couple of bytes buffered.

You must read and store the bytes as quick as they come in. Don't do any long processing while receiving. Wait till all received then process the bytes.

See this topic for some ideas:
http://robosavvy.com/forum/viewtopic.ph ... highlight=
The usual problem when these symptoms occur is that you are not reading the UART fast enough. If the bus is running at high speed, especially 1M, the bytes come back pretty fast, and the UART only has a couple of bytes buffered.

You must read and store the bytes as quick as they come in. Don't do any long processing while receiving. Wait till all received then process the bytes.

See this topic for some ideas:
http://robosavvy.com/forum/viewtopic.ph ... highlight=
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am


3 postsPage 1 of 1
3 postsPage 1 of 1