Skip to content

Instantly share code, notes, and snippets.

View ven-k's full-sized avatar
🎯
Focusing

Venkateshprasad ven-k

🎯
Focusing
View GitHub Profile
@ven-k
ven-k / dc_motor.jl
Created July 27, 2023 15:51
DC Motor with SpeedSensor
using ModelingToolkitStandardLibrary.Electrical
using ModelingToolkitStandardLibrary.Mechanical.Rotational
using ModelingToolkitStandardLibrary.Blocks
using ModelingToolkit, OrdinaryDiffEq
using Plots
@mtkmodel DC_Motor begin
@components begin
voltage_step = Step(height = 10, start_time = 0)