View unanswered posts | View active topics It is currently Sat Dec 15, 2018 3:32 am

 Page 2 of 2 [ 20 posts ] Go to page Previous  1, 2
 Print view Previous topic | Next topic
Lego motors
Author Message
Rookie

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

_________________

Mon Feb 16, 2009 7:29 pm
Novice

Joined: Thu Oct 09, 2008 7:58 pm
Posts: 79
Re: Lego motors

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
Novice

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

Without PID:
The power motor receives = 40

With PID:
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
Rookie

Joined: Sat Feb 14, 2009 5:59 pm
Posts: 22
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.

_________________

Fri Feb 27, 2009 9:08 pm
Novice

Joined: Mon Oct 13, 2008 6:29 pm
Posts: 75
Location: Florida, USA
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
Display posts from previous:  Sort by
 Page 2 of 2 [ 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 forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning