Browse Search Popular Register Upload Rules User list Login:
Search:
PID Controller

Image:
screenshot of the scene

Author: homieeee

Group: Default

Filesize: 153.38 kB

Date added: 2022-03-06

Rating: 6.5

Downloads: 1975

Views: 385

Comments: 10

Ratings: 4

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

PID stand for Proportional, Integral, Derivative. This is a mathematical way to control something physical. Some examples include: maintaining a drones altitude, the cruise control on your car, thermostats, and much more!

In this scene you have the controls to what I basically consider a 1 dimensional drone. By changing the gain and max values you can change the way the drone reaches its target. What really interested me initially was the fact that the thruster has no idea how much the drone weighs, but with this control method it is able to hover.

I highly recommend watching this YouTube video to get a better understanding of how this all works.

https://www.youtube.com/watch?v=wkfEZmsQqiA

https://en.wikipedia.org/wiki/PID_controller

For any issues or questions please let me know:tup:
Last edited at 2022/03/07 00:28:28 by homieeee
Please log in to rate this scene
edit
Similar scenes
Title: rc controller
Rating: 5
Filesize: 81.05 kB
Downloads: 470
Comments: 1
Ratings: 1
Date added: 2008/09/25 03:55:32
Made with: Phun
Rating: rated 5
download
Title: Controller Ball Level 21 Entry
Rating: 5
Filesize: 10.06 kB
Downloads: 499
Comments: 0
Ratings: 1
Date added: 2013/05/18 16:04:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: PS4 Controller Smashable
Rating: 6.1111
Filesize: 349.13 kB
Downloads: 17577
Comments: 6
Ratings: 3
Date added: 2013/08/13 20:28:32
Made with: Phun
Rating: rated 6.1
download
Title: Controller Ball Levels 51 - 60 READ DESC
Rating: 5
Filesize: 377.96 kB
Downloads: 1213
Comments: 0
Ratings: 1
Date added: 2013/07/20 21:40:16
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
download
Title: Directional Controller, Level 1
Rating: 5
Filesize: 0.52 MB
Downloads: 675
Comments: 0
Ratings: 1
Date added: 2011/04/07 18:14:50
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Artificial life IV: Battle to the Death!
Rating: 5
Filesize: 20.64 kB
Downloads: 640
Comments: 2
Ratings: 1
Date added: 2018/11/08 20:42:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
WOW! This is an excellent demonstration of PID control! I had fun changing the gains and watching how the adjustments affect how the little rocket behaves, and how quickly it moves to a different level with minimum overshoot.

I have one suggestion: I noticed when clicking on any of the controls it required two clicks. That issue can be fixed by placing the following script into the "upDate" text box of any object in the scene:

app.gui.playMode = sim.running

Of course you need to add that script between the curly brackets that's already there. What that does is to place the scene into "Play Mode" when the scene is running, and "edit mode" when the scene is paused. I think you will like it!
Thank you Xray! Scene is now updated. Good idea.
Great
I have a question, how can you add a color palette window that edits the color of an object with scripting, not clicks?
42flowermaster, I'm not sure what you mean. There are a lot of ways to change the color of an object with scripts.
homieeee - When you change the color of an object manually, you right click and then select "Appearance." Then, it will open a window that allows the user to change the color of the object. I want to do the same (open that window), but with scripts, not clicks.
Scene.addWidget {
widgetID := "ColorOptions";
entityIDs := [36];
title := "Box";
minimized := false;
pos := [760.00000, 98.000000];
size := [266.00000, 622.00000];
visible := true;
snappedParentMin := [false, false];
snappedParentMax := [false, false]
}

Note: The etityIDs property above must be set to the entity of interest.
Last edited at 2022/03/07 21:55:07 by s_noonan
OK. This scene is awesome. It must have taken quite a while to build (~ 6 years?).
Hahaha s_noonan yes took YEARS of work. I can't believe it has been that long...
s_noonan - THANK YOU!!!!! I've been waiting for the script for a long time now I can continue with the secret project {:D}