I have a problem in one of my matlab code for Speed control of a DC motor using fuzzy logic Controller.
Speed control of a DC motor using fuzzy logic Controller
MATLAB code ([login to view URL]) using Runge-Kutta 4th method for (Speed control of a DC motor using fuzzy logic Controller)
You have to write a code for the whole project, Simulink is already with me
This is the equation for motor
The Equations for dc motor are
fomega=@(t,omega,i)1/J*(K*i-b*omega-T) fi=@(t,omega,i)1/L*(V-i*R-K*omega)
@ is d/dt in MATLAB
Dc motor parameters are
Armature inductance La = 0.5 H
Armature resistance Ra = 1Ω
Armature voltage Va = 200 V
Mechanical inertia J= 0.01 [login to view URL]
Friction coefficient B = 0.1 N-m/rad/sec
Back (emf) constant Kb = 0.01 V/rad/sec
Motor torque constant Kt= 0.01N.m/A
Deadline for this project is 24 hours and budget is 20-25 AUD