Be the first to rate this file! 30 Downloads (last 30 days) File Size: 520.78 KB File ID: #33942
image thumbnail

PI-controller for inverted pendulum

by Maxim Vedenyov

 

26 Nov 2011

animated, with derivation in jpg-image

| Watch this File

File Information
Description

http://simulations.narod.ru/
It is inverted pendulum. Down point is base can be controlled. It can be moved horizontally only. PI (not PID) controller used to set the pendulum in up direction. There are friction in base and frictiopn from air simulated. Random kick is applied periodically. The PI-controller for base velocityt is
dx/dt=p*phi+(q-g)*integral(phi*dt)
where phi is angle counted from vertical position. There was found theoretically that optimal p and q is defined by equation: p^2/R=-q, p<0,q<0. R is pendulum length.

See formula.jpg for derivation of equation of motion.

See formulas2_pd.jpg for derivation optimal gains. In this formulas phi=theta-pi is angle counted from vertical position. The PI-contoller:
d2x/dt2=p*dtheta/dt+(q-g)*(theta-pi)

See animation here:
http://www.youtube.com/watch?v=_2g8bzSk18I

Required Products MATLAB
MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
pi Maxim Vedenyov 27 Nov 2011 13:38:28
pid Maxim Vedenyov 27 Nov 2011 13:38:28
controller Maxim Vedenyov 27 Nov 2011 13:38:28
inverted pendulum Maxim Vedenyov 27 Nov 2011 13:38:28
simulation Maxim Vedenyov 27 Nov 2011 13:38:28

Contact us at files@mathworks.com