Controlling Motors OBEY ME!. On-Off Control 1. Switch control.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Advertisements

Welcome to Workshop 88’s Arduino 301: Control the World! Please have your Arduino, IDE, and breadboard fired up and ready to go. ver 1.0 2/2/14.
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
Basic DC Motor Circuits
Servos The material presented is taken from a variety of sources including:
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
Servos The material presented is taken from a variety of sources including:
L.
MOTORS.  Need a Motor That is Capable of Moving the Mirrors to a Fairly Precise Angle.
Living with the Lab Using servos with an Arduino EAS 199A Fall 2011.
SERVO MOTORS Tech Topic By Ryan Bidlack. Background A servo motor is composed of a DC, AC, or an AC induction motor and a feedback control. A servo motor.
Secret Door Knock Detector
SENIOR DESIGN 10/16.
1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2.
September 15, 2007 D.Giandomenico PWM Motor Control with IFI Robotics Victor884 Electronic Speed Controller David Giandomenico Lynbrook High School Robotics.
DC Motor Drives Dr. Ahmad Harb.
Introduction.
Microprocessors Tutorial 2: Arduino Robotics
1 Motors & Motor Controllers ECE AC or DC Motors AC –Few robots use AC except in factories –Most of those that use AC first convert to DC DC –Dominates.
Servo Motors # A servo is a motor that you can position at any angle very accurately. # Servos have a limited servo range; most servos have a range of.
L.C. Technology Servo Motor Control / Genie Software
Applied Control Systems Robotics & Robotic Control
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Basic Electronics How do I hook up a ________ to my ________circuit?
Annie Ly Lawrence Cagatin EE485 Spring 2012 Tuffy Medical Devices.
Kris Blair Nathan Edwards Jonathan Lindsay Daniel Moberly Jacob Rosenthal CUbiC Advisors: Sreekar Krishna and Troy McDaniel Wireless Haptic Belt Preliminary.
PWM Circuit Based on the 555 Timer. Introduction In applications LED Brightness Control we may want to vary voltage given to it. Most often we use a variable.
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
Motors & Motor Drivers ECE 450.
Electrical Actuation System Lecture 9 (Chapter 9).
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
STEPPER MOTORS Name: Mr.R.Anandaraj Designation: Associate. Professor Department: Electrical and Electronics Engineering Subject code :EC 6252 Year: II.
DC Motor Control The material presented is taken from a variety of sources including: ponents/inductor001.html#howworks,
Servos The material presented is taken from a variety of sources including:
Microprocessors Tutorial 2: Arduino Robotics. Agenda 1. Robot Anatomy 2. Sensor Review 3. PWM 4. MAKE: Fade 5. Motors 6. H Bridge 7. Robot Control library.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Variable Frequency Induction Motor Drives Simplest Control – set frequency for steady state operation only Use digital control.
Motor Tutorial Kevin M. Lynch Laboratory for Intelligent Mechanical Systems Northwestern University Evanston, IL USA.
SMV Electric Tutorials
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
PIC18F4431. PIC18F1330 Infrared Encoder/Decoder.
1 BOE-BOT Lecture #2 DE - Digital Electronics Servos and the BOE-BOT.
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
Istituto Tecnico Industriale A.Monaco EURLAB Control a Servo Motor If you want to swing an robot arm or … steer a robot you need a special motor (Servo).
Sitarambhai Naranjibhai Patel Institute Of Technology & R.C.
INTERNET OF EVERYTHING SDU 2016 Week 9. Physical Output  Make things move by controlling motors with Arduino  Servo-motors  Rotary actuator that allows.
DC motor principles Speed control Direction Stepper motor principles
Pulse-Width Modulation: Simulating variable DC output
Microcontroller basics Embedded systems for mortals.
Arduino Application: Speed control of small DC Motors
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Motors & Motor Controllers
Microcontroller basics
Introduction to Motors, servos and steppers
Servo’s and Motor’s with Arduino
Outline Introduction to digital-to-analog converter (DAC)
If you want to swing an robot arm or …
Using Arduino to modify RC controls Nick Carter 12/31/2015
Introduction to Servos
Microprocessors Tutorial 1: Arduino Basics
Servos The material presented is taken from a variety of sources including:
Arduino - Introduction
Electric Motors.
Servos The material presented is taken from a variety of sources including:
Servos The material presented is taken from a variety of sources including:
MC3479P Stepper Motor and Stepper Motor IC
Secret Door Knock Detector
Assist. Prof. Rassim Suliyev - SDU 2018
Introduction to Motors
UNIT 11: RC-SERVOMOTOR CONTROL
Presentation transcript:

Controlling Motors OBEY ME!

On-Off Control

1. Switch control

2. Transistor control TypeImax (mA)Vce (V) 2N TIP HIGH (+5V) LOW (0V)

Pin 2 GND

Several motors Watch out for TIP120 overheating GND

Several motors, each controlled GND

Several batteries GND

MOSFET Control DRAIN (D) SOURCE (S) GATE (G)

MOSFET G D S IRL520 Max current = 10 A Rds on = 0.18 ohm Ids D S Rds on If motor draws 2.0 A Vds = I*R = 2.0*.18 =.36V P = IV = 2*.36 =.72W For TIP120, Vce = 1.5V P = 2*1.5 = 3W !

MOSFET Parts Rds on = ohm $0.50 Rds on = ohm $1.50

3. Relay control 12V relay TIP120 or 2N3904 Relays good for high current motors Watch out for relay coil drain GND

Bi-directional motor control 12V DPDT RELAY CCW CW "DIRECTION" "ON-OFF" TIP120 or IRL520 or RELAY GND

Bi-directional control with an H-Bridge Wikipedia.org

Bi-directional motor control with L293D See $2.00 ~600 mA limit Example of higher current H-Bridge

Inductive loads cause switching spikes L VI t V I BIG SPIKE ! GND

.47, 100V mylar + - diode Noise Spike Suppression

Use Optoisolator to Control Spikes

CONTROL PIN xPIN yMOTOR Low Off LowHighCW HighLowCCW High Off Isolated Bi-Directional Motor Control

Controlling Motor Speed

Slowing Motor With a Power Resistor ohm power resistor 3W+ Need a load resistor? Try a flashlight bulb, or a second motor

Control Speed by Pulse Width Modulation (PWM) Open and close switch rapidly V 0 12 V 0 V 0 V 0 100% 50% 25% 0% Vavg = 12 V Vavg = 6 V Vavg = 3 V Vavg = 0 V

PWM for Variable Speed Duty cycle = 5/40 = 12.5% Watch out for voltage spikes!... while(digitalRead(6)==HIGH) { digitalWrite(11,HIGH); delay(5); digitalWrite(11,LOW); delay(35); }... //run at 3 speeds analogWrite(11,64); //slow delay(2000); analogWrite(11,128); //medium delay(2000); analogWrite(11,255); //fast delay(2000);... Arduino analogWrite PWM valid on pins 3, 5, 6, 9, 10, 11

Remember When motor runs slower, torque is less

Controlling Motor Position

Detect Position with a Switch Code Motor on Wait for switch closed Motor off

Detect Position with a Potentiometer Output voltage varies between 0 and 5V as angle changes Read with analogRead() function,

Stepper Motor One pulse per step 48, 100, 200 steps/rev common Send to precise position by a set # of pulses If high torque disturbance can be bumped out of holding detent Requires 4 Arduino pins ULN2003A interface driver or 4 transistors See stepper motor section in Arduino page of course web site

Servo Motor Gearmotor with internal position feedback and internal controller Control position with continuous pulse stream; width of pulse determines position Typical range: 90 to 180 degrees Common in hobby robotics, particularly RC airplanes Can modify for continuous rotation See servo motor section in Arduino page of course web site