DC motor control using arduino

Similar documents
Page ENSC387 - Introduction to Electro-Mechanical Sensors and Actuators: Simon Fraser University Engineering Science

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

SELF STABILIZING PLATFORM

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

DESIGN OF A TWO DIMENSIONAL MICROPROCESSOR BASED PARABOLIC ANTENNA CONTROLLER

Understanding RC Servos and DC Motors

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

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

Feedback Devices. By John Mazurkiewicz. Baldor Electric

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

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

UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab Experiment no.1 DC Servo Motor

Automobile Prototype Servo Control

Feed-back loop. open-loop. closed-loop

Sensors and Sensing Motors, Encoders and Motor Control

Lab Exercise 9: Stepper and Servo Motors

Distance Measurement of an Object by using Ultrasonic Sensors with Arduino and GSM Module

I 2 C RedBot & DC Motor Servo Motor Control

Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen


Step vs. Servo Selecting the Best

Sensors and Sensing Motors, Encoders and Motor Control

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

ServoStep technology

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

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

MECHATRONICS SYSTEM DESIGN

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

Computer Numeric Control

ADVANCED SAFETY APPLICATIONS FOR RAILWAY CROSSING

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

INTELLIGENT SELF-PARKING CHAIR

Using Servos with an Arduino

Design of double loop-locked system for brush-less DC motor based on DSP

Ch 5 Hardware Components for Automation

Teaching Mechanical Students to Build and Analyze Motor Controllers

Laboratory Tutorial#1

Chapter 7: The motors of the robot

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

MCE441/541 Midterm Project Position Control of Rotary Servomechanism

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

3-Degrees of Freedom Robotic ARM Controller for Various Applications

Laboratory Tutorial#1

Semiconductor 9/21/2015

International Journal of Advance Engineering and Research Development

Job Sheet 2 Servo Control

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

MSK4310 Demonstration

CMSC838. Tangible Interactive Assistant Professor Computer Science. Week 11 Lecture 20 April 9, 2015 Motors

Programming PIC Microchips

Interfacing dspace to the Quanser Rotary Series of Experiments (SRV02ET)

Adafruit Motor Selection Guide

HOW TO UNDERSTAND THE WORKINGS OF RADIO CONTROL

Introduction to MS150

Introduction: Components used:

Adafruit Motor Selection Guide

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

DC SERVO MOTOR CONTROL SYSTEM

CNC Machine Feedback Devices

Introduction to Arduino HW Labs

ACTUATORS AND SENSORS. Joint actuating system. Servomotors. Sensors

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

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

In the Mr Bit control system, one control module creates the image, whilst the other creates the message.

SERVO MOTOR CONTROL TRAINER

Hobby Servo Tutorial. Introduction. Sparkfun:

of PWM is explained here. Consider a simple circuit as shown in figure below. DC Motor Speed Control using 555 Timer IC. The DC MOTOR SPEED.

Learning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011

ILR #1: Sensors and Motor Control Lab. Zihao (Theo) Zhang- Team A October 14, 2016 Teammates: Amit Agarwal, Harry Golash, Yihao Qian, Menghan Zhang

Speed Control of DC Motor Using Microcontroller

Exercise 2-2. Antenna Driving System EXERCISE OBJECTIVE DISCUSSION OUTLINE DISCUSSION

Motors and Servos Part 2: DC Motors

A Searching Analyses for Best PID Tuning Method for CNC Servo Drive

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

AN Industrial Stepper Motor Driver. Application Note Abstract. Introduction. Stepper Motor Control Method

815-BR SERVO AMPLIFIER FOR BRUSH SERVOMOTORS

Citrus Circuits Fall Workshop Series. Roborio and Sensors. Paul Ngo and Ellie Hass

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

Speed Control Of Transformer Cooler Control By Using PWM

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

KINECT CONTROLLED HUMANOID AND HELICOPTER

Glossary. Glossary Engineering Reference. 35

PRESENTED BY HUMANOID IIT KANPUR

Microcontroller Based Closed Loop Speed and Position Control of DC Motor

Type of loads Active load torque: - Passive load torque :-

Lab 5: Inverted Pendulum PID Control

A Subsidiary of Regal-Beloit Corporation. AC Inverter Terminology

Penn State Erie, The Behrend College School of Engineering

SRV02-Series Rotary Experiment # 3. Ball & Beam. Student Handout

ON THE PERFORMANCE OF LINEAR AND ROTARY SERVO MOTORS IN SUB MICROMETRIC ACCURACY POSITIONING SYSTEMS

Brushed DC Motor System

ELECTRONIC FUNDAMENTALS

Laboratory Exercise 1 Microcontroller Board with Driver Board

CHAPTER TWO LITERATURE REVIEW

Motor control using FPGA

A Do-and-See Approach for Learning Mechatronics Concepts

Upgrading from Stepper to Servo

AN ARDUINO CONTROLLED CHAOTIC PENDULUM FOR A REMOTE PHYSICS LABORATORY

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

Transcription:

DC motor control using arduino 1) Introduction: First we need to differentiate between DC motor and DC generator and where we can use it in this experiment. What is the main different between the DC-motor, DC-generator? - Both device are electromechanical device that convert the input energy form to output energy with another form. - Dc motor: electromechanical device that convert the electrical energy to mechanical energy. - Dc generator: electromechanical device that convert the mechanical energy to electrical energy A DC motor is any of a class of rotary electrical machines that converts direct current electrical power into mechanical power. The most common types rely on the forces produced by magnetic fields. Nearly all types of DC motors have some internal mechanism, either electromechanical or electronic, to periodically change the direction of current flow in part of the motor. DC motors were the first type widely used, since they could be powered from existing direct - current lighting power distribution systems. A DC motor's speed can be controlled over a wide range, using either a variable supply voltage or by changing the strength of current in its field windings. Small DC motors are used in tools, toys, and appliances. The universal motor can operate on direct current but is a lightweight motor used for portable power tools and appliances. Larger DC motors are used in propulsion of electric vehicles, elevator and hoists, or in drives for steel rolling mills. The advent of power electronics has made replacement of DC motors with AC motors possible in many applications. 2) Control Systems: 2.1) Open Loop Systems: An open-loop control system is controlled directly, and only, by an input signal, without the benefit of feedback. A characteristic of the open-loop system is that it does not use feedback to determine if its output has achieved the desired goal of the input, this means that the system does not observe the output of the processes that it is controlling. Consequently, a true open-loop system cannot correct any errors that it could make. It also may not compensate for disturbances in the system.

2.2) Closed Loop Systems: A closed-loop system uses feedback to control states or outputs of a dynamical system. A closed loop system compensates for disturbances by measuring the output response, feeding that measurement back through a feedback path, and comparing that response to the input at the summing junction. If there is any difference between the two responses, the system drives the plant, via the actuating signal, to make a correction. If there is no difference, the system does not drive the plant, since the plant's response is already the desired response. This means that a closed-loop system is able to regulate itself in the presence of disturbance or variations in its own characteristics. The measurement output signal reading by sensor it can be a voltage signal or current signal or variable resistance like LDR. Now, stop and ask yourself an important question how I can compare between two values with different types as (angle and voltage). So, now we will see the complete closed loop system for position control of dc motor and we will analyze it.

3) Position control of DC motor: 3.1) Motor Drivers: ( direction control ) Motor drivers are essentially power amplifiers, their function is to take a lowcurrent control signal, and turn it into a proportionally higher-current signal that can drive a motor. Note here that the control signal is likely on the order of 10 ma, and the motor may require 100mA to make it turn. An example of a motor driver is an H-Bridge, an H-bridge is an electronic circuit which enables a voltage to be applied across a load in either direction. These circuits are often used in robotics and other applications to allow DC motors to run forwards and backwards. H-bridges are available as integrated circuits, or can be built from discrete components. An H-bridge is built with four transistors (medium or high power). When the transistor Q1 and Q4 are closed (and Q2 and Q3 are open) a positive voltage will be applied across the motor. By opening Q1 and Q4 switches and closing Q2 and Q3 switches, this voltage is reversed, allowing reverse direction of the motor

Note: The transistors Q1 and Q2 should never be closed at the same time, as this would cause a short circuit on the input voltage source (External power source). The same applies to the transistors Q3 and Q4. 3.2 : pwm (Pulse Width Modulation) (Speed control ) Pulse width modulation (PWM) is a fancy term for describing a type of digital signal. Pulse width modulation is used in a variety of applications including sophisticated control circuitry. A common way we use them here at SparkFun is to control dimming of RGB LEDs or to control the direction of a servo motor. We can accomplish a range of results in both applications because pulse width modulation allows us to vary how much time the signal is high in an analog fashion. While the signal can only be high (usually 5V) or low (ground) at any time, we can change the proportion of time the signal is high compared to when it is low over a consistent time interval.

Duty Cycle When the signal is high, we call this on time. To describe the amount of on time, we use the concept of duty cycle. Duty cycle is measured in percentage. The percentage duty cycle specifically describes the percentage of time a digital signal is on over an interval or period of time. This period is the inverse of the frequency of the waveform. If a digital signal spends half of the time on and the other half off, we would say the digital signal has a duty cycle of 50% and resembles an ideal square wave. If the percentage is higher than 50%, the digital signal spends more time in the high state than the low state and vice versa if the duty cycle is less than 50%. Here is a graph that illustrates these three scenarios:

Example # 1 : DC motor speed and direction control Arduino diagram : Labview code : : we use this block to generate PWM its name ( PWM write pin )

3.3 : servo motor : A servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration. [1] It consists of a suitable motor coupled to a sensor for position feedback. It also requires a relatively sophisticated controller, often a dedicated module designed specifically for use with servomotors. Servomotors are not a specific class of motor although the term servomotor is often used to refer to a motor suitable for use in a closed-loop control system. Servomotors are used in applications such as robotics, CNC machinery or automated manufacturing Mechanism A servomotor is a closed-loop servomechanism that uses position feedback to control its motion and final position. The input to its control is a signal (either analogue or digital) representing the position commanded for the output shaft. The motor is paired with some type of encoder to provide position and speed feedback. In the simplest case, only the position is measured. The measured position of the output is compared to the command position, the external input to the controller. If the output position differs from that required, an error signal is generated which then causes the motor to rotate in either direction, as needed to bring the output shaft to the appropriate position. As the positions approach, the error signal reduces to zero and the motor stops. What's inside the servo? a small DC motor, potentiometer, and a control circuit

How is the servo controlled? Servos are controlled by sending an electrical pulse of variable width, or pulse width modulation (PWM) There is a minimum pulse, a maximum pulse, and a repetition rate A servo motor can usually only turn 90 degrees in either direction for a total of 180 degree movement The motor's neutral position is defined as the position where the servo has the same amount of potential rotation in the both the clockwise or counter-clockwise direction. he PWM sent to the motor determines position of the shaft, and based on the duration of the pulse sent via the control wire; the rotor will turn to the desired position The servo motor expects to see a pulse every 20 milliseconds (ms) and the length of the pulse will determine how far the motor turns

Example # 2 : servo motor Proteus : Labview :

Lab work : 1. picture for protues and labview in example 1,2 must be in your report. 2. What is the H-bridge driver circuit, and what is the main function of it? 3. Discuss how we can protect it from short circuit and working in both direction in the same time? 4. What is the main benefit of the diode which connect in parallel with transistor and what is the common name of it?