Go to Post "We just fundraised $5000 for registration, and you spent it all on balloons?" - [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2010, 17:14
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 90
duane is an unknown quantity at this point
Send a message via AIM to duane
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.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2010, 00:22
simpsonboy77 simpsonboy77 is offline
Registered User
AKA: Garrett Dicken
FRC #0041 (RoboWarriors)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New Jersey
Posts: 87
simpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond repute
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.
__________________
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2005 - 2008 Team 41 Programmer
2008 NYC Regional Winner
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2010, 09:22
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Synchronized Motors

How did this approach work out for you?

TIA,

Mike
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2010, 09:42
Mr-Shutter's Avatar
Mr-Shutter Mr-Shutter is offline
Audiophile
AKA: David
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Virginia
Posts: 29
Mr-Shutter will become famous soon enough
Send a message via AIM to Mr-Shutter
Re: Synchronized Motors

Quote:
Originally Posted by duane View Post
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
__________________
I see in logic, Black and White
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2010, 13:20
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does Synchronized initialize semaphores? 360skier C/C++ 0 26-01-2009 18:07
Motors, Motors, and More Motors 1033missions Motors 1 09-02-2006 18:46
Victors not synchronized - dual motor train roknjohn Control System 9 07-03-2005 18:51
Victors not synchronized - dual motor train roknjohn Electrical 8 22-02-2005 11:09
Motors.. and more motors.. How many on your 2004 bot? OneAngryDaisy Motors 33 23-02-2004 00:46


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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