Basic DC Motor Circuits



Similar documents
Basic DC Motor Circuits. Living with the Lab Gerald Recktenwald Portland State University

Arduino Lesson 13. DC Motors. Created by Simon Monk

Basic Pulse Width Modulation

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

BSP52T1 MEDIUM POWER NPN SILICON SURFACE MOUNT DARLINGTON TRANSISTOR

DATA SHEET PNP SILICON EPITAXIAL TRANSISTOR FOR HIGH-VOLTAGE HIGH-SPEED SWITCHING

45 V, 100 ma NPN/PNP general-purpose transistor

40 V, 200 ma NPN switching transistor

NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator

Constant Voltage and Constant Current Controller for Adaptors and Battery Chargers

DATA SHEET. BC875; BC879 NPN Darlington transistors DISCRETE SEMICONDUCTORS. Product specification Supersedes data of 1999 May 28.

LM2576R. 3.0A, 52kHz, Step-Down Switching Regulator FEATURES. Applications DESCRIPTION TO-220 PKG TO-220V PKG TO-263 PKG ORDERING INFORMATION

DISCRETE SEMICONDUCTORS DATA SHEET

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

DATA SHEET. MMBT3904 NPN switching transistor DISCRETE SEMICONDUCTORS. Product data sheet Supersedes data of 2002 Oct Feb 03.

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

DATA SHEET. BST50; BST51; BST52 NPN Darlington transistors DISCRETE SEMICONDUCTORS. Product specification Supersedes data of 2001 Feb 20.

AP331A XX G - 7. Lead Free G : Green. Packaging (Note 2)

PHOTOTRANSISTOR OPTOCOUPLERS

PD Storage Temperature Range Tstg 65 to +150 C Junction Temperature TJ 200 C

65 V, 100 ma PNP/PNP general-purpose transistor

NPN Darlington Power Silicon Transistor Qualified per MIL-PRF-19500/472

Efficient and reliable operation of LED lighting is dependent on the right choice of current-limiting resistor

Electronics 5: Arduino, PWM, Mosfetts and Motors

.OPERATING SUPPLY VOLTAGE UP TO 46 V

BD241A BD241C. NPN power transistors. Features. Applications. Description. NPN transistors. Audio, general purpose switching and amplifier transistors

BD238. Low voltage PNP power transistor. Features. Applications. Description. Low saturation voltage PNP transistor

Chapter 20: Permanent Magnet Brushed DC Motor Applications

10 ma LED driver in SOT457

TOSHIBA Transistor Silicon PNP Epitaxial Type (PCT Process) 2SA1020

Transistor Amplifiers

KA7500C. SMPS Controller. Features. Description. Internal Block Diagram.

LAB VII. BIPOLAR JUNCTION TRANSISTOR CHARACTERISTICS

DISCRETE SEMICONDUCTORS DATA SHEET BC856; BC857; BC858

DATA SHEET. PBSS5540Z 40 V low V CEsat PNP transistor DISCRETE SEMICONDUCTORS. Product data sheet Supersedes data of 2001 Jan Sep 21.

MC78XX/LM78XX. 3-terminal 1A positive voltage regulator. Features. Description. Internal Block Digram.

SPI-8001TW. Switching Regulators. Dual 1.5 A, DC/DC Step-Down Converter. SANKEN ELECTRIC CO., LTD.

N-channel enhancement mode TrenchMOS transistor

FPAB20BH60B PFC SPM 3 Series for Single-Phase Boost PFC

BD135 - BD136 BD139 - BD140

Transistors. NPN Bipolar Junction Transistor

Features: Characteristic Symbol Rating Unit. Collector-Emitter Voltage V CEO 100 Collector-Base Voltage I C

P2N2222ARL1G. Amplifier Transistors. NPN Silicon. These are Pb Free Devices* Features.

AMPLIFIERS BJT BJT TRANSISTOR. Types of BJT BJT. devices that increase the voltage, current, or power level

BC107/ BC108/ BC109 Low Power Bipolar Transistors

Unit/Standard Number. High School Graduation Years 2010, 2011 and 2012

TOSHIBA Insulated Gate Bipolar Transistor Silicon N Channel IGBT GT60J323

2PD601ARL; 2PD601ASL

LB1836M. Specifications. Monolithic Digital IC Low-Saturation Bidirectional Motor Driver for Low-Voltage Drive. Absolute Maximum Ratings at Ta = 25 C

LM2704 Micropower Step-up DC/DC Converter with 550mA Peak Current Limit

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

TO-92 SOT-23 Mark: 3G. TA = 25 C unless otherwise noted. Symbol Parameter Value Units

TA = 25 C unless otherwise noted. Symbol Parameter Value Units

TLP521 1,TLP521 2,TLP521 4

TDA4605 CONTROL CIRCUIT FOR SWITCH MODE POWER SUPPLIES USING MOS TRANSISTORS

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

MC33064DM 5 UNDERVOLTAGE SENSING CIRCUIT

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

Experiment 8 : Pulse Width Modulation

Series AMLDL-Z Up to 1000mA LED Driver

LAB VIII. BIPOLAR JUNCTION TRANSISTOR CHARACTERISTICS

FAN8082 (KA3082N) Bi-directional DC Motor Driver. Features. Description. Typical Applications. Ordering Information.

Bipolar Junction Transistor Basics

UC3842/UC3843/UC3844/UC3845

Low Noise, Matched Dual PNP Transistor MAT03

AT Up to 6 GHz Low Noise Silicon Bipolar Transistor

TIP31, TIP32 High Power Bipolar Transistor

TLP504A,TLP504A 2. Programmable Controllers AC / DC Input Module Solid State Relay. Pin Configurations (top view)

BD239, BD239A, BD239B, BD239C NPN SILICON POWER TRANSISTORS

Transistor Models. ampel

2N3903, 2N3904. General Purpose Transistors. NPN Silicon. Features Pb Free Package May be Available. The G Suffix Denotes a Pb Free Lead Finish

Vdc. Vdc. Adc. W W/ C T J, T stg 65 to C

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

2N2222A. Small Signal Switching Transistor. NPN Silicon. MIL PRF 19500/255 Qualified Available as JAN, JANTX, and JANTXV.

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

LM741. Single Operational Amplifier. Features. Description. Internal Block Diagram.

BDX33/A/B/C. Symbol Parameter Value Units V CBO Collector-Base Voltage : BDX33 : BDX33A : BDX33B : BDX33C

TIP140, TIP141, TIP142, (NPN); TIP145, TIP146, TIP147, (PNP) Darlington Complementary Silicon Power Transistors

2N6056. NPN Darlington Silicon Power Transistor DARLINGTON 8 AMPERE SILICON POWER TRANSISTOR 80 VOLTS, 100 WATTS

Design and Applications of HCPL-3020 and HCPL-0302 Gate Drive Optocouplers

TLP281,TLP281-4 TLP281,TLP281-4 PROGRAMMABLE CONTROLLERS AC/DC-INPUT MODULE PC CARD MODEM(PCMCIA) Pin Configuration (top view)

BC846/BC546 series. 65 V, 100 ma NPN general-purpose transistors. NPN general-purpose transistors in Surface Mounted Device (SMD) plastic packages.

Features. Applications

BC327, BC327-16, BC327-25, BC Amplifier Transistors. PNP Silicon. These are Pb Free Devices* Features MAXIMUM RATINGS

2N4921G, 2N4922G, 2N4923G. Medium-Power Plastic NPN Silicon Transistors 1.0 AMPERE GENERAL PURPOSE POWER TRANSISTORS VOLTS, 30 WATTS

POWER SUPPLY MODEL XP-15. Instruction Manual ELENCO

TPM Product Type 107-D162-NNT 48-channel digital input and 16-channel digital output module with pluggable terminal

2STBN15D100. Low voltage NPN power Darlington transistor. Features. Application. Description

ST High voltage fast-switching NPN power transistor. Features. Applications. Description

LSI/CSI LS7362 BRUSHLESS DC MOTOR COMMUTATOR/CONTROLLER DESCRIPTION:

BJT Characteristics and Amplifiers

CS4525 Power Calculator

DISCRETE SEMICONDUCTORS DATA SHEET. BFQ34 NPN 4 GHz wideband transistor. Product specification File under Discrete Semiconductors, SC14

Micro-Step Driving for Stepper Motors: A Case Study

Bipolar Transistor Amplifiers

LM139/LM239/LM339/LM2901/LM3302 Low Power Low Offset Voltage Quad Comparators

SILICON TRANSISTOR 2SC3355

3 The TTL NAND Gate. Fig. 3.1 Multiple Input Emitter Structure of TTL

LM217M, LM317M. Medium current 1.2 to 37 V adjustable voltage regulator. Description. Features

Welcome to this presentation on Switch Mode Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series. In this presentation we will look at:

Transcription:

Basic DC Motor Circuits Living with the Lab Gerald Recktenwald Portland State University gerry@pdx.edu DC Motor Learning Objectives Explain the role of a snubber diode Describe how PWM controls DC motor speed Implement a transistor circuit and Arduino program for PWM control of the DC motor Use a potentiometer as input to a program that controls fan speed 2 1

What is a snubber diode and why should I care? Simplest DC Motor Circuit Connect the motor to a DC power supply Switch open Switch closed I 4 2

Current continues after switch is opened Opening the switch does not immediately stop current in the motor windings. I + Inductive behavior of the motor causes current to continue to flow when the switch is opened suddenly. Charge builds up on what was the negative terminal of the motor. 5 Reverse current Charge build-up can cause damage I Reverse current surge through the voltage supply + Arc across the switch and discharge to ground 6 3

Motor Model Simple model of a DC motor: Windings have inductance and resistance Inductor stores electrical energy in the windings We need to provide a way to safely dissipate electrical energy when the switch is opened I 7 Flyback diode or snubber diode Adding a diode in parallel with the motor provides a path for dissipation of stored energy when the switch is opened + The flyback diode allows charge to dissipate without arcing across the switch, or without flowing back to ground through the voltage supply. 8 4

Pulse-width modulation (PWM) for DC motor speed control Controlling DC Motor Speed The voltage supplied to a DC motor controls its speed Arduino cannot supply variable DC output Arduino lacks a true analog output Use Pulse-width modulation (PWM) to simulate a variable DC supply voltage PWM is a common technique for supplying variable power levels to slow electrical devices such as resistive loads, LEDs, and DC motors Arduino Uno has 6 PWM pins: Digital I/O pins 3, 5, 6, 9,10, and 11 10 5

Arduno Uno has 6 PWM pins Look for the ~ prefix on the digital pin label, e.g. ~3 11 PWM: Pulsed with modulation PWM simulates DC voltage control for slow loads τ o V s... τ c The effective voltage is is called the duty cycle 12 6

Arduino PWM commands Configure the output pin: PWM_pin =... ; // one of 3, 5, 6, 9, 10, 11 void setup() { pinmode( PWM_pin, OUTPUT); } Set the duty cycle void loop() { int duty_cycle = 150; // between 0 and 255 analogwrite( PWM_pin, duty_cycle ); } The duty cycle is an 8 bit value: 0 duty_cycle 255 13 Using a transistor to switch the load 7

Transistor as the switching device Each Arduino output channels has a 40 ma limit The maximum current draw for an Arduino is 200 ma Use Arduino as the brain Let another switching element be the brawn 15 Use an NPN Transistor as a switch 2N4401 MMBT4401 C 2N4401 / MMBT4401 E C B E TO-92 SOT-23 Mark: 2X B NPN General Pupose Amplifier This device is designed for use as a medium power amplifier and switch requiring collector currents up to 500 ma. Absolute Maximum Ratings* TA = 25 C unless otherwise noted This device is designed for use as a medium power amplifier and switch requiring collector currents up to 500 ma Symbol Parameter Value Units VCEO 40 V Collector-Emitter Voltage VCBO Collector-Base Voltage 60 V VEBO Emitter-Base Voltage 6.0 V IC Collector Current - Continuous 600 ma TJ, Tstg Operating and Storage Junction Temperature Range -55 to +150 C *These ratings are limiting values above which the serviceability of any semiconductor device may be impaired. NOTES: 1) These ratings are based on a maximum junction temperature of 150 degrees C. 2) These are steady state limits. The factory should be consulted on applications involving pulsed or low duty cycle operations. Thermal Characteristics TA = 25 C unless otherwise noted Symbol Characteristic Max Units 2N4401 *MMBT4401 PD Total Device Dissipation 625 350 mw Derate above 25 C 5.0 2.8 mw/ C RJC Thermal Resistance, Junction to Case 83.3 C/W RJA Thermal Resistance, Junction to Ambient 200 357 C/W *Device mounted on FR-4 PCB 1.6" X 1.6" X 0.06." " 2001 Fairchild Semiconductor Corporation 2N4401/MMBT4401, Rev A 16 8

Electronic components in the fan kit Transistor Diode 220 Ω or 330 Ω resistor 17 Replace the Switch with a Transistor A transistor allows on/off control to be automated and it allows switching of more current than an Arduino digital pin can supply. 1N4001 diode Pin 9 330 Ω P2N2222 NPN transistor Pin 9 or another PWM pin drives the transistor base 18 9

Alternative locations for the transistor Moving the transistor (and any switch) between the power supply and the motor adds a bit of safety by tying the motor to ground when the system is idle PWM signal NPN transistor PWM signal PNP transistor 19 Diode and transistor orientation PWM signal + Orient the diode so that the silver stripe is at the same voltage as the positive motor terminal 330Ω Collector: Connect to Base: Connect to motor control pin on Arduino Emitter: Connect to positive terminal of motor 20 10

Arduno Uno has 5 PWM pins Look for the ~ prefix on the digital pin label, e.g. ~3 21 DC Motor Circuit on tiny breadboard 22 11

connections 23 PWM signal is connected to transistor base 24 12

Arduino program to spin the DC Motor Code is in spin_dc_motor.ino // spin_dc_motor.ino Use PWM to control DC motor speed int motorpin = 3; // Pin 3 has PWM, connected it to the DC motor void setup() { pinmode(motorpin, OUTPUT); // Set motor pin to output mode } void loop() { analogwrite(motorpin, 150); // Motor at 150/255 of full speed delay(1000); analogwrite(motorpin, 250); // Motor at 250/255 of full speed delay(1000); } 25 User input to control fan speed 13

Adjust fan speed with potentiometer input Use the potentiometer circuit from the earlier analog input exercise 27 Adjust fan speed with potentiometer input Code is in DC_motor_speed_control.ino // File: DC_motor_speed_control.pde // // Use potentiometer input to set the speed of a DC motor // Output to the motor is PWM int motorpin = 3; // pin connected to the DC motor int potpin = 1; // analog input connected to the potentiometer void setup() { pinmode(motorpin, OUTPUT); } void loop() { int PWMoutput, potreading; potreading = analogread(potpin); PWMoutput = map(potreading, 0, 1023, 0, 255 ); analogwrite(motorpin, PWMoutput); } 28 14

Adjust fan speed with potentiometer input void loop() { int PWMoutput, potreading; potreading = analogread(potpin); PWMoutput = map(potreading, 0, 1023, 0, 255 ); analogwrite(motorpin, PWMoutput); } Each time through the loop: Read the voltage at the potentiometer wiper Input value is a 10-bit integer: 0 potreading 1023 Scale the 10-bit value (max 1023) to an 8-bit value (max 255) PWMoutput = map( potreading, 0, 1023, 0, 255 ); range for potreading Update the PWM signal analogwrite(motorpin, PWMoutput); range for PWMoutput 29 15