Go to Post The problem with anecdotal evidence is that you never seem to get the whole anecdote. - Lea DeFoote [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

 
 
 
Thread Tools Rating: Thread Rating: 31 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 13-10-2014, 19:34
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
PID Loop Simulator/Teaching Tool

I've made a simple PID simulator to help teach and explain how PID loops, and how to properly tune the gains for different systems. It is a nice way to introduce PID loops to newer programmers. The model behaves surprisingly realistically, and the output vs. time graphs look almost identical to graphs from robots.

The program simulates a CIM motor driving a 1 meter long arm with a 150:1 reduction. The mass on the end of the arm can be adjusted, and gravity can be toggled on and off, so you could simulate something not affected by gravity, like a turret. The simulation takes into account an accurate motor curve (where motor torque is a function of motor speed and applied voltage), and the angular momentum of the arm.

You can download the simulator from here:
https://drive.google.com/file/d/0Bzf...ew?usp=sharing

Or look at the source code here:
https://github.com/dicarlo236/PID-De...rc/controldemo

Reply With Quote
 


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 23:13.

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