Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build DC motor models using Dyad standard library components in this comprehensive tutorial that covers model creation, testing, and control system implementation. Start by setting up the Dyad environment and adding standard libraries, then progress through creating a complete DC motor model using electrical components like resistance, inductance, voltage sources, and ground connections alongside rotational elements including EMF, friction, and mechanical shaft connections. Build test models to validate your motor behavior with constant voltage inputs and run simulations to observe motor acceleration to steady-state with friction effects. Explore advanced plotting techniques to visualize simulation results in Julia, then enhance your model by integrating PID controllers for precise speed control. Master parameter tuning techniques through manual adjustment and discover the benefits of automatic PID tuning for optimal controller performance. Compare different control strategies by analyzing motor speed drop and current increase under load conditions, and evaluate controller performance with various gain settings. Develop essential skills in Dyad model composition and syntax, multi-domain modeling that combines electrical and mechanical systems, control system integration, parameter optimization, and Julia-based simulation and visualization techniques that demonstrate the power of component-based modeling for complex electromechanical systems.
Syllabus
00:00 - Introduction and setup
00:55 - Adding standard libraries
01:29 - Creating DC motor model
03:00 - Building test model
04:34 - Running simulations
05:35 - Advanced plotting
06:14 - Adding PID control
08:13 - Parameter tuning
10:50 - Automatic PID tuning
13:02 - Final results comparison
13:44 - Summary and recap
Taught by
JuliaHub