Back to Browse

Dyad Tutorial: Creating Models with Standard Library Components

310 views
Premiered Sep 15, 2025
14:19

Learn how to build DC motor models using Dyad standard library components, test them with voltage inputs, and implement PID controllers with automatic tuning. ## 📚 What You'll Learn - Create DC motor models using Dyad standard library components - Test models with constant voltage inputs - Add PID controllers for speed control - Automatically tune controller parameters - Visualize simulation results in Julia ## ⏰ Timestamps 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 ## 🔗 Resources - **Dyad Documentation**: [https://docs.dyadlang.org](https://docs.dyadlang.org) ## 🔧 Key Components Used - **Electrical**: Resistance, inductance, voltage source, ground - **Rotational**: EMF, friction, mechanical shaft connections - **Control**: PID controller, speed sensor - **Analysis**: Transient analysis, PID auto-tuning ## 📊 Results Demonstrated - Motor acceleration to steady-state with friction - Speed drop and current increase under load - Controller performance comparison (different gains) - Automatic parameter optimization benefits ## 🎯 Skills Developed - Dyad model composition and syntax - Multi-domain modeling (electrical + mechanical) - Control system integration - Parameter tuning and optimization - Julia-based simulation and visualization --- *This tutorial demonstrates the power of Dyad's component-based modeling approach for creating complex electromechanical systems with integrated control.*

Download

1 formats

Video Formats

360pmp418.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Dyad Tutorial: Creating Models with Standard Library Components | NatokHD