Go to Post Shake Weights are the game piece. The world is free to end now. - Travis Hoffman [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 06-02-2014, 19:42
timetravel_1024 timetravel_1024 is offline
Registered User
FRC #0839
 
Join Date: Jan 2014
Location: United States
Posts: 2
timetravel_1024 is an unknown quantity at this point
Positioning two connected motors

Our robot has a shooter this year with a 'shoulder' that has two motors that are connected to each other on opposite sides that share an encoder. We need to be able to bring both motors to a specified position/angle, but they need to work in sync and not interfere with each other. How can we achieve this? Can we just the built in CAN PID functions, or do we need to do something else?
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2014, 21:24
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Positioning two connected motors

How about controlling them from the same PWM output, using a Y cable? In other words, pretend they are one motor...

There will always be a small amount of 'fight' between them, but this can be made small enough to ignore.

PIC can be useful to make sure something moves to a very specific position, especially if you want it to get there quickly. However if this end position is fixed, a mechanical stop may be a wise choice.

In the past, we have had motors move something to one of three specific positions (start, halfway or all-the-way) using mechanical stops. The middle stop was actuated pneumatically, but could just as easily have been a servo. Didn't even need encoders, just limit switches (to avoid melting the motors)
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2014, 11:38
timetravel_1024 timetravel_1024 is offline
Registered User
FRC #0839
 
Join Date: Jan 2014
Location: United States
Posts: 2
timetravel_1024 is an unknown quantity at this point
Re: Positioning two connected motors

Hi DonRotolo,

Thank you for your reply! We are unable to use a Y cable because the rules state that we may only have one motor per controller for the motors we are using. However, we've decided to cut back to one motor in order to be able to use the built in CAN functions for positioning.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2014, 11:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Positioning two connected motors

Quote:
Originally Posted by timetravel_1024 View Post
We are unable to use a Y cable because the rules state that we may only have one motor per controller for the motors we are using.
Don wasn't suggesting that you connect two motors to one controller.

He was suggesting that you connect two controllers to one DSC PWM port with a PWM Y cable. This is common and accepted practice.

Of course, if you did this you would have to connect the encoder to the cRIO (via the DSC).

Then, you would read the (single) encoder, use it to compute the appropriate output command (using PID or other control algorithm in your cRIO software), and send the computed command to the DSC PWM port... and the Y cable would send the signal to both motors.


Quote:
However, we've decided to cut back to one motor in order to be able to use the built in CAN functions for positioning.
I'm not sure if there's any accepted and field-proven way to use one Jag's built-in position controller to sync properly with a second motor.


Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2014, 13:47
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Positioning two connected motors

Quote:
Originally Posted by Ether View Post
I'm not sure if there's any accepted and field-proven way to use one Jag's built-in position controller to sync properly with a second motor.
I noticed that this new thread just got started.


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


All times are GMT -5. The time now is 04:38.

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