H-bridge for DC motor control

Similar documents
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

Motors and Servos Part 2: DC Motors

Electronics, Sensors, and Actuators

DC-Motor Driver circuits

Understanding the Arduino to LabVIEW Interface

Basic Electronics Course Part 2

Transistor Characteristics

Programmable Control Introduction

EXPERIMENT 5 CURRENT AND VOLTAGE CHARACTERISTICS OF BJT

BASIC-Tiger Application Note No. 059 Rev Motor control with H bridges. Gunther Zielosko. 1. Introduction

Introduction to Arduino HW Labs

Control System for Lamp Luminosity. Ian Johnson, Tyler McCracken, Scott Freund EE 554 November 29, 2010

Chapter 6: Transistors and Gain

Project 3 Build a 555-Timer

Drives 101 Lesson 3. Parts of a Variable Frequency Drive (VFD)

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

The NMIH-0050 H-Bridge

Ocean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller

Directions for Wiring and Using The GEARS II (2) Channel Combination Controllers

' Turn off A/D converters (thereby allowing use of pins for I/O) ANSEL = 0

LM317T Variable Voltage Regulator

DESIGN OF A TWO DIMENSIONAL MICROPROCESSOR BASED PARABOLIC ANTENNA CONTROLLER

CHAPTER SEMI-CONDUCTING DEVICES QUESTION & PROBLEM SOLUTIONS

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

School of Engineering Mechatronics Engineering Department. Experim. ment no. 1

INTEGRATED CIRCUITS. AN1221 Switched-mode drives for DC motors. Author: Lester J. Hadley, Jr.

EE 314 Spring 2003 Microprocessor Systems

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

Programming 2 Servos. Learn to connect and write code to control two servos.

EXPERIMENT 12: SIMULATION STUDY OF DIFFERENT BIASING CIRCUITS USING NPN BJT

DC motor control using arduino

Experiment #3: Micro-controlled Movement

Experiment No. 6 Output Characteristic of Transistor

As you can see, by varying the turn-on point, the amount of power getting to the bulb is adjustable, and hence the light output can be controlled.

ECE 440 Lecture 29 : Introduction to the BJT-I Class Outline:

INTEGRATED CIRCUITS. AN120 An overview of switched-mode power supplies Dec

Wednesday 7 June 2017 Afternoon Time allowed: 1 hour 30 minutes

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

The Motor sketch. One Direction ON-OFF DC Motor

Autonomous Robot Control Circuit

The first transistor. (Courtesy Bell Telephone Laboratories.)

ADVANCED SAFETY APPLICATIONS FOR RAILWAY CROSSING

Exercise 5: PWM and Control Theory

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

PICAXE TUTORIALS. 5. Picaxe Motor speed & direction control. NOTE: All these programs are for battery operated locos.

Computer Controlled Curve Tracer

' The PicBasic Pro Compiler Manual is on line at: '

WEEK 5 Remembering Long Lists Using EEPROM

b b Fig. 1 Transistor symbols

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

DESIGN AND DEVELOPMENT OF A MICROCONTROLLER BASED WIRELESS SECURITY ACCESS SYSTEM

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

Experiment (2) DC Motor Control (Direction and Speed)

Transistors and Applications

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller

HEATHKIT HD-1410 ELECTRONICKEYER

Discrete Op-Amp Kit MitchElectronics 2019

Bi-Directional DC Motor Speed Controller 5-32Vdc (3166v2)

Introduction to the ME2110 Kit. Controller Box Electro Mechanical Actuators & Sensors Pneumatics

Electronic Components

12V Dimmer Kit, version 2

Converting a Hobby Servomotor to a DC Gearhead Motor

Micro Controller Based Ac Power Controller

Laboratory 6 Diodes and Transistors

Example KodeKLIX Circuits

Home CSP Inc. Trackers and electronics for home solar energy

Transistor Biasing. DC Biasing of BJT. Transistor Biasing. Transistor Biasing 11/23/2018

Shown here is a schematic diagram for a real inverter circuit, complete with all necessary components for efficient and reliable operation:

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected.

DISCUSSION The best way to test a transistor is to connect it in a circuit that uses the transistor.

HB-25 Motor Controller (#29144)

Need Analog Output from the Stamp? Dial it in with a Digital Potentiometer Using the DS1267 potentiometer as a versatile digital-to-analog converter

ZX-SERVO16. Features : Packing List. Before You Begin

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

Figure 1. Block diagram of system incorporating power amplification.

LAB #10: Analog Interfacing

CHAPTER 3: BIPOLAR JUNCION TRANSISTOR DR. PHẠM NGUYỄN THANH LOAN

Single-phase or three phase AC220V (-15% ~ +10%) 50 ~ 60Hz

AN1508 APPLICATION NOTE STLC1: A COMPLETE SOLUTION FOR LED LAMP DRIVING IN MOTORCYCLE APPLICATIONS

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

COLLECTOR DRAIN BASE GATE EMITTER. Applying a voltage to the Gate connection allows current to flow between the Drain and Source connections.

PSoC Academy: How to Create a PSoC BLE Android App Lesson 9: BLE Robot Schematic 1

Installation tutorial for Console Customs Xbox 360 Dual Rapid fire Microchip for wired and wireless controllers (all versions)

UNIT-III STATOR SIDE CONTROLLED INDUCTION MOTOR DRIVE

Programming PIC Microchips

The Transistor Tester user manual

Audio Restoration Repair Bose Wave Music System AWRCC1 AWRCC2 AWRCC7

I. INTRODUCTION MAIN BLOCKS OF ROBOT

INVESTIGATION OF GATE DRIVERS FOR SNUBBERLESS OVERVOLTAGE SUPPRESSION OF POWER IGBTS

MOBILE ROBOT CRUISE CONTROLLER

RGB LED Strips. Created by lady ada. Last updated on :21:20 PM UTC

ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK

Home Map Projects Construction Soldering Study Components 555 Symbols FAQ Links

Electronics I Circuit Drawings. Robert R. Krchnavek Rowan University Spring, 2018

Automatic USB Controlled Power Switch

BLOCK DIAGRAM OF THE UC3625

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

ECE 310 Microelectronics Circuits

THE GENERATOR OF CLEMENTE FIGUERA

Transcription:

H-bridge for DC motor control Directional control Control algorithm for this h-bridge circuit A B 0 0 Stop 0 1 Forward 1 0 Reverse 1 1 Prohibited This circuit has the advantage of small voltage drop due to the transistors, however braking is not available as transistors Q 1 and Q 2 cannot be turned simultaneously, so as Q 3 and Q 4. Turning on transistors Q 1 and Q 2 at the same time (both input A and B are high), will turn on transistors Q 3 and Q 4 at the same time. And that means short-circuiting through transistors Q 1 and Q 3 as well as through transistorsq 2 and Q 4. This will damage all 4 transistors

Speed Control To control the speed of a d.c. motor we need a variable voltage d.c. power source. While a variable resistor can derive a variable d.c.voltage from a fixed d.c. source voltage it is not a efficient way of controlling d.c. voltage as a portion of the energy is converted to heat by the resistor. Pulse Width Modulation (PWM) If you take a 12v motor and switch on the power to it, the motor will start to speed up: motors do not respond immediately so it will take a small time to reach full speed. If we switch the power off sometime before the motor reaches full speed, then the motor will start to slow down. If we switch the power on and off quickly enough, the motor will run at some speed part way between zero and full speed. This is exactly what a p.w.m. controller does: it switches the motor on in a series of pulses. To control the motor speed it varies (modulates) the width of the pulses - hence Pulse Width Modulation. A pulse width modulator (PWM) is a device that may be used as an efficient light dimmer or DC motor speed controller. A PWM circuit works by making a square wave with a variable on-to-off ratio, the average on time may be varied from 0 to 100 percent. In this manner, a variable amount of power is transferred to the load. The main advantage of a PWM circuit over a resistive power controller is the efficiency, at a 50% level, the PWM will use about 50% of full power, almost all of which is transferred to the load, a resistive controller at 50% load power would consume about 71% of full power, 50% of the power goes to the load and the other 21% is wasted heating the series resistor The effective voltage developed depends on the time-on and time-off ratio.

Pulse Width Modulation is usually achieved by using electronic timing circuits or using in-built timing circuits of microprocessors. PWM Circuit Motor We can simulate a PWM operation by using the parallel port and the h-bridge circuit we have tried on. Control algorithm for this h-bridge circuit A B 0 0 Stop 0 1 Forward 1 0 Reverse 1 1 Prohibited By setting input A of the h-bridge at zero and switching input B on and off we can have PWM for the forward rotation of a motor. By setting input B of the h-bridge at zero and switching input A on and off we can have PWM for the reverse rotation of a motor. Pin 2 A Pin 3 Pin 18 ~ 25 B H-bridge Circuit Parallel port cable Use the data register (888) of the parallel port to set the inputs (A and B) of the h- bridge

To turn on and off the motor in the forward motion, the data of 0 and 2 have to be sent alternatively to the data register (888) To turn on and off the motor in the reverse motion, the data of 0 and 1 have to be sent alternatively to the data register (888). Qbasic program to Simulate PWM DIM direction AS STROMG DIM keypressed AS STRING DIM time_on AS INTEGER DIM time_off AS INTEGER DIM timecount AS INTEGER Direction = F time_on = 1000 time_off = 1000 Start: Keypressed = INKEY$ IF keypressed = + THEN time_on = time_on + 100 IF keypressed = - THEN Time_off = time_of + 100 IF keypressed = F OR keypress = R OR keypressed = H THEN direction = keypressed IF direction = F THEN gosub Forward IF direction = R THEN gosub Reverse OUT 888,0 Forward: OUT 888,2 gosub Ontime OUT 888,0 gosub Offtime Reverse: OUT 888,1 gosub Ontime OUT 888,0 gosub Offtime Ontime: FOR timecount = 1 TO time_on NEXT Offtime: FOR timecount = 1 TO time_off NEXT Remark this is not part of the program the codes underlined in the program is supposed to be on one line GOTO Start

Important points of the project 1. The h-bridge should have free-wheeling diode incorporated to protect the transistors from back emf of the motor during switching 2. Qbasic allows control in steps of integer seconds through the command SLEEP. The minimum time to turn on or turn off the motor would be 1 second if the SLEEP command is used. And this will cause the motor running intermittently. To use custom subroutines of delay can partly solve the problem but there are drawbacks: The delay routine will be dependent on the speed of the processor of the computer therefore there is no way of accurately controlling the on time and off time. The looping of the main program also add extra delay to the on and off times. 3. If the circuit does not wok properly, check that The ground of the h-bridge and the ground of the parallel port are connect. The 2 transistors connected to +5V are PNP transistors (e.g. BC327) and the other 4 transistors are NPN transistors (e.g. BC337) The pins of transistors are connected correctly. Remember the word CLER when you look down onto your circuit with the flat side of the transistor facing you. (Collector Left & Emitter-Right). This is true only for transistors with the TO-92 package. Check your program, particularly the spelling of the variables like direction, time_on, time_off, etc.