pid control for a self balancing robotreu.cct.lsu.edu/documents/2018-presentations/hernandez.pdf•...
TRANSCRIPT
PID CONTROL FOR A SELF BALANCING ROBOT
STEPHANIE B. HERNANDEZ (CCT REU)
MENTOR: DR. MAYANK TYAGI
MOTIVATION AND RESEARCH PROBLEM STATEMENT
Observation of Daniel Schmidt et al’s Bench Scale
Model
Variety of uses in industrial settings
WHAT IS PID?
PID consists of three parts working in unison to correct error in a system to user defined settings
• Proportional
• Thinks of the present and attempts to reduce the magnitude of error
• Integral
• Thinks of the past and attempts to reduce the steady state error left over by the proportional part
• Derivative
• Tries to predict the future and acts against the proportional and integral parts of the controller to prevent overshooting
RESEARCHBench Scale Model
• Recap: Slug flow phenomena is a flow regime in which large pockets of air are followed by dense liquid ‘slugs’.
• Uses PID to control actuator for valve
• Purpose: to control back pressure in order to mitigate slugging effect which can compromise system integrity.
Inverted Pendulum On Cart
• Basis for self balancing robot
• A force u moves the cart in a direction x
• The goal of this model is for theta to equal 0.
CREATION•Arduino UNO
•MPU6050 6DOF
•H-Bridge
•Open Source Code through Arduino IDE and libraries
1
2
4
3
5
EXPERIMENTAL SETUP
x
𝜃
Simple set up to perform quantitative analysis of PID adjustments. The readings will come from velocity which will be calculated based on wheel rotations, distance traveled, and time. Angles will be determined from Marker 1
Timer
Bot angle
Movement
CONCLUSION/FUTURE
• Learned about PID control theory
• Learned about programming microcontrollers
• Built functioning model
• Successful demonstration
Discussion
• Quantitative data analysis
• Graphing data directly from Arduino and MPU6050
• Parametric study – bot’s balance affected by surface types
Future
”
“
QUESTIONS?
WORK SUPPORTED BY THE NATIONAL SCIENCE FOUNDATION (NSF) AWARD #ACI-1560410 AND THE
CENTER FOR COMPUTATION &TECHNOLOGY AT LOUISIANA STATE UNIVERSITY
REFERENCES
1. Inverted Pendulum on a Cart, Brunton, Steven, University of Washington, 29 Jan. 2017.
2. Classic Inverted Pendulum – Equations of Motion, Coller, Brianno, Youtube, 2015.
3. Schmidt, Daniel S., et al. Bench Scale Experimental Study of Slug Flow Phenomena Using PID Control.
4. How to Make a Balancing Robot at Home, Dahake, Tarun K., YouTube, 10 June 2018.
5. “Fritzing.” Fritzing, 0.9.3b, University of Applied Science Potsdam, fritzing.org.
6. “Arduino.” Arduino.cc, 1.8.5, Arduino.
7. Sanjeev, Arvind. “How to Interface Arduino and MPU6050 Sensor.” Maker Pro, EETechMedia LLC.
8. F. Di Meglio, G.-O Kaasa and N. Petit, “A first principle model for multiphase slugging flow in vertical risers,” Conference on Decision Control, 2009
9. 12Cdevlib-MPU6050, Rowberg, Jeff, 25 Apr. 2018.