## Lab1: DC Motor Control - Part 1

### MATLAB Simulink LAB 1 file

Matlab v2018a or above is required to run this file. Click the link below to download the file.

#### Note - ملاحظة :

1. 1. عند تنزيل الملف تاكد من ان يكون اسم الملف خالي من الفراغات و الاقواس وعلامة الناقص
2. 2. احفظ الفايل في ملف جديد ويكون اسم الملف خالي من الفراغات و علامة الناقص
3. 3. "LAB1_HANDOUT_FILE_001v2.slx" تاكد من ان اسم الملف
4. 4. تاكد من ان اسم الملف الكامل لا يحتوي على فراغات او اقواس او علامة الناقص

1. Run the simulation for a simulation time of 2 seconds with a constant DC voltage of 1V and no load torque.
2. Assuming constant flux, when steady-state is reached, calculate motor parameters Ra, K PHI, and no load armature current.
3. Record and plot Ia (A), speed (RPM), T (N.m), Load torque (N.m), and back EMF (V).
4. Explain via plots and equations the behaviours of Ia, speed, motor torque and back EMF at the starting.

1. Run the simulation again for a simulation time of 2 seconds with a constant DC voltage of 1V and load torque of 8 N.m.
2. Record in a table measurements of maximum Ia, maximum T, maximum speed, and maximum E.
3. Calculate motor parameters Ra, K PHI, and no load armature current. Verify your findings with step 1.
4. Record and plot Ia (A), speed (RPM), T (N.m), Load torque (N.m), and back EMF (V).
5. Explain via commenting in the report on plots and equations the behaviours of Ia, speed, motor torque and back EMF.

### Step 3: Variable DC voltage supply

1. Run the simulation for a simulation time of 400 seconds.
2. Remove the constant voltage supply block Vdc1 and connect the variable voltage supply Vdc2 and right click to uncomment.
3. Record in a table measurements of maximum Ia, maximum T, maximum speed, and maximum E for every Vdc2 level.
4. Create a table with the calculated motor parameters Ra, K PHI, and no load armature current for each Vdc2 level and Verify your findings with step 1 and 2.
5. Record and plot Vdc2 (V), Ia (A), speed (RPM), T (N.m), Load torque (N.m), and back EMF (V).

### Step 4: Rate limitter

1. Run the simulation for a simulation time of 400 seconds.
2. Connect and the rate limiter block between Vdc2 and the motor. Right click the block and uncomment to activate it.
3. Record and plot Vdc (V), Ia (A), speed (RPM), T (N.m), Load torque (N.m), and back EMF (V).
4. Explain via commenting in the report on plots and figures the behaviours of Ia, speed, motor torque and back EMF during Vdc2 change and during steady state.

### Step 5: Variable load torque

1. Run the simulation for a simulation time of 400 seconds.
2. Remove TL1 and connect TL2. Right click TL2 and uncomment.
3. Record and plot Vdc (V), Ia (A), speed (RPM), T (N.m), Load torque (N.m), and back EMF (V).
4. Explain via commenting in the report on plots and figures the behaviours of Ia, speed, motor torque and back EMF during Vdc2 change and during steady state. Especially during motor speed changes.

### Step 6: Constant speed operation

1. Run the simulation for a simulation time of 400 seconds.
2. When the motor speed reaches approximately 1800 RPM, adjust Vdc2 so that the motor maintains constant speed operation even during torque load changes.
3. Record and plot Vdc (V), Ia (A), speed (RPM), T (N.m), Load torque (N.m), and back EMF (V).
4. Explain via commenting in the report on plots and figures the behaviours of Ia, speed, motor torque and back EMF during Vdc2 change and during steady state. Especially during constant speed operation.

### Step 7: Conclusion

Write, in your own words (arabic or english) about the experience and challenges during this lab experiment. Highlight the strog concepts aquired and mention any weaknesses. Suggest any improvement.