ELG 4154
QUIZ 3 2007
Raihan Khondker
Solution:
a) Duty cycle=
0.015
0.02 100%=75%
b) 10V0.75= 7.5V Back EMF
c) We know (now) that LT=LM+La
Vref
(T-T0)T0 ia where T= Total Period and T0= High time/Off period
ELG 4154
QUIZ 3 2007
10 (0.015)(0.0005) 0.1A
LT

Length of Examination: 1 hour and 30 min
Professor: Wail Gueaieb
February 25, 2008, 13:00
Q.1 a) Calculate a possible combination of prescaler and an initial value of timer 0 of PIC16F917 so that
the time it takes to overflow from 0xFF to 0x00 is as close

UNIVERSIT DOTTAWA UNIVERSITY OF OTTAWA
Faculty of Engineering
School of Information Technology and Engineering
Laboratory 2:
Analog to Digital Conversion
Using the PIC16F917
ELG 4154
Integrated Control Systems
Prof. Wail Gueaieb
Mohammad El-Kadri
Md. Suru

ELG 4154
Raihan Khondker
Lecture on March 31, 2008
Effect of disturbance/ load (Td=TL+-)
To assess the sensitivity of the servo system to disturbance, let us assume that Td(s) is the only
active input signal (d(t)=0).
This leads to a Transfer function:
()

ELG 4154
Lecture on March 14, 2008
Example1: A motor has a no-load speed of 1150 rpm. When the maximum for a certain
application applied to the motor, the speed drops to 1000 rpm. Find the speed regulation for
this application.
Solution: This is just the

Raihan Khondker
ELG4154 Lecture April 11, 2008
Final Exam Announcements:
There will be two types of questions. Regular questions like midterm: But these long ones will be after the
midterm. Short answer questions (from everything from the course). Please

ELG 4154
Raihan Khondker
Lecture on April 04, 2008
4.2 Strain Gages
R=
l
A
Taking the log of both sides:
Log (R)=log()+log(
l
A
Differentiating both ends leads to
1
R
dR=
1
d+
1
l
( )
A
d
l
A
It follows that their change in resistance comes from the chang

ELG 4154
Raihan Khondker
Lecture on March 31, 2008
Effect of disturbance/ load (Td=TL+-)
To assess the sensitivity of the servo system to disturbance, let us assume that Td(s) is the only
active input signal (d(t)=0).
This leads to a Transfer function:
T(

ELG 4154
DGD on March 17, 2008
Capture/Compare/PWM module (CCP modules)
Two modules
1. CCP1 module
2. CCP2 module
But in general The (CCP) module is software programmable to operate n one of three modes:
1. A Capture input
2. A Compare output
3. A Pulse W

ELG 4154
Part II
Lecture on April 04, 2008
4.2 Strain Gages
R=
l
A
Taking the log of both sides:
Log (R)=log()+log(
l
A
Differentiating both ends leads to
1
R
dR=
1
d+
1
l
( )
A
d
l
A
It follows that their change in resistance comes from the change resist

; Write an assembly subroutine that takes two unsigned 10-bit binary numbers A and B,
; subtracts them (A minus B), and stores the result as a signed 10-bit digital value. Assume
; that A and B are stored in Bank 0 at locations (0x51-0x50) and (0x53-0x52)

Raihan Khondker
ELG 4154
Lecture on March 28, 2008
The electric equation of a PM motor is:
V a= R a ia+ L a
d ia
dt
+ Vb
This equation in Laplace Domain would look like:
Va(s) = Ra ia(s) + LsIa(s)= (Ra + Ls)Ia(s)
The mechanical equation is:
d m
dt
Torque

Length of Examination: 1 hour and 30 min
2008, 13:00
Professor: Wail Gueaieb
February 25,
Q.1 a) Calculate a possible combination of prescaler and an initial value of timer 0 of PIC16F917 so that
the time it takes to overflow from 0xFF to 0x00 is as close

ELG 4154
Quiz 2, 2008
QUIZ 2 Solutions
Problem: A permanent magnet DC motor with operating voltage 4-12V. Assume g=10N/kg.
a) Calculate the motors stall torque and no load speed at an input voltage of 10V. On Figure1,
draw the motors speed vs. Motor torqu

ELG 4154
Lecture on March 07, 2008
Example1: Suppose that the rotor is composed of 3 coils, 60 degrees apart, denoted by coil 1, 2, 3.
(figure 5(b) shows the torque profile of each motor torque profile (the sum of the algebraic value of coil
torques). The

PRE-LAB PART-II
Jason LeValley
Raihan Khondker
Garrett Hamilton-Smith
; Write an assembly subroutine that takes two unsigned 10-bit binary numbers A and B,
; subtracts them (A minus B), and stores the result as a signed 10-bit digital value. Assume
; that

ELG 4154
Lecture on March 28, 2008
The electric equation of a PM motor is:
Va= Ra ia+ La
This equation in Laplace Domain would look like:
+ Vb
Va(s) = Ra ia(s) + LsIa(s)= (Ra + Ls)Ia(s)
The mechanical equation is:
Torque = J
= T M TL TF
This equation in