View unanswered posts | View active topics It is currently Tue Oct 21, 2014 3:45 am






Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Lego motors 
Author Message
Rookie
User avatar

Joined: Sat Feb 14, 2009 5:59 pm
Posts: 22
Post Re: Lego motors
what exactly does the PIDcontrol do anyways?

_________________
Lead Programmer for Team COV-0651.


Mon Feb 16, 2009 7:29 pm
Profile
Novice

Joined: Thu Oct 09, 2008 7:58 pm
Posts: 79
Post Re: Lego motors
Google is your friend. :D.

In short, when you set your motor to 50, the program is sending 50% power, but the motor might no be running at that power level, for instance friction and other factors are involved, so PID accounts for the difference and adds/subtracts this to the value.

Stands for Proportional Integral Derivative.


Mon Feb 16, 2009 8:36 pm
Profile
Novice

Joined: Tue Jan 13, 2009 5:22 pm
Posts: 72
Location: USA, Pennsylvania
Post Re: Lego motors
The PID is controlling the speed of the motors.
Uses the encoder to find the actual speed.

Without PID:
Your wanted speed = 40
The power motor receives = 40

With PID:
Your wanted speed = 40
The power the motor receives = 40
The measured speed = 25
Calculated difference = -15
PID extra power = 15
The power the motor receives after PID difference= 55
The measured speed = 35
Calculated difference from wanted speed = -5
PID extra power = 5
The power the motor receives after PID difference= 60
The measured speed = 41
Calculated difference from wanted speed = 1
PID extra power = -1
The power the motor receives after PID difference= 59

Continues forever

_________________
We need a Linux Version!


Mon Feb 16, 2009 8:59 pm
Profile WWW
Rookie
User avatar

Joined: Sat Feb 14, 2009 5:59 pm
Posts: 22
Post Re: Lego motors
so is enabling PID control useful or not? I figured it was messing with our motors since the beginning so I turned it off.

_________________
Lead Programmer for Team COV-0651.


Fri Feb 27, 2009 9:08 pm
Profile
Novice

Joined: Mon Oct 13, 2008 6:29 pm
Posts: 75
Location: Florida, USA
Post Re: Lego motors
it is useful in autonomous only if u have encoders but bad for tele op, it gives tele op a jerky feel.

_________________
PHUHS Robotics
Team 516 FTW

Daytona Robofest Winning Alliance Captain
Daytona Robofest Inspire Award


Fri Feb 27, 2009 10:53 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.