Go to Post Every game design should be a means to an end. - Mark McLeod [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 07-02-2011, 02:16
Hellfeier675's Avatar
Hellfeier675 Hellfeier675 is offline
Registered User
FRC #0675 (Tech High Robotics Syndicate)
Team Role: Mechanical
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Rohnert Park CA
Posts: 45
Hellfeier675 is an unknown quantity at this point
Re: Speed Controller

I can't program but I do know that you have to use a speed controller to control any CIM's and / or Fisher Price Motors on your robot this year.
__________________
-"Guys it's so inconvenient, Delphi is down at 3 am.... Hey I was bored last night!"
  #2   Spotlight this post!  
Unread 07-02-2011, 02:19
kgzak's Avatar
kgzak kgzak is offline
Registered User
AKA: Kris
FRC #4392 (Decievers) FRC #2075 (Enigma)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Grand Rapids, Michigan
Posts: 418
kgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to behold
Re: Speed Controller

Quote:
Originally Posted by Hellfeier675 View Post
I can't program but I do know that you have to use a speed controller to control any CIM's and / or Fisher Price Motors on your robot this year.
I meant like accurately controlling speed with Encoders and software. In other words using a closed loop speed controller. Sorry for the confusion.
  #3   Spotlight this post!  
Unread 07-02-2011, 02:20
John G John G is offline
Registered User
FRC #0399 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Lancaster, CA
Posts: 72
John G is on a distinguished road
Re: Speed Controller

As far as I am concerned, you HAVE to use a speed controller on each of your motors like Hellfeier675 said. With that being said, we are using Jaguars and the CANBus system. You can also use PWMs to the Jaguars or Victors to controller the motors.
  #4   Spotlight this post!  
Unread 07-02-2011, 02:21
Hellfeier675's Avatar
Hellfeier675 Hellfeier675 is offline
Registered User
FRC #0675 (Tech High Robotics Syndicate)
Team Role: Mechanical
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Rohnert Park CA
Posts: 45
Hellfeier675 is an unknown quantity at this point
Re: Speed Controller

Gotcha, sorry. Our programmers have been working with the encoders for a while now and it took them some time to get it to stop tweaking on them. I'll talk to them and see what they have in terms of helpful information!
__________________
-"Guys it's so inconvenient, Delphi is down at 3 am.... Hey I was bored last night!"
  #5   Spotlight this post!  
Unread 07-02-2011, 03:10
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: Speed Controller

What you're thinking of is called PID - proportion, integral, derivative. It's not too hard to use - you (essentially) give it an encoder (where you are) and the desired position (where you want to be) and that calculates an error. The PID controller's purpose is to try to get that error to zero as fast as possible. You also have to put in some tuning parameters, which is just trial and error. Look it up on wikipedia, it's good information.
  #6   Spotlight this post!  
Unread 07-02-2011, 03:39
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Speed Controller

Quote:
Originally Posted by WizenedEE View Post
What you're thinking of is called PID
Quote:
Originally Posted by kgzak View Post
In other words using a closed loop speed controller.
Closed loop, or feedback, control system is the right term. Proportional, integral, and derivative refer to types of error signals that can be calculated from a feedback signal. A PID controller is one type of closed-loop controller, albeit the most used, but there are other types.

---------------------

To respond to the original question, 1708 is using a feedback control system for our autonomous; of course, the bang-bang controller that we're using is not the most elegant, but it's what we can do with digital line sensors. No controllers for any manipulators or anything, though. If we were using an arm, though, we'd definitely create one.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor

Last edited by RyanCahoon : 07-02-2011 at 03:42.
  #7   Spotlight this post!  
Unread 07-02-2011, 06:41
Jogo Jogo is offline
Registered User
FRC #0353 (Pobots)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2007
Location: NY
Posts: 83
Jogo is on a distinguished road
Re: Speed Controller

Closed-loop velocity control (with PID) is a bit more complicated. For example, if you tune the loops on a cart, it doesn't mean the robot will be tuned on the floor under weight. Additionally, the coefficients represent different things because velocity is already a derivative. Check out this thread:

http://www.chiefdelphi.com/forums/sh...ad.php?t=62888
  #8   Spotlight this post!  
Unread 07-02-2011, 08:09
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Speed Controller

What do we use?

Drivetrain: We have integrated P control (implemented like I) for drive velocity. We have some special handling for special cases, to fix annoyances in the 20% of situations where the I controller works worse than a human.

Camera: We have a P controller to position.

Mechanisms: We run a P position controller for our motors, and also have a basic on/off controller for window motor mechanisms on Spikes. Depending on how it handles, we might implement D and/or a gain scheduler.

Autonomous: We run a P controller to distance (on each side) or a P controller to heading, depending on autonomous command. The output of either is fed to the P velocity controller above. We do not use the line sensors at all.

Tuning: We determined the highest speed of the slowest side on the ground in both directions in each gear (a total of 4 tuning constants), since the slower side determines the maximum top speed. We have separate sets of gains for each gear, and there are 3 tuning constants (used by the gain scheduler).

Actually, we have 11 motors on our robot. 10 of them have some sort of feedback control on them (velocity or position), and the last has a state-machine controller but no velocity or position control. We like easy, automated control.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
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 03:40.

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