SlideShare a Scribd company logo
1 of 28
Download to read offline
BITS Pilani
Pilani Campus
BITS Pilani
Pilani Campus
NAME(ID) : Rishabh Jain - ( 2018A8PS0430P )
Akshit Patel - ( 2018A8PS0094P )
Jash Shah - ( 2018A8PS0507P )
Balancing a Segway robot using LQR controller
based on genetic and bacteria foraging
optimization algorithms
Date: 14 April 2021
BITS Pilani, Pilani Campus
Aim
Our aim of the project is to design optimal control
of the segway robot using lqr and soft computing
optimization techniques like genetic algorithm
and bacteria foraging algorithm.
BITS Pilani, Pilani Campus
Introduction
The Segway robot is an electric, two-wheeled self-balancing human transporter with a
computer-controlled gyroscopic stabilization and control system.The mathematical model of the
system dynamics is derived and then state-space formulation for the system is presented to enable
the design of a state feedback controller scheme. In this research, an optimal control system based
on the linear quadratic regulator (LQR) technique is proposed to stabilize the mobile robot.Two
tuning methods, genetic algorithm (GA) and bacteria foraging optimization algorithm (BFOA) are
used to obtain optimal values for controller parameters.
BITS Pilani, Pilani Campus
Description of the Robot
The Segway is an extraordinary robot
with very little input constraint and a
high degree of freedom. This makes
it very convenient and fast for use
even for even law enforcement. A
good amount of control is required to
balance the vehicle as it is a
combination of a Unicycle and an
Inverted Pendulum. It now
becomes very intuitive that the
inverted pendulum needs to be
balanced
BITS Pilani, Pilani Campus
Modelling of Segway Robot
State Space Equation
where,
where,
BITS Pilani, Pilani Campus
Methodology
BITS Pilani, Pilani Campus
The Linear Quadratic Regulator (LQR) is
a well-known method that provides
optimally controlled feedback gains to
enable the closed-loop stable and high
performance design of systems.The LQR
algorithm reduces the amount of work
done by the control systems engineer to
optimize the controller.The LQR algorithm
is essentially an automated way of finding
an appropriate state-feedback controller.
LQR
BITS Pilani, Pilani Campus
Genetic algorithm is a method
based on reproduction of DNA in
various generations in living
beings. We try to simulate the
process for finding an optimized
solution.The pseudo code for the
process is shown in the figure.
Genetic Algorithm
BITS Pilani, Pilani Campus
BFOA
Forging strategies are methods for
locating, handling, and ingesting
food. This method favours those
bacterias that have successful
foraging strategies or the bacterias
with enough food s.t they can
reproduce.After many generations,
poor foraging strategies are either
eliminated or shaped into good
ones i.e. redesigned.
BITS Pilani, Pilani Campus
Fitness Function
Fitness function in the paper has not been defined properly, first, we took fitness function to be
variation from desired values which is mentioned in the paper but as rising time and settling time
were not varying much with each population, only small changes in overshoot we directly added
all three values which seemed to provide better results. So our fitness function was the addition of
rising time, settling time, and overshoot of position vs time graph in each iteration.
Fitness Function = |Rise Time| + |Settling Time| + |Overshoot |
BITS Pilani, Pilani Campus
MATLAB Simulation
Model Used for Simulation
BITS Pilani, Pilani Campus
Population Size = 15
Generation = 10
Best Q Obtained =
q11=7.056311630519287
q22=0.040608399663108
q33=0.150562417774016
q44=0.030452791998497
Best R obtained = 0.000016648572929
K = 1.0e+02 *[-6.510290527654438 -3.928285136135124 -5.775516991619111 -0.891476241249279]
Genetic LQR Parameters
BITS Pilani, Pilani Campus
GA graphs(step response vs amplitude)
Position vs Time for GA LQR Angle vs Time for GA LQR
BITS Pilani, Pilani Campus
GA graph(Voltage and Time)
BITS Pilani, Pilani Campus
GA graph(position and angle vs time
from SimuLink)
BITS Pilani, Pilani Campus
GA graph(q values vs iteration)
BITS Pilani, Pilani Campus
GA graph (r vs iteration)
BITS Pilani, Pilani Campus
Fitness Function = Rise Time + Settling Time + Overshoot
Number of elimination and dispersal steps (Ne)=10;
Reproductive Steps (Nr)=10;
Chemotactic Steps (Nc)=10;
Population Size (Np)=5;
Swim Steps (Ns)=8;
Swarm Size (D)=5;
Probability of elimination (Ped)=0.9;
The run-length unit i.e., the chemotactic step size during each run or tumble (C)=0.01;
Fitness Function Value = 2.170198213995942
Value of Q and R obtained =
[q11 q22 q33 q44 R] = [ q = [72471.87066219141 -0490.898006878771 -04750.45905426314 -05.18027662623499 0.401824162185799];]
Value of K obtained from it =
1.0e+02 * [-4.246847946535302 -2.057666744004326 -2.923004678200982 -0.430108120238977 ]
BFO Parameters
BITS Pilani, Pilani Campus
BFO Graphs(voltage vs time)
BITS Pilani, Pilani Campus
BFO graph (position vs graph)
Position vs Time for BFO LQR Angle vs Time for BFO LQR
BITS Pilani, Pilani Campus
BFO graph(Position and angle vs time)
BITS Pilani, Pilani Campus
Some points on original results
a) Value of Q,R,K mentioned in the paper for GA optimization
[q11 q22 q33 q44 R] = [8.969 0.308 0.121 0.0085 2.123*10−5]
K = [-6.4988 -3.8592 -5.1982 -0.7348]
But according to the values of Q and R following K should be obtained which provides correct results
K = 1.0e+02 * [-6.499755421319758 -3.859528575379667 -5.198431774768298 -0.734822500368363]
b) Value of Q and R mentioned in paper for BFO algorithm is following
[q11 q22 q33 q44 R] = [289.104 -5.15e-5 -5e-5 -5.1e-5 0.00028]
K = [-1022 -260.2 886.72 77.7]
But according to the values mentioned of Q and R value of K should be,
K = 1.0e03 *[-1.016127101161195 -0.462096381004273 -0.527358592608302 -0.072462682693461]
In this magnitude is same but signs are different
And according to the values of K found by us results come this which are wrong according to us. Hence BFO is
not providing providing better results according to the values mentioned in the paper
BITS Pilani, Pilani Campus
Cont.
Fig. Variation of Position and Angle according to Q and R values calculated from BFO
BITS Pilani, Pilani Campus
Observations and Discussions
A. GA LQR seems to perform better and requires less computational power. It took around 1
sec for execution of GA and 4min for complete execution of BFO. Therefore the
conclusion obtained by us is different from that mentioned in paper.
B. Also the value of the fitness function for the most optimized result is the same for GA and
BFO whereas that should have been different for both. This is due to the fact that steady
state is not an error and is not included in the fitness function.
C. According to our modelling we simulated the results using both Steady state and Transfer
function models for a state feedback control scheme. This was different from the standard
controller because of the fact that modelling a TF model for such a controller needs heavy
mathematical manipulations.
BITS Pilani, Pilani Campus
Learnings
A. For our model, we incorporated a deviational set-point scheme ( not present in paper ) and
provided it with a step input to see the results. The graphs were obtained as expected after
mathematical manipulations and tunings.
B. We also tried using an animation model, made by Columbia University professors, into our model
to see the results of the segway model. But, we could not get the running animation, but only the
final figure :
BITS Pilani, Pilani Campus
Conclusions.
● In this work, an optimal linear control system was adopted to balance a
Segway two-wheeled mobile robot.
● First state space model of the plant was derived and the model was simulated both in
MATLAB and SIMULINK for a step input to position.
● To improve the results for LQR two biologically inspired algorithms were
implemented, GA and BFO, to find optimal value of Q and R.
● According to the obtained results it was found that GA LQR had better performance
than BFO. Though the mentioned conclusion is different from one that is mentioned in
the paper but values provided by them also provides simulation results similar to that
done by us.
BITS Pilani, Pilani Campus
Future Scope
● The developed model is a baseline for many other research works. The use of a simple inverted pendulum controller scheme has been
extended to our model. We have not incorporated the turning scenario which would involve non-uniform voltage inputs to both the wheels.
● We have only used a state-feedback LQR for tuning the controller gains. Instead many other controllers like PID and its variants( like Fuzzy
and FOPID) could be used. Even a simple Q-learning based approach could also be incorporated.
● Similarly, for tuning the controller parameters, we could have used any other data-based( DL) and data-free methods. We had planned to use
PSO and ACO along with BFO and GA, but were not able to complete it on time.
● Further, the distance-speed graphs obtained can be sampled and provided to any navigation algorithm using Artificial Potential field and be
used for autonomous navigation of the segway. This hardware model can be easily applied to any microcontroller.
● State estimation Kalman filters could have been used to find the accurate values of the output variables, and this could have made the model
more robust and real-world. In our output graphs, we do not see ripples, which would have been manifested by using state estimation filter.
BITS Pilani, Pilani Campus
Thank
You

More Related Content

What's hot

Two wheeled self balancing robot for autonomous navigation
Two wheeled self balancing robot for autonomous navigationTwo wheeled self balancing robot for autonomous navigation
Two wheeled self balancing robot for autonomous navigationIAEME Publication
 
Pick & place robot ppt
Pick & place robot pptPick & place robot ppt
Pick & place robot pptRahul Banerjee
 
MARK ROBOTIC ARM.ppt
MARK ROBOTIC ARM.pptMARK ROBOTIC ARM.ppt
MARK ROBOTIC ARM.pptAfstddrrdv
 
Internship report on AI , ML & IIOT and project responses
Internship report on AI , ML & IIOT and project responsesInternship report on AI , ML & IIOT and project responses
Internship report on AI , ML & IIOT and project responsesRakesh Arigela
 
Smart wheel chair based on voice recognition for handicapped
Smart wheel chair based on voice recognition for handicappedSmart wheel chair based on voice recognition for handicapped
Smart wheel chair based on voice recognition for handicappedSagar Bayas
 
Cognition in robotics
Cognition in roboticsCognition in robotics
Cognition in roboticsAnkitBirla5
 
PLC Based Paint Mixing Machine
PLC Based Paint Mixing MachinePLC Based Paint Mixing Machine
PLC Based Paint Mixing MachineNikhilesh Vaidya
 
An introduction to Autonomous mobile robots
An introduction to Autonomous mobile robotsAn introduction to Autonomous mobile robots
An introduction to Autonomous mobile robotsZahra Sadeghi
 
Voice Control Car Presentation
Voice Control Car PresentationVoice Control Car Presentation
Voice Control Car PresentationSaurabh Kawli
 
Lecture 10 mobile robot design
Lecture 10 mobile robot designLecture 10 mobile robot design
Lecture 10 mobile robot designVajira Thambawita
 
Intelligent surveillance system
Intelligent surveillance system Intelligent surveillance system
Intelligent surveillance system Abin Titus John
 
Chapter 2 robot kinematics
Chapter 2   robot kinematicsChapter 2   robot kinematics
Chapter 2 robot kinematicsnguyendattdh
 
Robotics ch 4 robot dynamics
Robotics ch 4 robot dynamicsRobotics ch 4 robot dynamics
Robotics ch 4 robot dynamicsCharlton Inao
 
Number plate recognition using matlab
Number plate recognition using matlabNumber plate recognition using matlab
Number plate recognition using matlabAbhishek Sainkar
 
Automatic toll booth
Automatic toll boothAutomatic toll booth
Automatic toll boothramya1591
 

What's hot (20)

Teleoperation
TeleoperationTeleoperation
Teleoperation
 
Two wheeled self balancing robot for autonomous navigation
Two wheeled self balancing robot for autonomous navigationTwo wheeled self balancing robot for autonomous navigation
Two wheeled self balancing robot for autonomous navigation
 
Pick & place robot ppt
Pick & place robot pptPick & place robot ppt
Pick & place robot ppt
 
MARK ROBOTIC ARM.ppt
MARK ROBOTIC ARM.pptMARK ROBOTIC ARM.ppt
MARK ROBOTIC ARM.ppt
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
Internship report on AI , ML & IIOT and project responses
Internship report on AI , ML & IIOT and project responsesInternship report on AI , ML & IIOT and project responses
Internship report on AI , ML & IIOT and project responses
 
Smart wheel chair based on voice recognition for handicapped
Smart wheel chair based on voice recognition for handicappedSmart wheel chair based on voice recognition for handicapped
Smart wheel chair based on voice recognition for handicapped
 
Cognition in robotics
Cognition in roboticsCognition in robotics
Cognition in robotics
 
Robotic Hand
Robotic HandRobotic Hand
Robotic Hand
 
PLC Based Paint Mixing Machine
PLC Based Paint Mixing MachinePLC Based Paint Mixing Machine
PLC Based Paint Mixing Machine
 
An introduction to Autonomous mobile robots
An introduction to Autonomous mobile robotsAn introduction to Autonomous mobile robots
An introduction to Autonomous mobile robots
 
Robo arm final 2 (2)
Robo arm final  2 (2)Robo arm final  2 (2)
Robo arm final 2 (2)
 
Voice Control Car Presentation
Voice Control Car PresentationVoice Control Car Presentation
Voice Control Car Presentation
 
Lecture 10 mobile robot design
Lecture 10 mobile robot designLecture 10 mobile robot design
Lecture 10 mobile robot design
 
Intelligent surveillance system
Intelligent surveillance system Intelligent surveillance system
Intelligent surveillance system
 
Chapter 2 robot kinematics
Chapter 2   robot kinematicsChapter 2   robot kinematics
Chapter 2 robot kinematics
 
Robotics ch 4 robot dynamics
Robotics ch 4 robot dynamicsRobotics ch 4 robot dynamics
Robotics ch 4 robot dynamics
 
Number plate recognition using matlab
Number plate recognition using matlabNumber plate recognition using matlab
Number plate recognition using matlab
 
Pick and place
Pick and placePick and place
Pick and place
 
Automatic toll booth
Automatic toll boothAutomatic toll booth
Automatic toll booth
 

Similar to Autonomous Balancing of 2-wheeled segway robot

Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Editor IJARCET
 
Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Editor IJARCET
 
Design of Linear Plasma Position Controllers with Intelligent Feedback System...
Design of Linear Plasma Position Controllers with Intelligent Feedback System...Design of Linear Plasma Position Controllers with Intelligent Feedback System...
Design of Linear Plasma Position Controllers with Intelligent Feedback System...IJECEIAES
 
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
IRJET-  	  Design & Development of Two-Wheeled Self Balancing RobotIRJET-  	  Design & Development of Two-Wheeled Self Balancing Robot
IRJET- Design & Development of Two-Wheeled Self Balancing RobotIRJET Journal
 
Robust pole placement using firefly algorithm
Robust pole placement using firefly algorithmRobust pole placement using firefly algorithm
Robust pole placement using firefly algorithmIJECEIAES
 
Tuning of Ball and Beam System using Cascade Control
Tuning of Ball and Beam System using Cascade ControlTuning of Ball and Beam System using Cascade Control
Tuning of Ball and Beam System using Cascade ControlDr. Amarjeet Singh
 
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Filip Krikava
 
Design of a new PID controller using predictive functional control optimizati...
Design of a new PID controller using predictive functional control optimizati...Design of a new PID controller using predictive functional control optimizati...
Design of a new PID controller using predictive functional control optimizati...ISA Interchange
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond Brunkow
 
Comparison Analysis of Model Predictive Controller with Classical PID Control...
Comparison Analysis of Model Predictive Controller with Classical PID Control...Comparison Analysis of Model Predictive Controller with Classical PID Control...
Comparison Analysis of Model Predictive Controller with Classical PID Control...ijeei-iaes
 
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...IRJET Journal
 
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...IRJET Journal
 
Simulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulatorSimulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulatorjournalBEEI
 
Fuzzy gain scheduling control apply to an RC Hovercraft
Fuzzy gain scheduling control apply to an RC Hovercraft  Fuzzy gain scheduling control apply to an RC Hovercraft
Fuzzy gain scheduling control apply to an RC Hovercraft IJECEIAES
 
PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...TELKOMNIKA JOURNAL
 
Path tracking control of differential drive mobile robot based on chaotic-bi...
Path tracking control of differential drive mobile robot based  on chaotic-bi...Path tracking control of differential drive mobile robot based  on chaotic-bi...
Path tracking control of differential drive mobile robot based on chaotic-bi...IJECEIAES
 

Similar to Autonomous Balancing of 2-wheeled segway robot (20)

Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138
 
Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138Volume 2-issue-6-2130-2138
Volume 2-issue-6-2130-2138
 
Design of Linear Plasma Position Controllers with Intelligent Feedback System...
Design of Linear Plasma Position Controllers with Intelligent Feedback System...Design of Linear Plasma Position Controllers with Intelligent Feedback System...
Design of Linear Plasma Position Controllers with Intelligent Feedback System...
 
Tuning of PID, SVFB and LQ Controllers Using Genetic Algorithms
Tuning of PID, SVFB and LQ Controllers Using Genetic AlgorithmsTuning of PID, SVFB and LQ Controllers Using Genetic Algorithms
Tuning of PID, SVFB and LQ Controllers Using Genetic Algorithms
 
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
IRJET-  	  Design & Development of Two-Wheeled Self Balancing RobotIRJET-  	  Design & Development of Two-Wheeled Self Balancing Robot
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
 
Robust pole placement using firefly algorithm
Robust pole placement using firefly algorithmRobust pole placement using firefly algorithm
Robust pole placement using firefly algorithm
 
J010316164
J010316164J010316164
J010316164
 
Tuning of Ball and Beam System using Cascade Control
Tuning of Ball and Beam System using Cascade ControlTuning of Ball and Beam System using Cascade Control
Tuning of Ball and Beam System using Cascade Control
 
Fuzzy logic control vs. conventional pid
Fuzzy logic control vs. conventional pidFuzzy logic control vs. conventional pid
Fuzzy logic control vs. conventional pid
 
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
 
Design of a new PID controller using predictive functional control optimizati...
Design of a new PID controller using predictive functional control optimizati...Design of a new PID controller using predictive functional control optimizati...
Design of a new PID controller using predictive functional control optimizati...
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
 
Comparison Analysis of Model Predictive Controller with Classical PID Control...
Comparison Analysis of Model Predictive Controller with Classical PID Control...Comparison Analysis of Model Predictive Controller with Classical PID Control...
Comparison Analysis of Model Predictive Controller with Classical PID Control...
 
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
 
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...
 
Simulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulatorSimulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulator
 
Fuzzy gain scheduling control apply to an RC Hovercraft
Fuzzy gain scheduling control apply to an RC Hovercraft  Fuzzy gain scheduling control apply to an RC Hovercraft
Fuzzy gain scheduling control apply to an RC Hovercraft
 
PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...PID controller for microsatellite yaw-axis attitude control system using ITAE...
PID controller for microsatellite yaw-axis attitude control system using ITAE...
 
Path tracking control of differential drive mobile robot based on chaotic-bi...
Path tracking control of differential drive mobile robot based  on chaotic-bi...Path tracking control of differential drive mobile robot based  on chaotic-bi...
Path tracking control of differential drive mobile robot based on chaotic-bi...
 
sirishfinalpropsal
sirishfinalpropsalsirishfinalpropsal
sirishfinalpropsal
 

More from Jash Shah

Machine Vision on Embedded Hardware
Machine Vision on Embedded HardwareMachine Vision on Embedded Hardware
Machine Vision on Embedded HardwareJash Shah
 
Atlas robotics assignment
Atlas robotics assignmentAtlas robotics assignment
Atlas robotics assignmentJash Shah
 
Blood infusion warmer fuzzy embedded system design latest developments and...
Blood infusion warmer   fuzzy embedded system design  latest developments and...Blood infusion warmer   fuzzy embedded system design  latest developments and...
Blood infusion warmer fuzzy embedded system design latest developments and...Jash Shah
 
Effective Public Speaking
Effective Public SpeakingEffective Public Speaking
Effective Public SpeakingJash Shah
 
Innovative products
Innovative productsInnovative products
Innovative productsJash Shah
 
Cypress T&D analysis
Cypress T&D analysisCypress T&D analysis
Cypress T&D analysisJash Shah
 

More from Jash Shah (6)

Machine Vision on Embedded Hardware
Machine Vision on Embedded HardwareMachine Vision on Embedded Hardware
Machine Vision on Embedded Hardware
 
Atlas robotics assignment
Atlas robotics assignmentAtlas robotics assignment
Atlas robotics assignment
 
Blood infusion warmer fuzzy embedded system design latest developments and...
Blood infusion warmer   fuzzy embedded system design  latest developments and...Blood infusion warmer   fuzzy embedded system design  latest developments and...
Blood infusion warmer fuzzy embedded system design latest developments and...
 
Effective Public Speaking
Effective Public SpeakingEffective Public Speaking
Effective Public Speaking
 
Innovative products
Innovative productsInnovative products
Innovative products
 
Cypress T&D analysis
Cypress T&D analysisCypress T&D analysis
Cypress T&D analysis
 

Recently uploaded

UNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptx
UNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptxUNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptx
UNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptxDineshKumar4165
 
Crash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.pptCrash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.pptVlademirGebDubouzet1
 
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptUNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptDineshKumar4165
 
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kasba 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Roomdivyansh0kumar0
 
GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024AHOhOops1
 
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
FULL ENJOY - 9953040155 Call Girls in Sector 61 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 61 | NoidaFULL ENJOY - 9953040155 Call Girls in Sector 61 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 61 | NoidaMalviyaNagarCallGirl
 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...Hot Call Girls In Sector 58 (Noida)
 
Hauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhi
Hauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhiHauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhi
Hauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhiHot Call Girls In Sector 58 (Noida)
 
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile GirlsVip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girlsshivangimorya083
 
Hyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRCHyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRCHyundai Motor Group
 
John Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualJohn Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualExcavator
 
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service ManualJohn Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service ManualExcavator
 
Innovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC TechnologyInnovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC Technologyquickpartslimitlessm
 
What Causes BMW Chassis Stabilization Malfunction Warning To Appear
What Causes BMW Chassis Stabilization Malfunction Warning To AppearWhat Causes BMW Chassis Stabilization Malfunction Warning To Appear
What Causes BMW Chassis Stabilization Malfunction Warning To AppearJCL Automotive
 
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagardollysharma2066
 
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubaikojalkojal131
 
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /WhatsappsBeautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsappssapnasaifi408
 

Recently uploaded (20)

UNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptx
UNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptxUNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptx
UNIT-IV-STEERING, BRAKES AND SUSPENSION SYSTEMS.pptx
 
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
 
Crash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.pptCrash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.ppt
 
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptUNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
 
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kasba 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
 
GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024
 
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Mayur Vihar 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
FULL ENJOY - 9953040155 Call Girls in Sector 61 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 61 | NoidaFULL ENJOY - 9953040155 Call Girls in Sector 61 | Noida
FULL ENJOY - 9953040155 Call Girls in Sector 61 | Noida
 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
 
Hauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhi
Hauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhiHauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhi
Hauz Khas Call Girls ☎ 7042364481 independent Escorts Service in delhi
 
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile GirlsVip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
 
Hyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRCHyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRC
 
John Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualJohn Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair Manual
 
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service ManualJohn Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
 
Innovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC TechnologyInnovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC Technology
 
What Causes BMW Chassis Stabilization Malfunction Warning To Appear
What Causes BMW Chassis Stabilization Malfunction Warning To AppearWhat Causes BMW Chassis Stabilization Malfunction Warning To Appear
What Causes BMW Chassis Stabilization Malfunction Warning To Appear
 
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
83778-77756 ( HER.SELF ) Brings Call Girls In Laxmi Nagar
 
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls East Of Kailash 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
 
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /WhatsappsBeautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
 

Autonomous Balancing of 2-wheeled segway robot

  • 1. BITS Pilani Pilani Campus BITS Pilani Pilani Campus NAME(ID) : Rishabh Jain - ( 2018A8PS0430P ) Akshit Patel - ( 2018A8PS0094P ) Jash Shah - ( 2018A8PS0507P ) Balancing a Segway robot using LQR controller based on genetic and bacteria foraging optimization algorithms Date: 14 April 2021
  • 2. BITS Pilani, Pilani Campus Aim Our aim of the project is to design optimal control of the segway robot using lqr and soft computing optimization techniques like genetic algorithm and bacteria foraging algorithm.
  • 3. BITS Pilani, Pilani Campus Introduction The Segway robot is an electric, two-wheeled self-balancing human transporter with a computer-controlled gyroscopic stabilization and control system.The mathematical model of the system dynamics is derived and then state-space formulation for the system is presented to enable the design of a state feedback controller scheme. In this research, an optimal control system based on the linear quadratic regulator (LQR) technique is proposed to stabilize the mobile robot.Two tuning methods, genetic algorithm (GA) and bacteria foraging optimization algorithm (BFOA) are used to obtain optimal values for controller parameters.
  • 4. BITS Pilani, Pilani Campus Description of the Robot The Segway is an extraordinary robot with very little input constraint and a high degree of freedom. This makes it very convenient and fast for use even for even law enforcement. A good amount of control is required to balance the vehicle as it is a combination of a Unicycle and an Inverted Pendulum. It now becomes very intuitive that the inverted pendulum needs to be balanced
  • 5. BITS Pilani, Pilani Campus Modelling of Segway Robot State Space Equation where, where,
  • 6. BITS Pilani, Pilani Campus Methodology
  • 7. BITS Pilani, Pilani Campus The Linear Quadratic Regulator (LQR) is a well-known method that provides optimally controlled feedback gains to enable the closed-loop stable and high performance design of systems.The LQR algorithm reduces the amount of work done by the control systems engineer to optimize the controller.The LQR algorithm is essentially an automated way of finding an appropriate state-feedback controller. LQR
  • 8. BITS Pilani, Pilani Campus Genetic algorithm is a method based on reproduction of DNA in various generations in living beings. We try to simulate the process for finding an optimized solution.The pseudo code for the process is shown in the figure. Genetic Algorithm
  • 9. BITS Pilani, Pilani Campus BFOA Forging strategies are methods for locating, handling, and ingesting food. This method favours those bacterias that have successful foraging strategies or the bacterias with enough food s.t they can reproduce.After many generations, poor foraging strategies are either eliminated or shaped into good ones i.e. redesigned.
  • 10. BITS Pilani, Pilani Campus Fitness Function Fitness function in the paper has not been defined properly, first, we took fitness function to be variation from desired values which is mentioned in the paper but as rising time and settling time were not varying much with each population, only small changes in overshoot we directly added all three values which seemed to provide better results. So our fitness function was the addition of rising time, settling time, and overshoot of position vs time graph in each iteration. Fitness Function = |Rise Time| + |Settling Time| + |Overshoot |
  • 11. BITS Pilani, Pilani Campus MATLAB Simulation Model Used for Simulation
  • 12. BITS Pilani, Pilani Campus Population Size = 15 Generation = 10 Best Q Obtained = q11=7.056311630519287 q22=0.040608399663108 q33=0.150562417774016 q44=0.030452791998497 Best R obtained = 0.000016648572929 K = 1.0e+02 *[-6.510290527654438 -3.928285136135124 -5.775516991619111 -0.891476241249279] Genetic LQR Parameters
  • 13. BITS Pilani, Pilani Campus GA graphs(step response vs amplitude) Position vs Time for GA LQR Angle vs Time for GA LQR
  • 14. BITS Pilani, Pilani Campus GA graph(Voltage and Time)
  • 15. BITS Pilani, Pilani Campus GA graph(position and angle vs time from SimuLink)
  • 16. BITS Pilani, Pilani Campus GA graph(q values vs iteration)
  • 17. BITS Pilani, Pilani Campus GA graph (r vs iteration)
  • 18. BITS Pilani, Pilani Campus Fitness Function = Rise Time + Settling Time + Overshoot Number of elimination and dispersal steps (Ne)=10; Reproductive Steps (Nr)=10; Chemotactic Steps (Nc)=10; Population Size (Np)=5; Swim Steps (Ns)=8; Swarm Size (D)=5; Probability of elimination (Ped)=0.9; The run-length unit i.e., the chemotactic step size during each run or tumble (C)=0.01; Fitness Function Value = 2.170198213995942 Value of Q and R obtained = [q11 q22 q33 q44 R] = [ q = [72471.87066219141 -0490.898006878771 -04750.45905426314 -05.18027662623499 0.401824162185799];] Value of K obtained from it = 1.0e+02 * [-4.246847946535302 -2.057666744004326 -2.923004678200982 -0.430108120238977 ] BFO Parameters
  • 19. BITS Pilani, Pilani Campus BFO Graphs(voltage vs time)
  • 20. BITS Pilani, Pilani Campus BFO graph (position vs graph) Position vs Time for BFO LQR Angle vs Time for BFO LQR
  • 21. BITS Pilani, Pilani Campus BFO graph(Position and angle vs time)
  • 22. BITS Pilani, Pilani Campus Some points on original results a) Value of Q,R,K mentioned in the paper for GA optimization [q11 q22 q33 q44 R] = [8.969 0.308 0.121 0.0085 2.123*10−5] K = [-6.4988 -3.8592 -5.1982 -0.7348] But according to the values of Q and R following K should be obtained which provides correct results K = 1.0e+02 * [-6.499755421319758 -3.859528575379667 -5.198431774768298 -0.734822500368363] b) Value of Q and R mentioned in paper for BFO algorithm is following [q11 q22 q33 q44 R] = [289.104 -5.15e-5 -5e-5 -5.1e-5 0.00028] K = [-1022 -260.2 886.72 77.7] But according to the values mentioned of Q and R value of K should be, K = 1.0e03 *[-1.016127101161195 -0.462096381004273 -0.527358592608302 -0.072462682693461] In this magnitude is same but signs are different And according to the values of K found by us results come this which are wrong according to us. Hence BFO is not providing providing better results according to the values mentioned in the paper
  • 23. BITS Pilani, Pilani Campus Cont. Fig. Variation of Position and Angle according to Q and R values calculated from BFO
  • 24. BITS Pilani, Pilani Campus Observations and Discussions A. GA LQR seems to perform better and requires less computational power. It took around 1 sec for execution of GA and 4min for complete execution of BFO. Therefore the conclusion obtained by us is different from that mentioned in paper. B. Also the value of the fitness function for the most optimized result is the same for GA and BFO whereas that should have been different for both. This is due to the fact that steady state is not an error and is not included in the fitness function. C. According to our modelling we simulated the results using both Steady state and Transfer function models for a state feedback control scheme. This was different from the standard controller because of the fact that modelling a TF model for such a controller needs heavy mathematical manipulations.
  • 25. BITS Pilani, Pilani Campus Learnings A. For our model, we incorporated a deviational set-point scheme ( not present in paper ) and provided it with a step input to see the results. The graphs were obtained as expected after mathematical manipulations and tunings. B. We also tried using an animation model, made by Columbia University professors, into our model to see the results of the segway model. But, we could not get the running animation, but only the final figure :
  • 26. BITS Pilani, Pilani Campus Conclusions. ● In this work, an optimal linear control system was adopted to balance a Segway two-wheeled mobile robot. ● First state space model of the plant was derived and the model was simulated both in MATLAB and SIMULINK for a step input to position. ● To improve the results for LQR two biologically inspired algorithms were implemented, GA and BFO, to find optimal value of Q and R. ● According to the obtained results it was found that GA LQR had better performance than BFO. Though the mentioned conclusion is different from one that is mentioned in the paper but values provided by them also provides simulation results similar to that done by us.
  • 27. BITS Pilani, Pilani Campus Future Scope ● The developed model is a baseline for many other research works. The use of a simple inverted pendulum controller scheme has been extended to our model. We have not incorporated the turning scenario which would involve non-uniform voltage inputs to both the wheels. ● We have only used a state-feedback LQR for tuning the controller gains. Instead many other controllers like PID and its variants( like Fuzzy and FOPID) could be used. Even a simple Q-learning based approach could also be incorporated. ● Similarly, for tuning the controller parameters, we could have used any other data-based( DL) and data-free methods. We had planned to use PSO and ACO along with BFO and GA, but were not able to complete it on time. ● Further, the distance-speed graphs obtained can be sampled and provided to any navigation algorithm using Artificial Potential field and be used for autonomous navigation of the segway. This hardware model can be easily applied to any microcontroller. ● State estimation Kalman filters could have been used to find the accurate values of the output variables, and this could have made the model more robust and real-world. In our output graphs, we do not see ripples, which would have been manifested by using state estimation filter.
  • 28. BITS Pilani, Pilani Campus Thank You