Go to Post Failure is in my eyes, the key to success. If you can deal with failure, look it in the eye, and conquer it, the hard stuff won't really intimidate you any more...and you can only get better. - Andy Grady [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 07-05-2005, 21:56
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Concept of PID explained

I've never done a PID system, but from what I understand all it does is: The closer you are to the point you want to be, the speed slows proportionately. If I'm not mistaken, you can do the same with a y=mx+b kind of formula. I've e been tinkering with this idea lately, and figured it would be a good alternative to a complex PID system. Where
y is the speed it's going to be set to
m is 127 divided by the distance you are starting at
x is the current distance away
b is 127

Speed = (127/StartingDistance)*Distance + 127

So say we want to travel until a pot reads 100, slowing down proportionally until we hit the destination (where it would set speed to 127)

Case
Pot is currently at 100, needs to go to 1
Current speed is 127
Speed = (127/100)*100+127

The speed decrease would proportionally go down, as shown by this chart.
(Note: This chart starts at 127, and goes up to 255. It's the first time I've used Excel to generate charts.)


The chart was generated using the attached data sheet (.xls format)

Good luck,
Mike
Attached Files
File Type: xls APID.xls (21.0 KB, 205 views)
__________________
http://www.mikesorrenti.com/
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PID cmd_drive can't drive straight? gnormhurst Programming 4 18-02-2005 01:54
Drive Straight C Code using Encoders without PID? Chris_Elston Programming 17 15-02-2005 23:41
All-Time PID Drive with Hall-effects: Coming along very nicely jdong Programming 6 05-02-2005 19:39
Whegs, PID, and climbing phrontist Technical Discussion 9 02-05-2004 00:21
PID control loops - closed loop feedback KenWittlief Technical Discussion 56 26-04-2004 21:27


All times are GMT -5. The time now is 01:46.

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