CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Pulse Width Modulation and Motor Control
Encoders, Motors, Power, Mini Project #1 10/24/2014.
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
L.
Brushless DC (BLDC) Motors Brushless DC Motors are a type of synchronous motor –magnetic fields generated by the stator and rotor rotate at the same frequency.
Who Wants To Be A Millionaire? Electricity and Magnetism.
Engineering H191 - Drafting / CAD Gateway Engineering Education Coalition Lab 3P. 1Autumn Quarter DC Motors Lab 3.
Incremental Encoders. Encoders typically run on +5V, not +24V Outputs are typ. not 24V compatible either.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
SENIOR DESIGN 10/16.
Electromagnetism, etc. Q & A. Q#1 Q#2 Q#3 Q#4.
ECGR-6185 Advanced Embedded Systems University Of North Carolina at Charlotte A. Srinivas Reddy Stepper/Servo/DC Motors.
Introduction.
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
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.
Applied Control Systems Robotics & Robotic Control
T IMERS - 2. O UTPUT U NIT Each capture/compare block contains an output unit. The output unit is used to generate output signals such as PWM signals.
1  Actuators are used in order to produce mechanical movement in robots.
Sensors are mostly electronic devices used to monitor or capture something.
Three-Phase AC machines Introduction to Motors and Generators Resource 1.
Ohm’s Law + - R E I E = I * R I = E / R R = E / I E = Voltage I = Current R = Resistance.
PWM ECE 4437-EMBEDDED SYSTEMS DR. GLOVER CHRISTOPHER AHN & KHOA VAN.
Welcome to Physics Jeopardy Chapter 18 Final Jeopardy Question Magnetic fields 100 Electro magnetic Induction Motor Transformers
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,
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
Servos The material presented is taken from a variety of sources including:
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
MOTORS. Definition Of Motor That powered by electricity or internal combustion, that supplies motive power for a vehicle or for some other device. A device.
Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
Electromagnetism It’s attractive! (or repulsive).
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
PIC18F4431. PIC18F1330 Infrared Encoder/Decoder.
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
Analog Output Materials: animatronic head Processing Quiz HW: code links.
INTRODUCTION TO ROBOTICS Part 3: Propulsion System Robotics and Automation Copyright © Texas Education Agency, All rights reserved. 1.
Istituto Tecnico Industriale A.Monaco EURLAB Moving a robot simple example program to control a DC-Motor Next - Press the button (left)
DC motor principles Speed control Direction Stepper motor principles
Engineering H191 - Drafting / CAD Gateway Engineering Education Coalition Lab 7P. 1Autumn Quarter DC Motors Lab 7.
Microcontroller basics Embedded systems for mortals.
ARM CORTEX (STM32) BASED MOTOR SPEED CONTROL SUBMITTED BY EDGEFX TEAM.
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.
Generators, Motors, and AC Power
Motors & Motor Controllers
Application Case Study Christmas Lights Controller
Introduction to Motors, servos and steppers
simple example program to control a DC-Motor
Application Case Study Security Camera Controller
Timers and Event Counters
FOUR QUADRANT DC MOTOR SPEED CONTROL WITHOUT MICROCONTROLLER
ARDUINO FOUR QUADRANT DC MOTOR CONTROL
AC and DC motors.
Warm-up Why do loops of wire in a motor rotate?
Arduino - Introduction
DC MOTOR SPEED CONTROL 1. Introduction
Control a motors angular position with a flex sensor
Electric Motors.
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
Brushless DC (BLDC) Motors
Knowledge Organiser – Magnetism and Electromagnetism
ECET 365 Education for Service/tutorialrank.com
CBC Fundamentals Lecture is based on material from Robotic Explorations: A Hands-on Introduction to Engineering, Fred Martin, Prentice Hall, 2001.
Force on a Current-carrying Conductor & Motor Effect 
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Draw 2 magnets that repel and attract each other.
Presentation transcript:

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Digital or Analog? 0 V +5 V It depends on how data is encoded.

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Analog Signals that Look Awfully Digital… Pulse Generation Pulse-Width Modulation (PWM) Pulse-Width Measurement (PWM) Event counting Period Measurement Input capture Output compare For a microcontroller – all involve creative use of clocks and counters

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Applications of These Signals Applications: Pulse Generation (sensors, motors, general control) Pulse-Width Modulation (PWM) (DC Motors) Pulse-Width Measurement (PWM) (sensors) Event counting Period Measurement (frequency measurement/modulation) Input capture (pattern recognition) Output compare (timed patterns)

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Magnetic Fields Direction of Field: North  South

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Right Hand Rule Electric Currents  Magnetism!

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Right Hand Rule Electric Currents  Magnetism!

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Electromagnet North/South Pole?

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Stepper Motor

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Stepper Motor

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Stepper Manipulation Controlling a stepper involves turning these electromagnets on and off This must be done in order to create rotation. –i.e. can’t go from top one high to bottom one high Microcontroller will want to set up its outputs to go through these steps in order by generating pulses on multiple pins Number of steps (resolution) can actually be doubled with creative pulsing –i.e. top and right on give you a position going “NE”

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Force Current Magnetic Field Right Hand Rule # 2 Electric Currents & Magnetism  Force

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Force in a Conductor

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Force in a Conductor

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Diagram of a Simple DC Motor

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Commutator

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst DC Motor Velocity The velocity of the motor is (roughly) proportional to the force exerted The power of the force acting on the motor is directly proportional to the magnetic field that is causing the force The magnetic field intensity is directly proportional to the current that creates it (from running through the wires) The current is directly proportional to the Voltage across the lines (V = IR) Therefore: The speed of the motor is directly proportional to the Voltage How do I output a voltage?!?

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Pulse Width Modulation (PWM) Effective Voltage = Duty Cycle x Supply Voltage

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Single Pulse Applications Sensors: –Ultrasonic range-finders require a pulse to start ranging, and report results based on a pulse length Servo Motors: –Pulse width describes position

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Generating Pulsed I/O on the MPC555 “Obvious” answer is to use straight GPIO (digital I/O), like the port we used in the QADC, then use the PIT to do timings –While possible, to do a continuous pulse we have to interrupt the processor every ½ period! –Timing is also slightly less accurate (going to an ISR takes time) The MPC555 has a “MIOS” unit (Modular Input/Output System) –Combines counters and clocks to generate a wide range of pulse widths and periods. –Does so without the need for interrupts

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst

CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst MDASM Modes Disable mode Pulse width measurement Period measurement Input capture mode Single pulse generation Continuous pulse generation