Go to Post Honestly, I'd volunteer my team to be on that alliance. It'd be an honor to touch bumpers with those bots. - ttldomination [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 18 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 20-06-2011, 01:33
ahwei ahwei is offline
Registered User
no team
 
Join Date: Jun 2011
Location: Singapore
Posts: 5
ahwei is an unknown quantity at this point
PID line follower vex

As im new in VEX...Can anybody tell me if i can implement PID control using easyc? Because it is the only software i got... If yes, can somebody send me the standard code for it...I need it for my project really much... I will appreciate some help expertsss....
Reply With Quote
  #2   Spotlight this post!  
Unread 20-06-2011, 08:03
svenw svenw is offline
Registered User
FRC #3683
Team Role: Engineer
 
Join Date: Mar 2009
Rookie Year: 2006
Location: Waterloo
Posts: 34
svenw is a jewel in the roughsvenw is a jewel in the roughsvenw is a jewel in the rough
Re: PID line follower vex

I recently found this as I was looking for how to do PID loops with lego. It explains how to make a PID controller and gives the pseudo code.
Hopefully you find it as helpful as I did.

http://www.inpharmix.com/jps/PID_Con...ms_Robots.html
Reply With Quote
  #3   Spotlight this post!  
Unread 20-06-2011, 10:58
gblake's Avatar
gblake gblake is offline
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,940
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: PID line follower vex

You can implement just about any sort of feedback loop in EasyC (PID is not the only form of feedback-loop control algorithm).

As the algorithm gets more complex, you will want to switch to EasyC Pro because the icons and flowcharts of ordinary EasyC become to bulky and hard to read/maintain.

Up until you stumble over some way to confuse the EasyC compiler. the only limits are the speed of the computer you are using, and its storage capacity. You are far more likely to have trouble with either of those before EasyC will fail you.

Go to the www.VexForum.com web pages and do a search there. There are discussions and sample code for implementing feedback loops to follow lines.

Blake
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2013, 17:26
Jacoblint228 Jacoblint228 is offline
Jacoblint228
FRC #0228 (Gus Robotics)
Team Role: Mechanical
 
Join Date: Jan 2013
Rookie Year: 2009
Location: United States
Posts: 3
Jacoblint228 is on a distinguished road
PID control for vex

Does anyone know where you can set a PID loop where the motor will not move unless the driver drives it?
__________________
Jacob Lint
Gus Robotics First Team 228
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2013, 17:48
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,393
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: PID line follower vex

Normally you have a motor that drives some device (like an arm). There is some sensor (like a potentiometer) that tells the position of the arm. The PID code drives the motor until the sensor says it's in position. Then it stops moving the arm.

Based on that, I'm not sure what you are looking for. Can you be more descriptive in what you want?
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2013, 20:32
Anupam Goli's Avatar
Anupam Goli Anupam Goli is offline
PCH Q&A co-founder/Scouting Mentor
AKA: noops
FRC #1648 (G3 Robotics)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Atlanta, Georgia
Posts: 1,242
Anupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond repute
Re: PID line follower vex

I think what Jacob is asking for is a method to have the PID not run if the joystick value is 0. If there is no tolerance, the PID loop will try to tune a value of 0 on the drivetrain, which does take unnecessary processor power. One thing I would do is set a limit, maybe + or - 0.1 on the joystick. Once this value is exceeded, then the PID loop could start running.
__________________
Team 1002: 2008-2012
Team 1648: 2012-2016
Georgia Tech Class of 2016
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 03:37.

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