Go to Post People are human, refs are human. The refs did the best they could do at the time. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2012, 02:35
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Using two Jaguars with one encoder

Is it possible to use two Jaguars to control one motor each where both motors are coupled to the same shaft and both Jaguars are controlled using the CAN interface and use feedback from the same encoder? Would we may a Y-cable and connect the encoder outputs to both Jaguars?

Thanks.

Phil
  #2   Spotlight this post!  
Unread 19-02-2012, 02:42
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Using two Jaguars with one encoder

Our team is using a PID loop on the cRIO and C++, so we made a class for the output of the PIDController that just contains two Jaguars and sets them both to the same power. Our class just implements the PIDOutput and the SpeedController classes.

Splitting the encoder's gnd and signal pins to both jaguars may work as well, although I'd be worried about the loops running at slightly different rates or something and then somehow getting off and ruining the motors and/or shafts. If you decide to do this, make sure you don't connect the power for the encoder to each jaguar, just connect it to one. The gnd and the two signals should go to both though.
  #3   Spotlight this post!  
Unread 19-02-2012, 03:42
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
Re: Using two Jaguars with one encoder

Although we are not driving the same shaft, our shooter design is a two-wheel shooter and we are using CAN and one jaguar's PID to control the speed of both wheels (motors) using the following method:

1) Set up the "speed" jaguar to speed mode and enable it.
2) Plug encoder into the "speed" jaguar.
3) Set up the other jaguar to be in voltage mode.
4) Set other jaguar to be set to the "opposite" (i.e. put a negative sign) of the output voltage of the "speed" jaguar
(-jag.getOutputVoltage()).
5) Complete the PID settings for that jaguar/motor.

Of course, I don't know how well this will work for you since your motors are connected to same shaft and you would have to use only one motor to set PID, but it definitely works for our shooter (still need to fine tune PID if possible--but that's another thread).
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb

Last edited by Stimpy1901 : 19-02-2012 at 03:45. Reason: added "opposite"
Closed Thread


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:39.

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