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

Enccoder output does not match motor input

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

Enccoder output does not match motor input

Post by petercohen » Thu May 23, 2013 8:24 am

Post by petercohen
Thu May 23, 2013 8:24 am

Hi, I need some help. I created an input data file for the MX-28 and recorded the output from the encoder. The resulting curves are included. The top one is input data and the bottom one is output from the encoder. Can anybody explan the differences in shape and amplitude?

P.S. How do I attach a photo? Don't see that option anymore.
Hi, I need some help. I created an input data file for the MX-28 and recorded the output from the encoder. The resulting curves are included. The top one is input data and the bottom one is output from the encoder. Can anybody explan the differences in shape and amplitude?

P.S. How do I attach a photo? Don't see that option anymore.
petercohen
Savvy Roboteer
Savvy Roboteer
Posts: 58
Joined: Tue Jul 19, 2011 5:19 am

Post by petercohen » Mon May 27, 2013 3:33 am

Post by petercohen
Mon May 27, 2013 3:33 am

Hi, anybody knows the answer? Perhaps I should change the question. Anybody managed to make the MX motor turns in the same way as the input data? Thank
Hi, anybody knows the answer? Perhaps I should change the question. Anybody managed to make the MX motor turns in the same way as the input data? Thank
petercohen
Savvy Roboteer
Savvy Roboteer
Posts: 58
Joined: Tue Jul 19, 2011 5:19 am

Post by MarcoP » Mon May 27, 2013 12:51 pm

Post by MarcoP
Mon May 27, 2013 12:51 pm

Hi Peter

For images i suggest you upload them to a free image hosting site such as Flickr and then use the link here to share them.

Should help people to help you.

Rgds
Hi Peter

For images i suggest you upload them to a free image hosting site such as Flickr and then use the link here to share them.

Should help people to help you.

Rgds
MarcoP
Savvy Roboteer
Savvy Roboteer
Posts: 81
Joined: Thu Jan 19, 2012 6:14 pm

Post by petercohen » Thu May 30, 2013 2:45 pm

Post by petercohen
Thu May 30, 2013 2:45 pm

Thanks MarcoP. Can you view the image?

[img]
http://www.flickr.com/photos/96719207@N06/
[/img]

At first, I thought I did not give the motor enough time to reach the desired position as usleep was set to 10000. However, from the curves, it does not seem to be the reason.
Thanks MarcoP. Can you view the image?

[img]
http://www.flickr.com/photos/96719207@N06/
[/img]

At first, I thought I did not give the motor enough time to reach the desired position as usleep was set to 10000. However, from the curves, it does not seem to be the reason.
petercohen
Savvy Roboteer
Savvy Roboteer
Posts: 58
Joined: Tue Jul 19, 2011 5:19 am

Post by MarcoP » Thu May 30, 2013 5:49 pm

Post by MarcoP
Thu May 30, 2013 5:49 pm

Yes i can.

Do you have a load applied on the servo?
It looks like you have to play around with your PID values.

Rgds
Yes i can.

Do you have a load applied on the servo?
It looks like you have to play around with your PID values.

Rgds
MarcoP
Savvy Roboteer
Savvy Roboteer
Posts: 81
Joined: Thu Jan 19, 2012 6:14 pm

Post by petercohen » Thu May 30, 2013 6:03 pm

Post by petercohen
Thu May 30, 2013 6:03 pm

MarcoP wrote:Yes i can.

Do you have a load applied on the servo?
It looks like you have to play around with your PID values.

Rgds


Thanks. Just a small load. What values do you recommend? It was worse when I set the P_P_GAIN to 8. When I increased it to 50, I got the results posted. So, even on the same robot, depending on the load, I need to adjust the PID values? Sounds a bit inconvenience. Is there a set of values that does well in general?
MarcoP wrote:Yes i can.

Do you have a load applied on the servo?
It looks like you have to play around with your PID values.

Rgds


Thanks. Just a small load. What values do you recommend? It was worse when I set the P_P_GAIN to 8. When I increased it to 50, I got the results posted. So, even on the same robot, depending on the load, I need to adjust the PID values? Sounds a bit inconvenience. Is there a set of values that does well in general?
petercohen
Savvy Roboteer
Savvy Roboteer
Posts: 58
Joined: Tue Jul 19, 2011 5:19 am

Post by MarcoP » Thu May 30, 2013 6:46 pm

Post by MarcoP
Thu May 30, 2013 6:46 pm

Hi

I do not have a lot of experience with that but from the images you Integral term seems low.

There are no ideal values (otherwise the servos would come pre-programmed with them).

It's all about compromises depending on what you want.
You will have to read about PID control and tweak the values to suit your needs.

Regards
Hi

I do not have a lot of experience with that but from the images you Integral term seems low.

There are no ideal values (otherwise the servos would come pre-programmed with them).

It's all about compromises depending on what you want.
You will have to read about PID control and tweak the values to suit your needs.

Regards
MarcoP
Savvy Roboteer
Savvy Roboteer
Posts: 81
Joined: Thu Jan 19, 2012 6:14 pm


7 postsPage 1 of 1
7 postsPage 1 of 1