1. 2 Outline 1.Introduction 2.Modeling 3.Simulation 4.Implementation 5.Demo 6.Conclusion.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Chapter 7 Operational-Amplifier and its Applications
Revision analog electronics
Mechatronics Term Project TEAM 2: Nicole Abaid Matteo Aureli Weiwei Chu Riccardo Romano May 4, 2009.
Lect.2 Modeling in The Frequency Domain Basil Hamed
Weather Station Project Wind Speed Wind Direction Temperature Light/Dark Sensor 1.
Control of a Ball & Plate System Andrew Percy Academic Supervisor – James Welsh.
ME 6405 Introduction to Mechatronics Operational Amplifiers Chris Nygren Matt Livianu Brad Schwagler.
Chapter 1 Quick review over Electronics and Electric Components Prepared By : Elec Solv.
Lecture 2 Basic Circuit Laws
DC motor model ETEC6419. Motors of Models There are many different models of DC motors that use differential equations. During this set of slides we will.
ME 270 Final Project Presentation Operational Amplifiers.
Lect.2 Modeling in The Frequency Domain Basil Hamed
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Nise/Control Systems Engineering, 3/e
Rd 3 - Electronics 1.Ohm’s Law 2.Potential Divider 3.Resistor in Series and Parallel - Application of Ohm’s Law 4. Switches and Relay.
Rd 3 - Electronics 1.Ohm’s Law 2.Potential Divider 3.Resistor in Series and Parallel - Application of Ohm’s Law 4. Operational Amplifier (Comparator and.
A Mathematical Analysis of a Sun Tracking Circuit for Photovoltaic Systems Dr. S. Louvros and Prof. S. Kaplanis T.E.I. of Patra, Greece.
MAE156A October 12, 2006 UCSD H. Ali Razavi.  Electric voltage is similar to height difference: - Electrons start moving under voltage difference - Unless.
Ch. 6 Single Variable Control
INTRODUCTION TO CONTROL SYSTEMS
1 L Fall 2003 – Introductory Digital Systems Laboratory Motors and Position Determination.
Lec 3. System Modeling Transfer Function Model
ECE 194 S’01 Introduction to Engineering II Arizona State University 1 The operational amplifier, cont.  Has a multitude of circuit applications  Linear.
Control Engineering Lecture #2 Lecture #2 9 th Sep, th Sep,2009.
ELG 4152 :Modern Control Winter 2007 Printer Belt Drive Design Presented to : Prof: Dr.R.Habash TA: Wei Yang Presented by: Alaa Farhat Mohammed Al-Hashmi.
ME 335 Boğaziçi University A Study on Motor Speed Control.
Module 2: Series DC Circuits. RecapRecap Do you still recall these?
Introduction 2 Electrical Design
Feedback Control Systems (FCS)
Session 6 - Sensor Modelling
Chapter 1 Introduction to Electronics
Lecture 4: Electrical Circuits
Lecture 3: Dynamic Models Spring: stores energy Damper: dissipates energy.
Feedback Control system
Final Exam M.Eng. Amjad Elshenawy RTECS Gc(s)Gc(s) Gc(s)Gc(s) Controller   n sensor noise  w load disturbance  Gp(s)Gp(s) Gp(s)Gp(s) Plant.
Introduction to Biped Walking
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
Determine the mathematical models that capture the behavior of an electrical system 1.Elements making up an electrical system 2.First-principles modeling.
DC Motor Speed Modeling in Simulink
Newton’s 2nd Law: Translational Motion
SE201: Introduction to Systems Engineering Mathematical Modeling.
Lecture 9: Modeling Electromechanical Systems 1.Finish purely electrical systems Modeling in the Laplace domain Loading of cascaded elements 2.Modeling.
Figure 2. 1 a. Block diagram representation of a system; b
Lecture 3: Dynamic Models
18240 Element two - Components INPUTS OUTPUTS PURPOSE TYPICAL USE.
The Laplace Transform.
Feedback Control Systems (FCS) Dr. Imtiaz Hussain URL :
PHYSICS – Electric circuits
ROBOTICS 01PEEQW Basilio Bona DAUIN – Politecnico di Torino.
자동제어공학 2. 물리적 시스템의 전달함수 정 우 용.
Chapter 2 Modeling in the frequency domain
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Sensors and Actuators Simple Sensors Switches and Pots Other Sensors Simple Actuators LEDs and Buzzers DC Motors MAE 156A.
Mathematical Models of Physical Systems
5. Modeling of Electrical Systems
ME375 Handouts - Spring 2002ME375-Fall 2002
Potential Divider Aims What is a potential divider
Modeling in the Frequency Domain
Quanser Rotary Family Experiments
The Transfer Function.
Direct Current Circuits
Motors and Position Determination
Chapter 5 OUTLINE Op-Amp from 2-Port Blocks
. Modeling OBJECTIVE Revision on Laplace transform
INTRODUCTION TO CONTROL SYSTEMS
Chapter 3 Modeling in the Time Domain
Chapter 2 Modeling in the Frequency Domain
Chris Leonard and Baylor Howard Advisor: Dr. Jing Wang
Lecture 2 Electrical and Electronics Circuits. After you study, and apply ideas in this Lecture, you will: Understand differences among resistance, capacitance,
Presentation transcript:

1

2 Outline 1.Introduction 2.Modeling 3.Simulation 4.Implementation 5.Demo 6.Conclusion

3 Outline 1.Introduction 2.Modeling 3.Simulation 4.Implementation 5.Demo 6.Conclusion

4 Introduction Rotating arm and inverted pendulum. Rotating arm is actuated by a DC motor. The angular disturbance will be sensed by the potentiometer. l1l1 length from the center of rotating arm to the pendulum. l2l2 length of the inverted pendulum. m1m1 mass of the rotating arm. m2m2 mass of the inverted pendulum. α The angular displacement of the rotating arm rotated. θ The angular displacement of the inverted pendulum. linear velocity of the mass center of the inverted pendulum.

5 Introduction The system is controlled by a PID control circuit. Two equilibrium points existed. Use a cut-off device to protect the system.

6 Outline 1.Introduction 2.Modeling Find the transfer function of input voltage and the angle of inversed pendulum. –Equation of motion. –Linearization –Laplace transform –Transfer function 3.Simulationment 4.Implementation 5.Demo 6.Conclusion

7 Modeling -Equation of motion Step 1 : Find the equation of motion by Lagrange equation

8 Modeling -Equation of motion

9 Step 2 : Linearization –To do the linearization, we have to find the equilibrium points first. –Find the position where the extreme value of the potential energy exist. Modeling -Linearization

10 In this case, we set the equilibrium point at θ=0° Expand the nonlinear terms in Taylor series. Modeling -Linearization

11 System modeling -Linearization If the angle of disturbance is 5°, the max. error between linear and nonlinear model is 0.046°, less then 1%.

12 Step 3 : Laplace transform of the motion equations System modeling -Laplace transform

13 System modeling -Transfer function Step 4 : Find the transfer function of a DC motor According to Kirchhoff’s voltage law (KVL) Where is the voltage of coil is the induced voltage of the motor is the torque generate by motor Equivalent circuit of a DC motor

14 System modeling -Transfer function Step 5 : Transfer function of the system

15 SymbolValueUnit 0.10m 0.32m Kg 0.046Kg 9.81m/s e-5Kgm e-4Kgm e-4Kgm 2 Modeling -Transfer function Set the values we need SymbolValueUnit 1Ω 0.03 Assume the values we need but we don’t know Ref. : Stephen J. Chapman “Electric Machinery Fundamentals” Chap. 9 McGraw. Hill

16 Modeling -Transfer function Transfer function.

17 Modeling -Transfer function Unit step command test

18 Modeling -Transfer function Command unit step and disturbance is zero to check transfer function.

19 Modeling –Routh-Hurwitz Stability Using Routh-Hurwitz stability to find the stable range of the gain of PID or PD controller.

20 Modeling -Reference S. Awtar, N. king, T. Allen, I. Bang, M, Hagan, D.Skidmore, K. Craig, “Inverted pendulum systems: rotary and arm-driven- a mechatronic system design case study.” Mechatronic 12 (2002) Y. Yavin, “Control of a Rotary Inverted Pendulum.” Applied Mathematics Letters 12 (1999)

21 Outline 1.Introduction 2.Modeling 3.Simulation –Open loop –PD controller –PI controller –PID controller 4.Implementation 5.Demo 6.Conclusion

22 Simulation Use SimMechanics to build a nonlinear system model

23 Simulation Use Simulink to build a nonlinear system model

24 Simulation Use Simulink to build a linear system model

25 。 Simulation –open loop (angular V)

26 Simulation -PD controller

27 Simulation -PD controller

28 Simulation -PD controller Response simulation. (PD controller) Absolute error between the simulation of SimMechanics and Simulink.

29 Simulation -PI controller

30 Simulation -PI controller

31 Simulation -PI controller Response simulation. (PI controller) Absolute error between the simulation of SimMechanics and Simulink.

32 Simulation -PID controller

33 Simulation -PID controller

34 Simulation -PID controller Response simulation. (PID controller) Absolute error between the simulation of SimMechanics and Simulink.

35 Outline System introduction System modeling Simulation Implementation –Inversed pendulum –Control circuit Demo Conclusion

36 Implementation System block diagram

37 The length and mass of pendulum: 32 cm and 28.41g The length and mass of rotating arm: 10 cm and 46 g Gear ratio: 5 Implementation - Inversed pendulum

38 Implementation -Control circuit Circuit block diagram

39 Implementation -Control circuit PID controller Power amplifier Cut-off circuit Power supply II On/Off Sensor Signal light Limit switch Motor Circuit board Power supply I

40 Implementation -Potentiometer Use a variable resistor as a potentiometer. Inverted pendulum Potentiometer

41 Implementation - Potentiometer How does it work?

42 Implementation -PID controller Use operational amplifier Modes switch Elements shiftable PID controller

43 Implementation -PID controller

44 Implementation -Cut-off circuit, signal light NPN transistor Relay 5V 2 Form C Contact 500 ohm resistances Resistance with signal light 7404 NOT 7408 AND

45 Implementation -Cut-off circuit, signal light

46 Implementation -Power amplifier NPN TIP41 NPN TIP107 Diode

47 Implementation Why we use two power supply? The DC motor turns on, the voltage of power supply drops. Input : triangular ±200mV;2Hz Output : DC power supply +15V port The DC motor use the power from +15V port normal

48 Outline 1.Introduction 2.Modeling 3.Simulation 4.Implementation 5.Demo 6.Conclusion

49 Demo -PD controller Steady state error exist

50 Steady state error is zero Demo -PID controller

51 Outline 1.Introduction 2.Modeling 3.Simulation 4.Accomplishment 5.Demo 6.Conclusion

52 Conclusion We use different ways to model the system by MATLAB. For a small disturbance, linearized model is reliable. The rotary inverted pendulum can be controlled by a PID controller. I controller can eliminate the steady state error.