Sensing and Control.

Slides:



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

DYNAMIC ELECTRICITY.
Electric Circuits Notes
…the movement of charge between varying locations and the corresponding loss and gain of energy which accompanies this movement. Unit 4 - Electric Circuits…
DC Choppers 1 Prof. T.K. Anantha Kumar, E&E Dept., MSRIT
Dr. Andreas Kunz © 10/2004 inspire icvr BASICS OF ELECTRONICS.
Interactive Engineering Workshop Eng. Mageda Al-Moubarak Eng. Fadia El-ssa.
Unit 3 Simple Circuits. Electric current Voltage produces a flow of charge, or current, within a conductor. The flow is restrained by the resistance it.
Copyright by UNIT III DC Choppers 4/17/2017 Copyright by
بسم الله الرحمن الرحيم FCI.
Digital I/O Connecting to the Outside World
Module 2: Hardware and Terminology
Electrical Electricity Fuses Relays Solenoids Electrical Testing
Electricity Foundations of Physics. Electricity The movement of charge from one place to another Requires energy to move the charge Also requires conductors.
Current and Resistance
Copyright © 2008 Pearson Education, Inc., publishing as Pearson Addison-Wesley Electricity Physics 102 Goderya Chapter(s): 22 and 23 Learning Outcomes:
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.
Resistance in Electrical Systems
Electrical Resistance and Ohm’s Law. The Electric Current  Electric current is a measure of the rate at which electric charges move past a given point.
Electricity and Electrical Circuits. Chapter Sections O 1 - Electrical Circuits O 2 - Current and Voltage O 3 - Resistance and Ohm’s Law.
Circuits & Electronics
Vern J. Ostdiek Donald J. Bord Chapter 7 Electricity (Section 4)
SPH3U/SPH4C Findlay ELECTRIC CIRCUITS Students will: Solve problems involving current, charge and time. Solve problems relating potential difference to.
Electrical Energy - Moving electrons in a path is electricity
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
4.3 Notes Resistance in Electrical Systems. Properties of Materials Conductors Have a large ability to conduct electric current They contain many free.
Do Now Describe what you think happens electrically when you dim a light.
Ohm’s Law + - R E I E = I * R I = E / R R = E / I E = Voltage I = Current R = Resistance.
Chapter 31 Faraday’s Law.
Electric Current Electrical current is the flow of electrons. Unlike static electricity, charges are in motion. Two types of Current I. Direct current.
CURRENT ELECTRICITY Characteristics of Current Electricity.
Circuits and Ohm’s Law Objectives: 1. Gain an understanding of Ohm’s Law. 2. Compare and contrast the movement of current through a series and parallel.
Electric Circuit Charges in Motion OCHS Physics Ms. Henry.
Electric Current and Ohms Law. Electric Current The continuous flow of electric charge –The two types of current are direct current (DC) and alternating.
CHAPTER TWO CONTINUED. VOLTAGE Electrical pressure or potential The Electromotive force that causes the movement of electons Electrical pressure is measured.
Servos The material presented is taken from a variety of sources including:
Analog to Digital Converter David Wallace English 314.
The Control of Electricity in Circuits
Electrical Resistance University High School. Conductors Possess a great ability of conducting electricity Contain free electrons that flow easily through.
Electrical Current and Circuits How Electricity Gets To Where It Is Going.
Lectures 7 to 10 The Electric Current and the resistance Electric current and Ohm’s law The Electromotive Force and Internal Resistance Electrical energy.
Electricity Sections 2 and 3. Electric Energy Cells/Batteries - Cell - device that produces an electrical current by converting chemical energy into electrical.
Series and Parallel Circuits. Series Circuits ► Are the simplest type of circuits. ► Series circuits – all the components (lamps, cells, switches, etc.)
Electronics for Physical Computing Materials: capacitor, diode, LED, transistor, switch,resistor, relay, proto board, multimeter.
Electricity and Circuit. Types of Electricity Static Electricity – no motion of free charges Current Electricity – motion of free charges – Direct Current.
SIMPLE CIRCUITS. DC CIRCUITS DC cicuits include a power supply, one or more load devices that convert electrical energy into another type of energy, and.
The flow of charged particles charged particles ; through a conducting metal.
UNIT III DC Choppers.
Chapter Electromechanical Systems 6. Chapter Electromechanical Systems 6.
Ohms Law, current electricity, series circuits
Electricity on the Move
Introduction to Servos
Electricity and Circuit
Introduction to circuits, Coulomb Law.
through a conducting metal
Do Now: Why does current not come from a battery? Explain.
DC MOTOR SPEED CONTROL 1. Introduction
Control a motors angular position with a flex sensor
Integrated Science C Mrs. Brostrom
Electricity.
Characteristics of Current Electricity
Chapter 7 section 2 Electric Current
Electric Circuits 20.3.
Sensors and actuators Sensors Resistive sensors
Electrical Current & Circuits
Ohm’s Law and Circuit Basics
Ohm’s Law & Circuits Chapter 7.2 & 7.3.
Current and Simple Circuits Voltage Resistance Safety
Electric Circuits.
Delivered by Mr. Rajitha de Silva Courtesy Ms. Shashika Lokuliyana.
Presentation transcript:

Sensing and Control

Digital or Analog Digital or Analog

Digital Input: The interface device can detect a simple change in an electrical voltage level.  That is, it can detect if a switch is on or off.   Digital Output: The interface device can change an electrical signal to on or off and therefore turn on motors, lights, etc.

Analog Input: The interface device can detect a continuously changing electrical voltage coming from sensors which may be responding to changing parameters such as light, sound, liquid levels in tanks, etc. The changing voltage levels are changed to digital numbers to be manipulated and stored in the computer. ( done by ADC)   Analog Output: The interface device can take a series of stored digital numbers and change them into a varying electrical voltage. This voltage can be used to control an external device. (done by DAC)

The Simplest Circuit The simplest circuit consists of: A source of electrical current A conducting path A control element (Switch) Something that converts electrical energy to some other form of energy (called a load resistance) See Mims, pp 14,18-25

There are a number of electrical parameters (measurements) that are of importance. The 3 most basic are: Electric Potential Difference - measured in Volts Electric Current - measured in Amperes Resistance - measured in Ohms

Electric Potential Difference can be very loosely defined as the “electric pressure” which forces electric current through a conductor Electric Current is the flow of electric charge through a conductor in a unit of time Resistance is the opposition to the flow of current through the conductor

1/Rt = 1/R1 + 1/R2…(parallel) The relationship is expressed as Ohm’s Law V= I * R Rt = R1 + R2…. (series) 1/Rt = 1/R1 + 1/R2…(parallel)

Pulse Width Modulation

DC motors are often run at a constant speed. Other uses require variable speed. One of the most efficient methods of DC motor speed control is called Pulse Width Modulation

Pulses are simply on/off voltages. The length of time the voltage in on is the pulse width.

Cycle: a single pulse Period: Time to complete one cycle Duty Cycle: time on/length of cycle Frequency: number of cycles per second

PhidgetLVMotor Controller Two independent low-voltage terminal blocks Uses PWM for motor control 65 pulse steps (Code allows -100 to 100) Frequency: 2.5KHz Lamp – Brightness DC Motor - Torque

Servo Motors

Servos do not have a continuous supply of voltage given to them Servos do not have a continuous supply of voltage given to them. Instead, they are supplied with electricity using Pulse Width Modulation. What does this mean?? There are a series of pulses sent to the motor controller which judges how much you want the motor to turn and this causes the shaft to turn that amount.

Servo Motor Control The DC motor is connected to a set of gears which reduces speed and increases torque or the force of the turn. There is a control circuit which controls how much the motor turns. The position sensor is a variable resistor or potentiometer which is responsible for sensing the position of the motor.

Servo Motor Control The position of the motor is monitored by the potentiometer sensor. If the motor is not in the position as sent by the external servo controller, the internal control circuit causes the motor to turn until it is. When the motor is in the correct position, the sensor signals the control circuit to turn the motor off. The process of the sensor sending information to the control electronics which turns the motor which turns the sensor is called feedback or a closed loop control circuit. How does the potentiometer sensor know when the motor is in the correct position??

Servo Motor Control Each position of the servo is referenced by an internal control circuit pulse. 0 degrees is 1ms, 90 degrees is 1.5 ms and 180 degrees is 2 ms. When the external pulse is issued by the controller, it is issued in milliseconds as well. The internal circuit compares the external pulse to the internal and starts turning the motor. As the motor turns, the internal pulse changes relative to the position. When the difference in the two pulses is zero, the motor will stop turning. The difference in pulses is called the error signal. If the incoming pulse is greater than the internal pulse, it turns in the clockwise. If it is smaller, it turns counter-clockwise.

Referencing the Phidgets Install the Phidget Library on the computer Before you can use Phidget code in Visual Basic the library must be referenced Open the Project menu and select References.  Scroll down and select Phidget Library by clicking the check box.

Declaring the Phidgets In General...Declarations enter the following code: Dim WithEvents MyPhidgetName As PhidgetDevice Note: MyPhidgetName is called an instance of the class of objects called PhidgetDevice You can use any name as long as it is not a Visual Basic reserved word.

Opening the Phidget Code the Form_Load procedure: Set MyPhidgetName = New PhidgetDevice Call MyPhidgetName.Open(True, -1) Call MyPhidgetName.Open

Servo Motor Control Phidget Code Example Assuming the Phidget library is installed and referenced in this Visual Basic application. Declare a variable of PhidgetServo type: Dim WithEvents Servo As PhidgetServo We then have to instantiate that servo instance when we load our form: Set Servo = New PhidgetServo Call Servo.Open(True, xxxx) The Servo instance now exists and has a set of member functions which can be accessed using dot notation. One of these member functions is called MotorPosition( n ) and is accessed by placing the dot between the instance of Servo and the member function. Servo.MotorPosition (n) The (n) is an index which represents which of the motors we are controlling at any given time. The servo controller can control up to four motors. The first is powered by the +5 v supplied by the USB cable. The other three are powered by the power supply attached to the device. Each device is independent of the other and can be assigned a degree value between 0 and 180.