VLabs logo

Virtual Labs
IIT Kharagpur

IIT KGP Logo

State Observer and Controller Design for an Inverted Pendulum on a Cart




Steps to perform the simulation

  1. Enter the parameter values of the Inverted Pendulum on cart.


  2. Fig. 1. Parameter values of the Inverted pendulum on cart

  3. Click on 'State Space Model' button to get the state space form of the system.


  4. Fig. 2. Button to get the state Space form of the system

  5. Click on ' Enter the Pole Location' button to enter the desired pole values.


  6. Fig. 3. Button to enter the desired pole values

  7. Enter the desired pole values.


  8. Fig. 4. The desired pole values

  9. Click on 'Design' dropdown button and select the desired option for calculating the design.


  10. Fig. 5. Dropdown button for selecting the required design option

  11. Click on the 'Run' button to run the selected design.


  12. Fig. 6. Run button to calculate the selected design

  13. Click on the 'Rank' or 'Determinant' or "Inference' buttons to get the the Controllability test information and state feedback gain values.


  14. Fig. 7. Rank, Determinant and Inference of the Controllability test

  15. Enter the required values and click on the 'Closed Loop Response' button to generate the plot.


  16. Fig. 8. Closed Loop Response button to get the plot

  17. Note for State Feedback: Enter the initial position value between -10 m to +10 m and enter the initial angle value between -6 ° to +6 ° (as per the practical experiment point of view). Click on the "Closed Loop Response" button.

  18. Click on the 'Rank' or 'Determinant' or "Inference' buttons to get the the Observability test information and observer gain values.


  19. Fig. 9. Rank, Determinant and Inference of the Observability test

  20. Enter the required values and click on the 'State Estimation Response' button to generate the response plot.


  21. Fig. 10. State Estimation Response button to get the plot

  22. Note for Observer: Enter the initial position value between -10 m to +10 m (as per the practical experiment point of view). Click on the "State Estimation Response" button.

  23. Click on 'Download' button to download the plot.

  24. Click on 'Clear' button to enter the new parameter values of the system.