eecs 192 mechatronics design lab
play

EECS 192: Mechatronics Design Lab Discussion 4: Project Proposal - PowerPoint PPT Presentation

EECS 192: Mechatronics Design Lab Discussion 4: Project Proposal Feedback & Power Systems GSI: Varun Tolani 7 & 8 Feb 2017 (Week 4) 1 Project Proposal Feedback 2 SMPS Recap 3 Practical Application 4 Summary Ducky (UCB EECS) Mechatronics


  1. EECS 192: Mechatronics Design Lab Discussion 4: Project Proposal Feedback & Power Systems GSI: Varun Tolani 7 & 8 Feb 2017 (Week 4) 1 Project Proposal Feedback 2 SMPS Recap 3 Practical Application 4 Summary Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 1 / 21

  2. Project Proposal Feedback Project Proposal Feedback Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 2 / 21

  3. Project Proposal Feedback Feedback ◮ IO ◮ Motor Drive ◮ Software Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 3 / 21

  4. Project Proposal Feedback IO ◮ Sensors ◮ Line scan camera(s) ◮ encoder/ back emf sensor ◮ Other ◮ Bluetooth TSL1401CL ◮ Links ◮ Line Scan Camera 1, Line Scan Camera 2 ◮ Optical Encoder ◮ Bluesmirf Chip Optical Encoder Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 4 / 21

  5. Project Proposal Feedback Motor Drive ◮ G en ◮ Needs 5V!!!! ◮ Pull down resistor (6.8k good) ◮ Shoot through protection ◮ Logic protection circuit ◮ Inverted PWM via code ◮ General ◮ Heatsinks Complimentary PWM ◮ Layout Mosfet Package Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 5 / 21

  6. Project Proposal Feedback Software ◮ Timing ◮ Timers ◮ Main/threads ◮ Frequencies 100s of hz ◮ ◮ General ◮ Keep it simple!!! Software Timing Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 6 / 21

  7. SMPS Recap Switching Power Supply Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 7 / 21

  8. SMPS Recap Buck Converter Theory DC-DC Converter ◮ 3 Cell LiPo Battery provides 11-12V ◮ Good for motor, driver chip/ op amp ◮ We also need 5V? ◮ K64F, servo, optical encoder, camera, etc. Buck Converter ◮ How to consistently get 5V? ◮ DC-DC converter! ◮ Step Down ◮ Buck Converter, Linear Regulator ◮ Step Up ◮ Boost Converter Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 8 / 21

  9. SMPS Recap Buck Converter Theory Buck Converter Circuit ◮ DC-to-DC switching power supply generating output voltage lower than input ◮ Uses inductor as storage element ◮ Efficient, no losses in ideal case Buck Converter ◮ Non-idealities: wire resistance, diode and transistor losses ◮ Capacitive filter to smooth output voltage Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 9 / 21

  10. SMPS Recap Buck Converter Theory Buck Converter Operation ◮ Inductor charges when switch is closed ◮ Energy stored in inductor by magnetic field, current through inductor increases ◮ Diode does nothing here Switch Closed Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 10 / 21

  11. SMPS Recap Buck Converter Theory Buck Converter Operation ◮ Inductor charges when switch is closed ◮ Energy stored in inductor by magnetic field, current through inductor increases ◮ Diode does nothing here Switch Open ◮ Inductor discharges when switch is open ◮ Magnetic field dissipates, current through inductor decreases ◮ Inductor voltage polarity reversed, generating voltage over input ◮ Current flows through diode, output capacitor charged Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 10 / 21

  12. SMPS Recap Buck Converter Theory Buck Converter Control ◮ If switch cycled fast enough, inductor does not fully discharge ◮ Can do a lot of math, but output voltage is function of duty cycle D Inductor charging ◮ V out = DV in Inductor discharging Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 11 / 21

  13. SMPS Recap Buck Converter Theory Check your Understanding ◮ So I’ve got a buck converter set up... ◮ A magic chip (LM2678) regulates the output to 5v ◮ Duty cycle is adjusted to maintain voltage Buck Circuit ◮ Remember: V out = DV in ◮ What happens if I... Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 12 / 21

  14. SMPS Recap Buck Converter Theory Check your Understanding ◮ So I’ve got a buck converter set up... ◮ A magic chip (LM2678) regulates the output to 5v ◮ Duty cycle is adjusted to maintain voltage Buck Circuit ◮ Remember: V out = DV in ◮ What happens if I... ◮ Increase the input voltage? Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 12 / 21

  15. SMPS Recap Buck Converter Theory Check your Understanding ◮ So I’ve got a buck converter set up... ◮ A magic chip (LM2678) regulates the output to 5v ◮ Duty cycle is adjusted to maintain voltage Buck Circuit ◮ Remember: V out = DV in ◮ What happens if I... ◮ Increase the input voltage? ◮ Duty cycle decreases, current decreases Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 12 / 21

  16. SMPS Recap Buck Converter Theory Check your Understanding ◮ So I’ve got a buck converter set up... ◮ A magic chip (LM2678) regulates the output to 5v ◮ Duty cycle is adjusted to maintain voltage Buck Circuit ◮ Remember: V out = DV in ◮ What happens if I... ◮ Increase the input voltage? ◮ Duty cycle decreases, current decreases ◮ Decrease the input voltage? Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 12 / 21

  17. SMPS Recap Buck Converter Theory Check your Understanding ◮ So I’ve got a buck converter set up... ◮ A magic chip (LM2678) regulates the output to 5v ◮ Duty cycle is adjusted to maintain voltage Buck Circuit ◮ Remember: V out = DV in ◮ What happens if I... ◮ Increase the input voltage? ◮ Duty cycle decreases, current decreases ◮ Decrease the input voltage? ◮ Duty cycle increases, current increases Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 12 / 21

  18. SMPS Recap Related Topologies Boost Converter Circuit (for your reference) ◮ DC-to-DC switching power supply generating output voltage lower than input ◮ Similar principle to buck converter ◮ V out = 1 1 − D V in Boost Converter ◮ Also exists buck-boost converters, where output can be greater than, equal to, or less than the input Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 13 / 21

  19. SMPS Recap Related Topologies Questions? got it? power supply pros, right? Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 14 / 21

  20. Practical Application Practical Application Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 15 / 21

  21. Practical Application Basics Automatic Feedback Control ◮ So, what is the switch-controlling magic? ◮ Feedback control: chip has logic to regulate the voltage on the feedback pin to an internal V FB = 1 . 21 V reference ◮ V out = V FB (1 + R 2 R 1 ) ◮ R 1 ≈ 1 k Ω recommended LM2678 Block Diagram Application circuit Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 16 / 21

  22. Practical Application Issues Problematic? ◮ What happens if the switch get stucks in the closed position? Boost Circuit Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 17 / 21

  23. Practical Application Issues Layout is Important!!! Boost Circuit Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 18 / 21

  24. Practical Application Issues Layout Guidelines ◮ Switching power supplies are layout sensitive ◮ Part placement and routing matters! ◮ Tips from the datasheet: ◮ Keep diode and filter capacitor connections as short as possible ◮ Minimize high frequency current path Recommended layout (switch, diode, capacitor) (uses surface-mount components) source: datasheet, Linear Technology ◮ Read the datasheet! Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 19 / 21

  25. Practical Application Issues Supporting Componenets ◮ Capacitors ◮ Ceramic, film, polarized (tantalum, aluminum, etc.)... ◮ Diodes ◮ Shottky ◮ Inductor ◮ Toroid Toroid Inductor Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 20 / 21

  26. Summary Summary Summary ◮ Buck converters step down a DC voltage to a lower DC voltage ◮ LM2678 uses feedback control to do voltage regulation ◮ Follow recommended layout guidelines during PCB design ◮ Very difficult to make work on perfboard- just design it on the pcb. Parts Handout ◮ Get a Servo Office hours for the rest of the section ◮ PCB deadline coming up in a week! Need help? Get it now! Ducky (UCB EECS) Mechatronics Design Lab 7 & 8 Feb 2017 (Week 4) 21 / 21

Recommend


More recommend