electronics design laboratory lecture #5ecee.colorado.edu/ecen2270/lectures/lecture05.pdf ·...

14
Electronics Design Laboratory Lecture #5 ECEN 2270 1 Electronics Design Laboratory

Upload: others

Post on 23-Jan-2020

14 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Electronics Design LaboratoryLecture #5

ECEN 2270 1Electronics Design Laboratory

Page 2: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Notes• Attendance

– Attendance in the lectures and the lab is required to receive any lab credit

• Experiment 2 demo tomorrow in the lab; demo setup:– Supply the motor from +10V; separately supply encoder +5V. Supply your

speed sensor circuitry from +5V. Make sure the encoder and the sensor circuitry share the same ground.

– Show complete LTspice Lab2.B circuit on a screen; simulation circuit should use the same component values as your actual circuit, and should work.

– Make sure the circuit includes dc decoupling capacitors, is neat and easy to debug, with all component leads cut down

– Use 2 scope voltage probes: show encoder pulses and 555 timer output (PWM signal); display measurement of the PWM signal duty cycle

– Know how to probe and measure ton, Tenc, PWM, filtered output, etc.

• Experiment 2 report due in Canvas by 5pm on Wednesday– Double check your submission for completeness

– Make sure you and your partner(s) agree who is submitting the report

– Late or messy work will receive no credit

Electronics Design Laboratory 2ECEN 2270

Page 3: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Experiment 3 – Motor Drivers/Speed Control

Electronics Design Laboratory 3ECEN 2270

MotorDriver (Lab 3A)

SpeedControl (Lab 3B)

SpeedSensor (Lab 2)

Page 4: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Electronics Design Laboratory 4ECEN 2270

Speed Sensor and Filter

GND

5VDC

0-5V Speed Output proportional to actual motor speed

Vspeed

ForwardController

Reverse Controller

0-10V

0-10V

0-5V Speed Output proportional to desired motor speed

+-Speed error

Forward

NOT Forward

Experiment 1 & 2

Experiment 3a

Experiment 3b

wheel

ENCA

VDC+

VDC-

Page 5: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

DC Motor Driver

• Motor requires up to 1 A in each direction

• Bipolar Junction Transistors (BJTs) used to drive the motors

• BJTs have high current gain, which reduces the output current required from the feedback circuit op-amps

Electronics Design Laboratory 5ECEN 2270

+10VDC

GND+10V to -10V Outputs

From Feedback Controller

From Feedback Controller

ECEN2270

Page 6: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Electronics Design Laboratory 6ECEN 2270

www.electronics-tutorials.ws

“ON”

“OFF”

PN DiodeForward Current

Forward VoltageReverse Voltage

Reverse Current

“knee”0.7v Silicon

Ideal

Voltage Drop

Piecewise Linear

• Needs positive voltage to conduct

• Current flow from Anode to Cathode only

• Multiple models used, depends on how much information you need– Always use simplest model that works.

Page 7: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

NPN Bipolar Junction Transistor (BJT)

Electronics Design Laboratory 7ECEN 2270

Physical device model

• Three port device– Voltage differences between ports

control device operation

• Three common modes of operation– Cutoff ( Off-State Switch)– Active ( Current Amplifier )– Saturation ( On-State Switch )

B

E

C

B

C

E

ib

+vBE

-

ic = ib

ic

NPN equivalent active mode model

Cutoff

Saturation

Active

VBE

VBC

VBC

VBE

+

+

-

-

BE Diode Threshold Voltage

BC Diode Threshold Voltage

Page 8: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

B

C

E

ib

+vEB

-

ic = ib

ic

B

E

C

Cutoff

Saturation

Active

VCB

VEB

VCB

VEB

+

+

--

CB Diode Threshold Voltage

EB Diode Threshold Voltage

PNP Bipolar Junction Transistor (BJT)

Electronics Design Laboratory 8ECEN 2270

• Dual of the NPN device.

• All characteristics are the same, voltages are simply reversed

• Chapter 5 of Sedra/Smith for more information on both NPN and PNP

Physical device model

PNP equivalent active mode model

Page 9: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

DC Motor Driver

• BJTs provide current gain, β ≈ 200

• Limiting the base current can be used to limit the motor current

Electronics Design Laboratory 9ECEN 2270

+10VDC

GND+10V to -10V Outputs

From Feedback Controller

From Feedback Controller

ECEN2270

Page 10: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Motor current limit design

• Consider a test at maximum motor current

– Wheel locked.

• Full speed in one direction: B1 = 10V, B2 = 0V

• What mode does each transistor operate in?

– Only one device is ‘on’ per side

Electronics Design Laboratory 10ECEN 2270

GND

Rb1

Rb2

Rmotor10VDC

Q1 Q2

Q3 Q4

B2

B1

PNP NPNMode

Active

Sat.

Cutoff (C/O)

VBC&VBE > 0.8V

VBE > 0.8VVBC < 0.8V

VBC&VBE < 0.8VVCB&VEB < 0.8V

VCB&VEB > 0.8V

VEB > 0.8VVCB < 0.8V

Q1 Q2 Q3 Q4

CutoffCutoffActive Active

Page 11: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Motor current limit design

• Insert equivalent models into circuit• Solve Rb1 = Rb2 = Rb to limit the motor current• What is the voltage on the motor?

– Wheel is locked, or when– Wheel is at maximum speed

• What is the current through the motor?– Wheel is locked, or when– Wheel is at maximum speed

Electronics Design Laboratory 11ECEN 2270

B

C

E

ib

+vBE

-

ic = ib

ic

NPN equivalent active mode model

PNP equivalent active mode model

B

C

E

ib

+vEB

-

ic = ib

ic

GND

Rb1Rmotor10VDC

Q1 Q2

Q3 Q4

B2

B1

Q1 Q2 Q3 Q4

C/OC/OActive Active

Rb2

Page 12: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Equivalent Circuit: Locked Wheel

Electronics Design Laboratory 12ECEN 2270

B

C

E

ib

+vBE

-

ic = ib

ic

NPN equivalent active mode model

PNP equivalent active mode model

B

C

E

ib

+vEB

-

ic = ib

ic

GND

Rb1Rmotor

10VDC

B2

B1

Page 13: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

DC Motor Driver Board

Electronics Design Laboratory 13ECEN 2270

Page 14: Electronics Design Laboratory Lecture #5ecee.colorado.edu/ecen2270/lectures/Lecture05.pdf · 2019-02-22 · PNP Bipolar Junction Transistor (BJT) ECEN 2270 Electronics Design Laboratory

Soldering

• Be careful with the soldering irons!

– Do not burn anyone

– Do not burn anything

• Make sure you know what you want to do before you do it. Double check everything before soldering.

Electronics Design Laboratory 14ECEN 2270

BAD suspect Good! Do this!