|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |