Professional Documents
Culture Documents
for 2.017/2.019
• Resistor R: V = IR,
– Dissipation: Resistive Power P = I2R = V2/R Ohms, :
– Analogy: viscous losses in pipe flow
• Capacitor C: i = C dV/dt farads, f
– Analogy: a hydraulic accumulator
• Inductor H: V = L di/dt henries, h
– Analogy: inertia of water in a pipe
Vinv = Vnon-inv
R2
(V-Vinv)/R1 = (Vinv-Vout)/R2 and
Vinv = Vnon-inv Æ
R1 V+
V Vout VR2 = Vinv(R1+R2) – VoutR1 Æ
Vinv
Vnon-inv Vout = Vnon-inv (R1 + R2)/R1 – VR2/R1
Vout = 2Vnon-inv – V
Voltage bias useful for bringing
signal levels into the range of The circuit inverts the input V and
sensors. adds on 2Vnon-inv
The op-amp is discussed in detail
IF Vnon_inv is ground, then
by Horowitz and Hill, covering
Vout is just –V. This is just an
integrators, filters, etc.
inverting amplifier.
leading edge
normally high 5V
Start bit
Stop bit
1 0 0 0 0 1 1 0
GND
$GPRMC,hhmmss,V,
ddmm.mmmm,N,dddmm.mmmm,E,
000.0,000.0,ddmmyy,000.0,E,N,*XX<CR><LF>
#define TSBUFSIZ 128 // buffer size for TPU serial channel, a factor of 2!
……
void main( ) {
int i ;
char c[TSBUFSIZ] ;
……
for (i=0;i<TSBUFSIZ;i++) // get the chars from buffer as fast as you can!
c[i] = TSerGetByte(SERCHAN) ;
printf("\n") ;
port loads incoming data, or
}
accumulates outgoing data.
Serial devices communicate using characters encoded into bits. This includes
upper- and lowercase letters, carriage returns and linefeeds, punctuation, etc.
Characters are not numbers! E.g.,
char c = ‘7’ ;
char d[2] = ‘92’ ;
int n ;
The numerical value of c is [0110111] (binary) or 55 (decimal).
n = c – ‘0’ ;
assigns to n the actual number 7. The ASCII character that goes with 7 is
known as BEL – on many machines this will ring a bell if it is sent to the screen
as a character! – printf(“%c”,n) ;
• A Regular Waveform
Volts Vpeak
drain _ drain _
+ +
Load Load
gate gate
N-channel P-channel
_ Supply Supply _
source + source +
MOSFET turns on when Vgate > Vsource MOSFET turns on when Vgate < Vsource
g A B g
P1 P2
d d To make flow UR to LL,
load Set B = GND and C = Vs
d d
g g
N1 N2
C D Connect A and B to Vs with pull-up resistors;
s s
Connect C and D to GND with pull-down resistors;
Control all four gates explicitly
Vector relations:
Torque W ÍÎ (coils)(flux density)(current i), force = current x flux
or, in a given motor, field = velocity x flux
W = kt * i where kt is the torque constant
i
But the motion of the coils also induces a
• No-load speed:
W = 0 Æ i = 0 Æ Z = V / kt
• Zero-speed torque (BURNS UP MOTOR IF SUSTAINED):
Z = 0 Æ eb = 0 Æ i = V / R Æ W= kt V / R
• Power output:
Pout = WZ = i eb Æ Pout = i ( V – Ri )
• Efficiency:
K= Pout / Pin = WZ/ i V Æ K=1-iR/V
A 5V
B 5V
Motors
Switched coils at
fixed positions on
DC Voltage
permanent
Rotor with
magnets at fixed
SN S permanent N S
positions on the
magnets
rotor.
Smooth variation
of switching leads
to half-stepping
Stator
and micro-
stepping
OFF
Encoder still
ON
recommended!
DC Voltage