topicsee192/sp17/files/lec4.pdf · pwm for steering servo gotchas: • 4.8 or 6v, (not 7.2v!) •...
TRANSCRIPT
![Page 1: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/1.jpg)
EECS192 Lecture 4
Feb. 7, 2017
Topics• Polarized capacitor
• Project proposal feedback
• Quiz 1
• RC servo basics
• PWM and motor drive
• Power supplies
• Boost converter
• Buck Converter
Notes:
Check off-
• 2/10: Motor drive/stall, steering servo
• Quiz 2: power MOSFET/motor drive Tues 2/14
47uF, 16V electrolytic, polarized
Not all same- ESR…
![Page 2: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/2.jpg)
Project proposal feedback
Motor Driver
Schematic• Estop: what to switch?
• Motor drive from battery, not voltage regulator
• Snubbing capacitors and diode
• Drive/brake/enable/dir- shoot through protection
• Conventions: L->R, top to bottom
Circuit Layout• Mounting holes
• Big wires, short distances
• QFN vs SOIC package
• Heat sinks
• Estop switch
• Signal connectors- include ground
• Power connectors
Software
• Threads vs interrupts vs main() vs RtosTimer
![Page 3: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/3.jpg)
PWM for Steering Servo
Gotchas:
• 4.8 or 6V, (Not 7.2V!)
• max current 2A
• May be sensitive to noise on supply line
• Performance depends on voltage
![Page 4: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/4.jpg)
PWM
https://developer.mbed.org/handbook/PwmOut
![Page 5: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/5.jpg)
PWM for Main Motor control
im
<im > = (T/To) imax
Is imax constant?
![Page 6: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/6.jpg)
Power supply wiring- BAD!
Voltage regulatorVoltage regulator
+7.2V
On board: what does this look like electrically (as a schematic)?
![Page 7: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/7.jpg)
Voltage regulator
Power supply wiring- Star is better!
Voltage regulator
+7.2V
On board: what does this look like electrically (as a schematic)?
Low power ground
![Page 8: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/8.jpg)
``7.2V’’ supply waveforms with motor PWM
• Battery model
• Waveforms on board
• Wiring to reduce voltage resistance effects of wiring
Linear Regulator VIN > VREG Boost Converter VIN < VREG
VREG
0.5 ohm
regulator
VIN
VREG
VIN
VREG
VIN
![Page 9: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/9.jpg)
Boost Converter
Waveforms on board
(also see boost
converter notes)
![Page 10: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/10.jpg)
Boost Converter- LT1370
![Page 11: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/11.jpg)
Buck Converter LM2678
![Page 12: Topicsee192/sp17/files/lec4.pdf · PWM for Steering Servo Gotchas: • 4.8 or 6V, (Not 7.2V!) • max current 2A • May be sensitive to noise on supply line • Performance depends](https://reader034.vdocuments.us/reader034/viewer/2022042215/5ebc84177451343e7e6c3cc0/html5/thumbnails/12.jpg)
Buck Converter
https://en.wikipedia.org/wiki/Buck_converter