Skip to content

Tutorial on using Simscape Multibody to model and control a pendulum

License

Notifications You must be signed in to change notification settings

icub-tech-iit/training-simscape-pendulum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👨‍🔬 Modeling a motor-controlled pendulum in Simscape

This tutorial builds on the concepts laid out in the following instructional repository: icub-tech-iit/training-matlab-pendulum . In there, the pendulum is modelled and controlled by first writing down the governing equations, then by moving to the Simscape Multibody environment.

Here we enter in the multidomain field: we make the model more realistic by adding a DC motor and modeling the encoder noise characteristics.

📋 Prerequisites

Required applications:

  • Matlab
  • Simulink

Required toolboxes:

  • Control System Toolbox
  • Simscape (all domains)
  • Simscape multibody

Tutorials:

🔢 Basic Steps

  1. Approach the multidomain world by adding a voltage-controlled DC motor and a gearbox to control the pendulum.
  2. Digitize the controller, then add noise and quantization to the feedback to simulate encoder behavior.

With MATLAB you can design, simulate, and implement controllers for more complicated systems such as an inverted pendulum.