Top Banner
Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh Presented By Daniel M. Lofaro
21

Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Jun 07, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul OhPresented By Daniel M. Lofaro

Page 2: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Overview

Getting people excited about controls Attract new talent to the field Retain students

2

Page 3: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Overview

Issues with Control Systems Courses Fear of too much math Lack of accessible hands on learning Teaching techniques antiquated

3

Page 4: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Proposed Class Real World Design

Required task Required performance Budget

Real World (Pre-existing) Tools CAD Control/Simulation Software Hardware

Control System Low Cost Small Modifiable

4

Page 5: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Quanser Control Solutions The Good

Accurate Well Designed Compatible with Matlab, Simulink and LabVIEW

The Bad Large Expensive Black Box Un-Modifiable

5

Page 6: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Modifiable Control System(Lego NXT)

The Good Inexpensive (Commercial Product) Powerful Arm7 Processor Compatible with Matlab, Simulink and

LabVIEW Small Reconfigurable Open Source

The Bad Not as accurate as Quanser

6

Page 7: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

• Hardware design (MLCAD)

• Software tutorial• Sensor integration• Virtual Reality model

Design

• Dynamic model• Control theory• MATLAB• Simulink

Simulation• Construction• Programming• LEGO

MINDSTORMS NXT

Experimentation

Class Outline

7

• Hardware design (Lego CAD)

• Itemized parts list• Virtual Reality Model

Design

• Dynamic model• Control theory• MATLAB• Simulink

Simulation• Construction• Programming (Simulink

– ECRobot) [1]• LEGO MINDSTORMS

NXT

Prototype and Experimentation

Page 8: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Class WILL Work If:

Pre-Existing Tools Exist Lego CAD ECRobot MATLAB/Simulink

Reconfigurable Platform Exits Lego NXT Kit

IF ANY DOES NOT EXIST WILL NOT WORK

8

Page 9: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

9

Page 10: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Case Study

Objective Make a two (2) wheeled balancing robot Minimum forward speed 0.1m/s Minimum turning speed π/4 rad/sec Minimum floor angle ±15o

10Segway [7]

Page 11: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Case Study: Design

11

Page 12: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Case Study: Simulation and Test

PID Balance Control Minimizes angular

pitch rate Gains manually tuned to

balance, peak between ±15º & 2 sec. settling time

Difficult to tune Moving average to

smooth calculation

120 2 4 6 8 10 12 14 16 18 20

-20

-15

-10

-5

0

5

10

15

20

Time [sec]

Pitc

h A

ngle

, θp [d

eg]

SimulationExperimental

Page 13: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Case Study: Simulation and Test

State Variable Feedback State feedback control using

linear quadratic regulator Weight matrices Q & R are

manually tuned Emphasis on wheel angle

and pitch angle

13

0 2 4 6 8 10 12 14 16 18 20

-10

-5

0

5

10

Time [sec]

Pitc

h A

ngle

, θp [d

eg]

SimulationExperimental

Page 14: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Case Study: Simulation and Test

14

Page 15: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Recap Class Designed to be

Fun Interactive Educational

Uses Pre-Existing Tools Lego NXT Lego CAD MATLAB/Simulink

Use Reconfigurable Small Low Cost Used for Multiple Design Problems

15

Page 16: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

References1. Yamamoto, Yorihisa: NXTway-GS Model-Based Design – Control of self-

balancing two-wheeled robot built with LEGO Mindstorm NXT. First Edition, 29 February 2008.

2. Nise, Norman S.: Control Systems Engineering Fourth Edition. John Wiley and Sons INC, 2004

3. Lofaro, Daniel M.: Control Design to Reduce the Effects of Torsional Resonance in Coupled Systems. Master’s Thesis, Drexel University Department of Electrical and Computer Engineering, May 2008.

4. Kwatny, Harry G. Blankenship Gilmer L. Nonlinear Control and Analytical Mechanics A Computational Approach. Birkhauser, Boston 2000.

5. Erkkinen, Tom: Embedded Coder Robot NXT Demo. Updated 18 December 2008 http://www.mathworks.com/matlabcentral/fileexchange/13399

6. Yamamoto, Yorihisa: NXTway-GS Model-Based Design – Control of self-balancing two-wheeled robot built with LEGO Mindstorm NXT. First Edition, 29 February 2008.

7. Le, Tony: NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel University Department of Electrical and Computer Engineering, May 2008.

8. Greenwood, Donald T.: Principles Of Dynamics Second Edition. Prentice Hall, Upper Saddle River, New Jersey 1988.

9. Le Tony, Oh Paul: IDETC Presentation: System Integration Case Study: NXT-WhIP NXT Wheeled Inverted Pendulum. New York City, NY, 2008-04-08.

16

Page 17: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

17

Page 18: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Motor Controller Motor Controller

Friction Compensator Rotation, kδ’

Wheel sync, ksync

Motor velocity, kϕ’

Worked to balance, rotate, and keep wheels synchronized

18

Page 19: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Motor Model Motors represented as rigid body Electrical & mechanical constants determined by

Hurbain & Watanabe trusted and validated

19

Page 20: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

Prototype and Simulation

MathWorks’ MATLAB Simulink ECRobot NXT

20

Page 21: Daniel M. Lofaro, Tony Truong Giang Le, Dr. Paul Oh ... › ... › files › Ballancing_Bot_FIRA2009_Presenta… · NXT-WhIP: NXT Wheeled Inverted Pendulum. Master’s Thesis, Drexel

21