1 4-Integrating Peripherals in Embedded Systems (cont.)

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 3: Standard Single Purpose Processors - Peripherals.
Basic DC Motor Circuits
1 4-Integrating Peripherals in Embedded Systems (cont.)
1. Output signal alternates between on and off within specified period Controls power received by a device The voltage seen by the load is directly proportional.
L.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 4 Standard Single Purpose Processors: Peripherals.
Standard Single Purpose Processors: Peripherals. This Week In DIG II  Timers and counters  Watchdog timers  UART (Universal asynchronous receiver /
DC-DC Converters Convert a fixed DC Source into a Variable DC Source
Department of Electrical Engineering Southern Taiwan University of Science and Technology Robot and Servo Drive Lab. 2015/7/2 Digital Control Strategy.
SENIOR DESIGN 10/16.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 4 Standard Single Purpose Processors: Peripherals ECE 4330 Embedded System.
Pulse Width Modulation Professor: Dr. Miguel Alonso Jr.
Servo Control Using Analog Signal Obtain “analog” input using analogRead().
September 15, 2007 D.Giandomenico PWM Motor Control with IFI Robotics Victor884 Electronic Speed Controller David Giandomenico Lynbrook High School Robotics.
ECGR-6185 Advanced Embedded Systems University Of North Carolina at Charlotte A. Srinivas Reddy Stepper/Servo/DC Motors.
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Power Electronics DC to AC Converters
Pulse Width Modulation (PWM) LED Dimmer Circuit
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
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.
Electric Motors and Motion Control Ara Knaian. Motors Motors convert electrical energy to mechanical energy Motors make things move LINEAR ELECTROSTATIC.
CIRCUITS, DEVICES, AND APPLICATIONS Eng.Mohammed Alsumady
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Chapter 4 Standard Single Purpose Processors: Peripherals
ENGR 6806 – Motor Control Prepared By: Rob Collett September 15, Office: EN2074.
1 Lab 5: Controls and feedback. 2 Lab 5: Control and Feedback This embedded system uses the Photo sensor to detect the light intensity of the environment.
IV. Implementation system by Hardware Fig.3 Experimental system.
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.
Al-Najah National University
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
1 Lecture on Lab 6 Lab 7 Lab 8. 2 Lab 6: Open Loop Controller As you learned in lab 5, there are two kinds of control systems: open loop and closed loop.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 4 Standard Single Purpose Processors: Peripherals.
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.
Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
SMV Electric Tutorials
PIC18F4431. PIC18F1330 Infrared Encoder/Decoder.
PULSE WIDITH MODULATION EE 587 Presented by Viswanadha Kakarlapudi.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Seth Schwiethale James Crosetto James Ellison.  square pulse of ms, repeats every 20 ms  It is the same for both steering and acceleration 
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
DC motor principles Speed control Direction Stepper motor principles
CLOSED LOOP SPEED CONTROL OF DC MOTOR WITH PWM TECHNIQUE
1 4-Integrating Peripherals in Embedded Systems (cont.)
Module 8 Tutorial  An 8086 system is used for controlling the speed of a motor. The motor can operate at 5 different speeds (1- 5).  The speed.
Microcontroller basics Embedded systems for mortals.
Arduino Application: Speed control of small DC Motors
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
Generators, Motors, and AC Power
Introduction to Motors, servos and steppers
MICROCONTROLLER AND INTERFACING
Timers and Event Counters
Dimming Function – Pulse-width Modulation (PWM)
Electric Motors.
AC Voltage Controllers AC to ac Converters
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
CBC Fundamentals Lecture is based on material from Robotic Explorations: A Hands-on Introduction to Engineering, Fred Martin, Prentice Hall, 2001.
Pulse-Width Modulation (PWM)
Introduction to H-Bridge
UNIT 19 PWM 로봇 SW 교육원 조용수.
Computer Science & Engineering Electrical Engineering
Sensors and actuators Sensors Resistive sensors
Chapter 4 Standard Single Purpose Processors: Peripherals
Chapter 4 Standard Single Purpose Processors: Peripherals
Hitec HS 303: Robotic Servo Motor
Robotics System Lecture 11_12: DC Motor
Chapter 4 Standard Single Purpose Processors: Peripherals
Chapter 4 Standard Single Purpose Processors: Peripherals
Presentation transcript:

1 4-Integrating Peripherals in Embedded Systems (cont.)

2 Pulse width modulator clk pwm_o 25% duty cycle – average pwm_o is 1.25V clk pwm_o 50% duty cycle – average pwm_o is 2.5V. clk pwm_o 75% duty cycle – average pwm_o is 3.75V. Generates pulses with specific high/low times Duty cycle: % time high  Square wave: 50% duty cycle Common use: control average voltage to electric device  Simpler than DC-DC converter or digital-analog converter  DC motor speed, dimmer lights Another use: encode commands, receiver uses timer to decode

3 Controlling a DC motor with a PWM void main(void){ /* controls period */ PWMP = 0xff; /* controls duty cycle */ PWM1 = 0x7f; while(1){}; } The PWM alone cannot drive the DC motor, a possible way to implement a driver is shown below using an MJE3055T NPN transistor. Internal Structure of PWM clk_div cycle_high counter ( 0 – 254) 8-bit comparator controls how fast the counter increments counter < cycle_high, pwm_o = 1 counter >= cycle_high, pwm_o = 0 pwm_o clk Relationship between applied voltage and speed of the DC Motor DC MOTOR 5V From process or

For DC motors  motor0_init();//initialize PWM0 with 10ms period  Also works for motors 1-7.  motor0(int speed); //speed of motor  Use DIP Switches to control motor directions For Servo motors  servo76_init();// initialize PWM7 with 20ms period  set_servo76(int width);//set position of servo7 ( )  Note: set_servoij function does not have to be in an infinite loop. It provides periodic duty cycle based on the value of the input parameter. 4