Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   CAN (http://www.chiefdelphi.com/forums/forumdisplay.php?f=185)
-   -   Synchronized Motors (http://www.chiefdelphi.com/forums/showthread.php?t=81539)

duane 30-01-2010 17:14

Synchronized Motors
 
Our robot has two motors driving each drive transmission, one pair of motors on each side. This is a very common setup for drive systems.

With PWM control, one can use a Y adapter on the PWM cable to connect from one PWM output to both speed controllers.

Is something like this similar with CAN? Can two speed controllers be programmed to stay in synchronization?

And as a bonus question. We have an encoder on this transmission. We would like to use this encoder connected directly to the speed controllers and us position control and possibly speed control.

How would something like this be done?

A couple of possible solutions I can imagine:
1. Use some CAN commands to synchronize two speed controllers (I can imagine that this is wishful thinking)
2. Split the encoder connection and connect it to both speed controllers.

Thanks for tips and ideas.

simpsonboy77 31-01-2010 00:22

Re: Synchronized Motors
 
We have a similar need, so we just split the encoder lines, and had 1 encoder feed the 2 jags that were linked. With this we hope that the speed control will keep them more or less moving the same speed.

taichichuan 15-02-2010 09:22

Re: Synchronized Motors
 
How did this approach work out for you?

TIA,

Mike

Mr-Shutter 15-02-2010 09:42

Re: Synchronized Motors
 
Quote:

Originally Posted by duane (Post 910066)
A couple of possible solutions I can imagine:
1. Use some CAN commands to synchronize two speed controllers (I can imagine that this is wishful thinking)
2. Split the encoder connection and connect it to both speed controllers.

Thanks for tips and ideas.

Well, one way is to bring the encoders lines back to the Crio, which has PID loops on it, then you can send both motors the same voltage value.

Another really cool way is to add a CAN command to sync a group of jaguars. The source code is available.

You could splice the encoder lines, but I could see some weird things happening, you will probably want a lower P value.

Good Luck

taichichuan 15-02-2010 13:20

Re: Synchronized Motors
 
Can you point me to example source for sending sync-mode commands to the jaguars via CAN? I assume that you need to set the jaguars to be a member of a group, and then send the group-encoded command followed by a sync command. But, a working example to look at would really help clarify the process.

TIA,

Mike


All times are GMT -5. The time now is 02:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi