Go to Post Learn the ideas, look up the formulas. The other way round will drive you mad - Joe Johnson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 25-07-2011, 17:49
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
desktop hardware to demo PID ?

I'd like to build a simple, preferrably desktop demo hardware platform that can be used to demonstrate the usage of the wiplib pid related classes and to clearly show students the effect of adjusting tuning constants etc

- one implementation could be a linear demo that could be mounted horizontally and vertically (vertically to demo the effect of gravity)
(car on a rail, motor, geared chain drive, encoder, emergency end limit switches, possibly a geared 10 turn pot as an alternative to encoder)

- not quite sure how to demo rotational PID

Anyone have any suggestions, seen anything applicable anywhere ?
  #2   Spotlight this post!  
Unread 25-07-2011, 18:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: desktop hardware to demo PID ?

I've found it pretty easy to use a rotational mechanism to demonstrate PID tuning.

Just add a weighted moment arm and have them stop on a dime-a marked target. You can exchange lighter/heavier weights or slide a weight out further along an arm you're rotating in a circle. You can also shift it from horizontal to vertical to add the experience of the deceleration of gravity on the up swing and the acceleration on the down swing. I just use a 10-turn pot and a slip coupler so overshoots (and you should allow overshoots) don't damage it. Rotational is nice when the pot does slip, because there isn't a chance of mechanical damage. You can substitute an absolute encoder for the pot or use a continuous pot too.

The method applies to moving an arm joint both with and without holding the extra weight of a game piece, or the motion of a turret.

Switching the pot out for a relative encoder lets you practice PID position control and speed control.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 26-07-2011 at 10:28.
  #3   Spotlight this post!  
Unread 26-07-2011, 12:14
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
Re: desktop hardware to demo PID ?

Thanks for the great ideas.
  #4   Spotlight this post!  
Unread 26-07-2011, 14:04
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: desktop hardware to demo PID ?

For rotational, my favorite demo is the inverted pendulum. Nothing cooler than getting a stick to automatically balance.
__________________
-
An ounce of perception is worth a pound of obscure.
Closed Thread


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 18:48.

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