Embedded systems. Exercise session 2. Important Circuit Components Circuit Design

Similar documents
Embedded systems. Exercise session 3. Important Circuit Components Circuit Design

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

DUAL STEPPER MOTOR DRIVER

MOSFET as a Switch. MOSFET Characteristics Curves

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

Getting Started in Eagle Professional Schematic Software. Tyler Borysiak Team 9 Manager

Semiconductor 9/21/2015

NJM3777 DUAL STEPPER MOTOR DRIVER NJM3777E3(SOP24)

Bill of Materials: PWM Stepper Motor Driver PART NO

UNIVERSITY OF BRITISH COLUMBIA

Electronics, Sensors, and Actuators

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

PCB Design (with EAGLE tutorial) TA: Robert Likamwa ELEC 424, Fall 2010

PHASE BRUSHLESS DC MOTOR CONTROLLER/DRIVER FEATURES

Designated client product

Positive to Negative Buck-Boost Converter Using LM267X SIMPLE SWITCHER Regulators

Assembly Language. Topic 14 Motion Control. Stepper and Servo Motors

PIEZOELECTRIC TRANSFORMER FOR INTEGRATED MOSFET AND IGBT GATE DRIVER

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

23V 3A Step-Down DC/DC Converter

STARTER / GENERATOR MOTOR CONTROLLER

Embedded systems. Exercise session 1. Introduction and project presentation

Improvements of LLC Resonant Converter

THE IMPORTANCE OF PLANNING AND DRAWING IN DESIGN

NJM37717 STEPPER MOTOR DRIVER

PS7516. Description. Features. Applications. Pin Assignments. Functional Pin Description

Workshop Part Identification Lecture N I A G A R A C O L L E G E T E C H N O L O G Y D E P T.

SA60. H-Bridge Motor Driver/Amplifiers SA60

FIELD- EFFECT TRANSISTORS: MOSFETS

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore)

Figure 1: Motor model

The NMIH-0050 H-Bridge

NJM3773 DUAL STEPPER MOTOR DRIVER

FEATURES. Efficiency (%)

ECE 5670/6670 Project. Brushless DC Motor Control with 6-Step Commutation. Objectives

DISCONTINUED PRODUCT FOR REFERENCE ONLY COMPLEMENTARY OUTPUT POWER HALL LATCH 5275 COMPLEMENTARY OUTPUT POWERHALL LATCH FEATURES

Physics 309 Lab 3 Bipolar junction transistor

Detect stepper motor stall with back EMF technique (Part 1)

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

Speed Control Of Transformer Cooler Control By Using PWM

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

EVAL6235N. Demonstration board for L6235 DMOS driver for 3-phase brushless DC motor. Description. Features

GCSE Electronics. Scheme of Work

PBL 3775/1 Dual Stepper Motor Driver

As delivered power levels approach 200W, sometimes before then, heatsinking issues become a royal pain. PWM is a way to ease this pain.

Dual Full-Bridge PWM Motor Driver AM2168

ML4818 Phase Modulation/Soft Switching Controller

EE152 Final Project Report

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Applications. Tape and Reel Device Qualification Packaging AL5802LP4 Commercial X2-DFN ,000/Tape & Reel -7

Constant Current Switching Regulator for White LED

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

Simple Bridge Stand Alone H-Bridge Data Sheet Revision 1 August 2005

DESCRIPTION FEATURES APPLICATIONS TYPICAL APPLICATION. 500KHz, 18V, 2A Synchronous Step-Down Converter

KN-Q10 Assembly Manual

Lab Exercise 9: Stepper and Servo Motors

GS61004B 100V enhancement mode GaN transistor Preliminary Datasheet

Simulation Study of MOSFET Based Drive Circuit Design of Sensorless BLDC Motor for Space Vehicle

EUP2511. HQI Boost Converter With 2.1A Switch In Tiny SOT-23 Package FEATURES DESCRIPTION APPLICATIONS. Typical Application Circuit

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

A4970. Dual Full-Bridge PWM Motor Driver

Tutorial In Practical Circuit Board Design Ben LeVesque ECE480 Team 3 November 9 th, 2007

BLOCK DIAGRAM OF THE UC3625

EE320L Electronics I. Laboratory. Laboratory Exercise #4. Diode Rectifiers and Power Supply Circuits. Angsuman Roy

HM2259D. 2A, 4.5V-20V Input,1MHz Synchronous Step-Down Converter. General Description. Features. Applications. Package. Typical Application Circuit

Stepper Motor Drive Circuit

Handheld Gaussmeter. Robert Ito Michael Wong Faculty Advisor Professor Henry Lee Graduate Student Mentor Owen Finch

BM6312 FEATURES GENERAL DESCRIPTION APPLICATIONS. High-performance current mode PWM Controller. Product Specification

2015 International Future Energy Challenge Topic B: Battery Energy Storage with an Inverter That Mimics Synchronous Generators. Qualification Report

Name & SID 1 : Name & SID 2:

Electronic Components

Efficiency (%) Package Temperature Part Number Transport Media SOP8-40 to 85 PT1102ESOH Tape and Reel

QRPGuys SMT Digital Dial/Frequency Counter

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

Driving IGBTs with unipolar gate voltage

EE320L Electronics I. Laboratory. Laboratory Exercise #6. Current-Voltage Characteristics of Electronic Devices. Angsuman Roy

AP CANmotion. Evaluation Platform with BLDC Motor featuring XC886CM Flash Microcontroller Version 2007/10. Microcontrollers

AN2170 APPLICATION NOTE MOSFET Device Effects on Phase Node Ringing in VRM Power Converters INTRODUCTION

Autonomous Robot Control Circuit

Warm Tube Clock. Before we start, please make sure that you have all required parts that come for the main board :

Non-Synchronous PWM Boost Controller for LED Driver

Basic Electronics Learning by doing Prof. T.S. Natarajan Department of Physics Indian Institute of Technology, Madras

Electronic Concepts and Troubleshooting 101. Experiment 1

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Basic NC and CNC. Dr. J. Ramkumar Professor, Department of Mechanical Engineering Micro machining Lab, I.I.T. Kanpur

Lock Cracker S. Lust, E. Skjel, R. LeBlanc, C. Kim

GGD42560 Buck/Boost/Buck-Boost LED Driver

EUP V/12V Synchronous Buck PWM Controller DESCRIPTION FEATURES APPLICATIONS. Typical Application Circuit. 1

High Speed PWM Controller

FULL-BRIDGE PWM MOTOR DRIVER

Administrative Notes. DC Motors; Torque and Gearing; Encoders; Motor Control. Today. Early DC Motors. Friday 1pm: Communications lecture

GS61008P Bottom-side cooled 100 V E-mode GaN transistor Preliminary Datasheet

DISCONTINUED PRODUCT FOR REFERENCE ONLY. See A3967 or A3977 for new design. BiMOS II UNIPOLAR STEPPER-MOTOR TRANSLATOR/DRIVER FEATURES

Wireless Communication

MLX83100 Automotive DC Pre-Driver EVB83100 for Brushed DC Applications with MLX83100

Phys Lecture 3. Power circuits how to control your motors Noise and Shielding

Electronic Speed Controls and RC Motors

o What happens if S1 and S2 or S3 and S4 are closed simultaneously? o Perform Motor Control, H-Bridges LAB 2 H-Bridges with SPST Switches

Transcription:

Embedded systems Exercise session 2 Important Circuit Components Circuit Design

Communications Contact Mail : michael.fonder@ulg.ac.be Website for the exercise sessions and the project : http://www.montefiore.ulg.ac.be/~mfonder/info0064/ 4 hours of theory next week! Project Project presentation : 11/10 at 9am for the electricians, 20/10 instead of the theoretical course for the others (normal exercise session after that) Detailed description of the task on the website Group formation : TODAY at the end of the session : If you have a group come to me to tell your group members If you don't have a group come to notify me that you are still alone => At the end of the session I shall have a file with everyone's name inside (in group or still alone) 2

Today Part 1: Common components and circuits Voltage Regulator RC Lowpass Filter Optocoupler MOSFET Switch, MOSFET Drivers H-Bridge Brushed DC motors Stepper motors Servomotors Part 2: Electronic circuit design procedure Components choice Electronic schematic PCB design 3

Datasheet On the market, there are a lot of different components available. Some of them might look similar (or even identical) from the outside while actually having different specifications. But how can one find out which are those differences and which component fits its need? The answer is by looking in the datasheet. Datasheet = document which holds all useful information of a given electronic component. Each component has its own. Which kind of information can be expected to be in it? Physical and electrical properties; Normal working conditions; Absolute maximum ratings; Recommended connections Live examples : PIC16F1789, Sharp, LM7805 4

Voltage Regulator Concept The voltage regulator can be used to generate a stable voltage output from a wide range of input voltages. Why? The power source of a circuit can have an output voltage which depends on the power drawn by this circuit (typically batteries). On the other side, some components (A/D converters for example) need a stable and clean voltage reference to work correctly. Need of a regulator Note Most regulator have a low efficiency and are not designed to transmit a lot of power Be careful on what you plug on them. When making power electronics, prefer the use of DC/DC converters. 5

Circuit Clean Voltage Input Stabilization The microcontroller should be powered with a stable DC power source. Power source often have ripples and the circuit can lead to the creation of spikes which can badly impact the microcontroller. Stabilizing the input voltage can be done by using reservoir capacitors around power sources. Protection Bad connections can happen during the development of a new circuit. To avoid damaging your components, some protections such as an entry diode and a fuse should be added to your circuit. 6

RC Lowpass Filter Concept The RC lowpass filter is a simple circuit which filters high frequencies. It can have several uses such as button debouncing for example. But sometimes it is also an undesirable effect of the circuit design which can lead to signal transmission issues. Step response of the circuit :, 7

Optocoupler Concept When it is required to transmit digital signals between devices which don't have the same ground reference, you cannot just link them with a simple wire as there can be a high voltage difference between both grounds. The solution for this is to use an optocoupler, which is a electronic component able to transmit digital signals between two circuits without taking the risk of connecting the grounds together How does it work? An optocoupler contains a source (emitter) of light that converts electrical input signal into light, and a photosensor, which detects incoming light and either generates electric energy directly, or modulates electric current flowing from an external power supply. 8

MOSFET Switch Concept The NPN MOSFET transistors can be used as a switch to turn on and off loads which require a high power with a microcontroller signal. How does it work? Depending on a voltage threshold between the gate and the source, V GSthreshold, which is different for each transistor model, is either in cutof or saturation mode. Cutoff : VGS < V GSthreshold : I DS 0 Saturation : VGS > V GSthreshold : V DS 0 9

MOSFET Drivers Problems MOSFETs are not perfect : Parasitic resistance : 2 RDS(ON) 0Ω P dissipated = R DS(ON) I DS Parasitic capacitances Commutation time 0s Power loss during switch Can become problematic for high frequency switching Solution Use a MOSFET driver to minimize the switching time. MOSFET drivers can provide high current spikes to quickly charge the parasitic capacitances. 10

H-Bridge Concept H-bridges are a particular combination of 4 MOSFET switches which enable to control the direction and the amount of current which goes through the load. How does it work? The direction of the current (and therefore the polarity of the voltage applied to the load) can be chosen by activating some given pair of switches. The average current flowing trough the load (which is proportional to the average voltage) can be modulated by applying a PWM signal on the switches and by modulating the duty cycle of this signal. Note H-bridges can be crafted by hand by using several components but can also be brought as a single component. The latest solution is generally more economical and less prone to circuit design mistakes. 11

H-Bridge Concept H-bridges are a particular combination of 4 MOSFET switches which enable to control the direction and the amount of current which goes through the load. How does it work? S1 S2 S3 S4 State 0 0 0 0 No current 1 0 0 1 Positive current 0 1 1 0 Negative current 1 1 0 0 Motor short-circuit 0 0 1 1 Motor short-circuit 1 0 1 0!!! Power Supply Short-circuit!!! 0 1 0 1!!! Power Supply Short-circuit!!! 12

H-Bridge Concept H-bridges are a particular combination of 4 MOSFET switches which enable to control the direction and the amount of current which goes through the load. How does it work? S1 S2 S3 S4 State 0 0 0 0 No current 1 0 0 1 Positive current 0 1 1 0 Negative current 1 1 0 0 Motor short-circuit 0 0 1 1 Motor short-circuit 1 0 1 0!!! Power Supply Short-circuit!!! 0 1 0 1!!! Power Supply Short-circuit!!! 13

H-Bridge Concept H-bridges are a particular combination of 4 MOSFET switches which enable to control the direction and the amount of current which goes through the load. How does it work? S1 S2 S3 S4 State 0 0 0 0 No current 1 0 0 1 Positive current 0 1 1 0 Negative current 1 1 0 0 Motor short-circuit 0 0 1 1 Motor short-circuit 1 0 1 0!!! Power Supply Short-circuit!!! 0 1 0 1!!! Power Supply Short-circuit!!! 14

H-Bridge Concept H-bridges are a particular combination of 4 MOSFET switches which enable to control the direction and the amount of current which goes through the load. How does it work? S1 S2 S3 S4 State 0 0 0 0 No current 1 0 0 1 Positive current 0 1 1 0 Negative current 1 1 0 0 Motor short-circuit 0 0 1 1 Motor short-circuit 1 0 1 0!!! Power Supply Short-circuit!!! 0 1 0 1!!! Power Supply Short-circuit!!! 15

Brushed DC motors Concept The brushed DC motor is the simplest DC motor. It is made of a magnetic stator, a rotating coil and a rotor. How does it work? Current flows through the brushes to the windings of the rotor creating a magnetic field. This magnetic field tends to align with the magnetic field of the stator; there is a torque causing the rotor to rotate. There is a mechanical commutation on the axis which leads to an inversion of the current direction and therefore contributes to perpetuate the rotational movement. 16

Brushed DC motors driving Driving a DC motor is relatively easy : To change the speed, change the applied voltage To reverse the direction, inverse the polarity of the voltage To stop it, turn the power supply off Low-side drive circuit example Use a MOSFET as a switch to pulse width modulate the supplied voltage D1: it helps avoiding voltage spikes that could harm the MOSFET R1: pull-down resistor to be sure that the MOSFET is off when no voltage is applied MD : MOSFET driver 17

Stepper motors Concept The stepper motors are made of a soft iron rotor with square teeth on its side and of several pair of coils for the stator How does it work? Making current flow through a coil pair will generate a magnetic field. The system will try to reduce the magnetic resistance by reducing the airgap between the stator and the rotor. The only way to do this is to align on pair of teeth with the active coil. By successively activating neighbour coil,s it is possible to make the rotor turn. 18

Stepper motors driving Generalities Two-phase stepper motors are the most common. They can be unipolar or bipolar. Idea To make the motor rotate, it is required to send correctly synchronized pulses to each phase. Different driving methods are possible depending on the desired application (more precision vs more torque for example) Winding 1 Winding 2 Example of driving : Full step drive (for twophase bipolar motor) Two phases stepper: (a) Bipolar (b) unipolar 19

Servomotors Concept Servomotors are DC brushed or brushless motors equipped with a sensor and (in general) with a controller included which is used to precisely set the angular position of the motor based on an input signal. How does it work? For most servomotors, the angular position is given by the length of the dutycycle of a PWM signal. 20

Electronic circuit design Concept Designing an electronic circuit is not done by trial and errors by plugging components together and hoping they will behave as expected. Instead, circuit designers need to be rigorous in their work. The first thing to do after having chosen its main components is to make a plan of the complete circuit to be build. This plan is called the circuit schematic. Each component to be used later and each connection to made between components should be drawn on the schematic. Connections are represented as simple lines; Components are represented by their electric symbol; Each component symbol should be drawn with two additional information: A name which uniquely identifies the component on the schematic A value which gives the component reference or value in the case of resistors, capacitors and inductors. 21

Electronic circuit design Good Practice When drawing an electronic schematic, some rules of good practice have to be respected: The currents should flow from top to bottom (or equivalently, areas of higher voltage should be located above those of lower voltage); Each component has its symbol so use it on the schematic; The schematic has to be as clear as possible. It is a good idea to keep your connection lines as short and as straight as possible; If the circuit is complex, the schematic can be divided in several function blocks to keep things clear. The connection between several lines is highlighted with a point (when there is no point, the schematic is interpreted as simple line crossing without connection) 22

Electronic circuit design Improvable schematic example 23

Circuit implementation in practice Once one knows the circuit he wants wants to build, the serious work just begins. Building the circuit in practice indeed requires to successfully complete several steps which range from the components purchase to the final circuit implementation. For this the circuit designer has to answer the following questions: Exact specifications of the component which will be bought? Packaging of each component? How does the component interface with the rest of the circuit? Which support is he going to use to implement its circuit? How will the layout is his circuit be organized? All those questions are critical and must be answered accordingly. 24

Common components example Voltage regulators LM7805 : Input 10 35V; Ouput 5V MCA05D15D : Input 5V; Output -15V and 15V Optocoupler : HCPL2211 MOSFET switch : heavily depends on your needs (see power the power management and semi-conductors categories on Farnell) H-Bridges : MC33887, L293NDE, L298 What you have to take care about in general Input and output ratings Maximum allowed power Bandwidth if you need fast switching Note: A same meta-component (e.g. LM7805) can have several variants which differ by their absolute maximum ratings (such as output power for example) 25

Packaging types Through-hole technology Surface-mount technology Dual In-line Package (DIP) Dual/Quad-Flat No-leads (DFN/QFN) Quad Flat Package (QFP) Transistor Outline (TO-220) Small Outline Integrated Circuit (SOIC) Surface-mount components (SMC) 26

Component interfaces Headers/pins Direct connection with the board. Use headers and tulip ports to keep your important components easily removable (only for THT). Connectors The component use an intermediate interface between its outputs and the board. If you want to use connectors, you will probably have to assemble them by yourself! 27

Circuit Support I Breadboard Breadboards are boards with an internal circuitry which enables you to plug troughhole components and to link them in a given way. Breadboards are extremely useful for fast experimental prototyping. How does it work? 28

Circuit Support II PCB The Printed Circuit Board is a a board with some copper tracks which: Holds mechanically all the components Performs all the electrical connections between the components May perform an active role (antenna, ground plane, ) May be composed of several layers 29

Circuit Layout Breadboards When working with breadboards, your layout is strongly constrained by the internal circuitry of the breadboard and a good layout is pretty much defined by obvious rules of good practice. So, try to keep your circuit as clean as possible when working on the breadboard, especially if you do not plan to design a PCB. It will save you a lot of time when debugging or when modifications have to be brought. Avoid this Prefer this 30

Circuit Layout PCBs Thinking the layout of a PCB is much more complex as the degree of freedom is much wider than the one of breadboards. PCBs indeed need to be redesigned from scratch and then printed. For this reason, they are usually used only at the end of the circuit design process, when everything else has been tested with prototypes. The ultimate aim of the PCB design procedure is to get a printed circuit on which you can solder your components and which make the connections you want between them with copper tracks. It is up to you to decide where to put your components on the board and how to organize them. Designing a PCB can be done by hand but this is usually tedious. There also exist softwares (CADs) which help you with this task and which greatly ease the process. Among those softwares we have : KiCad, Geda, Eagle, Some are free other not. 31

PCB Design procedure Aim Create a bunch of files which can be interpreted by a PCB printer and which tell: Where to remove copper for each layer The location of the holes to drill The location of the holes to anodize Where to put varnish An example of such file is given on the website Procedure Design your circuit (draw your schematic) Choose the model (and therefore the footprint) of your components Organize the positioning of your components on the board depending on their foodprint Draw the tracks to make the links between the components 32

KiCad Strengths Accessible learning curve Good libraries Good community with good tutorials Free and cross-platform For download and tutorials link, see the exercise session website Worflow Schematics design Eeschema Footprint assignement CvPcb PCB design PcbNew 33

KiCad Eeschema Concept Eeschema is a tool designed to draw electronic circuits schematics. The circuit schematic file purpose is to give a clear understanding of the circuit. It : Displays all the elements Displays all the connections between elements Does not display the physical location of the components Can be divided in functional blocs How does it work? Add one symbol for each component One from the library Or your own symbol (there is a tool to create your own symbols) Draw the links between the components Be sure that the pinout of your symbols correspond to the datasheet! 34

KiCad Eeschema : Schematic example Example: Blinky Programming Oscillator Power supply 35

KiCad CvPcb Concept The symbol chosen during the design of the schematic do not contain any information about the physical design of the corresponding components It is required to provide this information manually depending on the component specifications (ex: packaging types, size, ) in order to place them accordingly on the PCB. How does it work? Link one footprint to each component One from the library Or your own footprint (there is a tool to create your own one) When editing or creating a footprint, refer to the datasheet for the specifications and verify your result with a 1:1 paper print Assign the correct number to the pins/pads Use the grid as a tool to correctly place the different parts of the footprint 36

KiCad PcbNew Concept Assign the physical location of the components and tracks Commonly used unit : mil 1 mil = 1/1000 inch = 0.0254 mm Best practise Always write PCB & author name on the board Leave a 3mm spacing between circuit and board outline Hole in every corner (i.e. place the PCB on screws) Decoupling capacitors have to be as close as possible to the component they protect NO YES YES TO AVOID 37

PCB Tracks Size Concept The width of a track has to be adjusted depending on the power it will transmit The rules depend on the manufacturer If realisation in Montefiore [mil]: Normal track width: 24 (min 16) Power track width: 30 Via: 82x82 (min 70x70) Via hole: 18 Clearance: 12 38

PCB Design Tips Generalities Space elements Place several LEDs or buttons for debugging Print a 1:1 paper version to check that dimensions are correct Do not forget the mirroring effect occuring when using through-hole components Beware of and avoid ground loops (I.e. currents going through the ground between two points) Use the ground star topology Power supply Analog circuit Digital circuit Ground star topology Do not forget : 1 error == a completely useless PCB 39

Example of what to not do 40

Example of what to not do 41

Example of what to not do 42

Example of what to not do 43

Example of ok design 44

Example of ok design 45

Debugging procedure Trust no one! Keep calm Use the oscilloscope Check elements connections & pinout Check soldering Check the power voltage Check pin voltage Process step-by-step and repeat this procedure 46