SlideShare a Scribd company logo
1 of 23
DESIGN AND CONTROL OF A
TWO WHEELED INVERTED
PENDULUM
 NANDAN S (608)
 NANDU MOHAN C (609)
 NIKHIL JACOB MATHEW (610)
 JOBIN JOSEPH (666)
1
GUIDED BY,
Prof (Dr) SHEEJA M.K
HOD, DEPARTMENT OF ECE
SCTCE
INTRODUCTION
 An Inverted pendulum is one in which the center of mass is above the axis of
rotation.
 An Inverted pendulum is inherently unstable, and must be actively balanced in
order to remain upright.
 Self balancing property can be achieved by using a feedback network.
 An example of Inverted pendulum is HUMAN BEING. A person with an upright
body needs to make adjustments constantly to maintain balance whether
walking, standing or running.
2
CONCEPT INVOLVED
 Self balancing property of an Inverted Pendulum can be applied to two
wheeled vehicles.
 Self balancing is attained using a feedback network.
 A PID (Proportional integral Derivative)controller is used as the closed loop
feedback system.
3
WORKING PRINCIPLE
The Inverted Pendulum works on the simple Principle of
Newton’s Third Law of Motion ( Action and Reaction).
Action : The body tends to fall in the forward direction.
Reaction : The speed of the system is increased by the feedback
system thus helping in attaining stability.
4
BLOCK DIAGRAM 5
PROPORTIONAL INTERGAL DERIVATIVE
CONTROL SYSTEM
6
► Kp: Proportional gain, a tuning parameter
► Ki: Integral gain, a tuning parameter
► Kd: Derivative gain, a tuning parameter
► e: Error = SP - PV
► t: Time or instantaneous time (the present)
► τ : Variable of integration; takes on values from time 0 to the
present t.
 A PID controller calculates an error value as the difference between a
measured process variable and a desired set point.
 PID algorithm 3 separate constant parameter,
P - depends on the present error.
I – is the accumulation of past errors.
D- is the prediction of future errors using current rate of change.
► Advantages
no offset
faster response
no or very less oscillations
7
PID CONTROLLER TUNING 8
• The faster response, the worse
stability.
• The better stability, the slower
response.
So, for the control system, we look for
the following compromise:
Acceptable stability, and medium
fastness of response
COMPONENTS USED
 ARDUINO UNO
 ATMEGA 328
 MPU 6050
 L298N
 JOHNSON MOTOR
9
ARDUINO UNO 10
 Microcontroller- Atmega328.
 It is a microcontroller board with 14 digital
input/output pins and 6 analog pins.
 It has 16MHz ceramic resonator, a USB
connector, power jack and a reset button.
 Its operating voltage is 5V.
MPU 6050
 MPU-6050 sensor contains a MEMS Accelerometer and
Gyroscope in a single chip.
 It is very accurate as it contains 16 bit A to D conversion
hardware for each channel.
 It captures X Y and Z channels at the same time.
 The sensor uses I2C-bus to interface with Arduino.
 The Accelerometer gives the position values and the Gyroscope
gives the angular values.
11
L298N – DRIVER IC 12
•Logic Control Voltage:5V (From Arduino)
•Motor Driven Voltage:4.8~35V
•Logic supply current Iss:≤36mA
•Motor Driven current Io:≤2A
•Maximum power consumption:25W
•PWM,PLL Speed control mode
I²C COMMUNICATION PROTOCOL
 I²C is a serial protocol for two-wire interface to connect low-speed devices
like microcontrollers other similar peripherals in embedded systems.
 I²C uses only two bidirectional lines, Serial Data Line (SDA) and Serial Clock
Line (SCL), pulled up with resistors.
 Typical voltages used are +5 V or +3.3 .
13
COMPONENT CONNECTIOS
 1. MPU-6050 TO ARDUINO UNO
14
 Vcc and GND pins of the MPU-6050 module is connected to the Vcc and GND
pins of Arduino UNO board.
5V DC required for the working od MPU-6050 module is supplied from the
Vcc pin of Arduino.
 Serial Clock Line (SCL) and Serial Data Line (SDA) are used for the I2C
communication.
SDA and SCL pins of Arduino UNO board (A4 and A5) and MPU 6050 are
connected respectively.
15
 L298N TO ARDUINO UNO
16
 GND and Vcc pins of L298N is connected to the respective Vcc and GND
pins of Arduino UNO board.
 PWM MOTOR 1 Pin (E1) and PWM MOTOR 2 Pin (E2) of the driver module
is connected to Pin 6 and Pin 5 of the Arduino board.
 POLARITY MOTOR 1 Pin (M1) and POLARITY MOTOR 2 Pin (M2) of the
driver module is connected to Pin 7 and Pin 4 of the Arduino UNO.
 The GROUND MOTOR and POWER MOTOR Pins of the L298N module is
used for connecting the Johnson Motors.
17
 3. L298N TO JOHNSON MOTORS 18
 12V DC power supply is provided to the driver module.
 ENA and ENB are used for enabling and disabling the motors.
 IN1 and IN2 are the pins used for the deciding the direction of rotation of
motor A .
 IN3 and IN4 are used for deciding the direction of rotation of the motor B.
19
CODING
ALGORITHM
20
RESULT 21
 The TWO WHEELED INVERTED PENDULUM was
successfully designed.
 In order to test the self balancing capacity, the setup was
tested at different surfaces.
SCOPE AND FUTURE DEVELOPMENT
 By using an advanced processor like ARM Processor we can implement a
more faster and much advanced weight balancing system.
 The system can be further designed to produce:
 2 wheeled wheel chair
 2 wheeled vehicle
22
Thank You…
23

More Related Content

What's hot

Unit iv field oriented control ,solid state ac drives,ME PE&D
Unit iv field oriented control ,solid state ac drives,ME PE&DUnit iv field oriented control ,solid state ac drives,ME PE&D
Unit iv field oriented control ,solid state ac drives,ME PE&DDr SOUNDIRARAJ N
 
Stepper motor in industrial applications
Stepper motor in industrial applicationsStepper motor in industrial applications
Stepper motor in industrial applicationsDr.Raja R
 
Synchronous motor drive
Synchronous motor driveSynchronous motor drive
Synchronous motor driveGuru Moorthi
 
Field oriented control of induction motor based on
Field oriented control  of induction motor based onField oriented control  of induction motor based on
Field oriented control of induction motor based onAMRITAKUMARI21408
 
Speed control of dc motor using chopper
Speed control of dc motor using chopperSpeed control of dc motor using chopper
Speed control of dc motor using chopperAjeeta Srivastava
 
speed control of three phase induction motor
speed control of three phase induction motorspeed control of three phase induction motor
speed control of three phase induction motorAshvani Shukla
 
Phase Lock Loop control of dc drive
Phase Lock Loop control of dc drivePhase Lock Loop control of dc drive
Phase Lock Loop control of dc driveraviarmugam
 
Electrical drive unit 1 as per IP university_EEE
Electrical drive unit 1 as per IP university_EEEElectrical drive unit 1 as per IP university_EEE
Electrical drive unit 1 as per IP university_EEEamrutapattnaik2
 
Speed control of dc motor using fuzzy pid controller-mid term progress report
Speed control of dc motor using fuzzy pid controller-mid term progress reportSpeed control of dc motor using fuzzy pid controller-mid term progress report
Speed control of dc motor using fuzzy pid controller-mid term progress reportBinod kafle
 
Final report of line follower robot
Final report of line follower robotFinal report of line follower robot
Final report of line follower robotRohit Dadoriya
 
Permanent magnet Synchronous machines
Permanent magnet Synchronous machinesPermanent magnet Synchronous machines
Permanent magnet Synchronous machinesRajeev Kumar
 
Robotics - Unit-II
Robotics - Unit-IIRobotics - Unit-II
Robotics - Unit-IIMuthukumar V
 
VR stepper motor
VR stepper motorVR stepper motor
VR stepper motorkarthi1017
 

What's hot (20)

Unit iv field oriented control ,solid state ac drives,ME PE&D
Unit iv field oriented control ,solid state ac drives,ME PE&DUnit iv field oriented control ,solid state ac drives,ME PE&D
Unit iv field oriented control ,solid state ac drives,ME PE&D
 
Stepper motor in industrial applications
Stepper motor in industrial applicationsStepper motor in industrial applications
Stepper motor in industrial applications
 
Synchronous motor drive
Synchronous motor driveSynchronous motor drive
Synchronous motor drive
 
Self Balancing Robot
Self Balancing RobotSelf Balancing Robot
Self Balancing Robot
 
Motor drives
Motor drivesMotor drives
Motor drives
 
Dc motor drive
Dc motor driveDc motor drive
Dc motor drive
 
Field oriented control of induction motor based on
Field oriented control  of induction motor based onField oriented control  of induction motor based on
Field oriented control of induction motor based on
 
Speed control of dc motor using chopper
Speed control of dc motor using chopperSpeed control of dc motor using chopper
Speed control of dc motor using chopper
 
Project PPT
Project PPTProject PPT
Project PPT
 
induction generator
induction generatorinduction generator
induction generator
 
speed control of three phase induction motor
speed control of three phase induction motorspeed control of three phase induction motor
speed control of three phase induction motor
 
Phase Lock Loop control of dc drive
Phase Lock Loop control of dc drivePhase Lock Loop control of dc drive
Phase Lock Loop control of dc drive
 
Electrical drive unit 1 as per IP university_EEE
Electrical drive unit 1 as per IP university_EEEElectrical drive unit 1 as per IP university_EEE
Electrical drive unit 1 as per IP university_EEE
 
PLC Architecture
PLC ArchitecturePLC Architecture
PLC Architecture
 
Speed control of dc motor using fuzzy pid controller-mid term progress report
Speed control of dc motor using fuzzy pid controller-mid term progress reportSpeed control of dc motor using fuzzy pid controller-mid term progress report
Speed control of dc motor using fuzzy pid controller-mid term progress report
 
Final report of line follower robot
Final report of line follower robotFinal report of line follower robot
Final report of line follower robot
 
PWM RECTIFIER
PWM RECTIFIERPWM RECTIFIER
PWM RECTIFIER
 
Permanent magnet Synchronous machines
Permanent magnet Synchronous machinesPermanent magnet Synchronous machines
Permanent magnet Synchronous machines
 
Robotics - Unit-II
Robotics - Unit-IIRobotics - Unit-II
Robotics - Unit-II
 
VR stepper motor
VR stepper motorVR stepper motor
VR stepper motor
 

Viewers also liked

Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...hunypink
 
2014 inverted pendulum_presentation
2014 inverted pendulum_presentation2014 inverted pendulum_presentation
2014 inverted pendulum_presentationSteven Hefner
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqreSAT Publishing House
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumFrancesco Corucci
 
MODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROL
MODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROLMODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROL
MODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROLJournal For Research
 
Backstepping control of cart pole system
Backstepping  control of cart pole systemBackstepping  control of cart pole system
Backstepping control of cart pole systemShubhobrata Rudra
 
Pendulo invertido com lógica Fuzzy
Pendulo invertido com lógica FuzzyPendulo invertido com lógica Fuzzy
Pendulo invertido com lógica FuzzyDavid Luna Santos
 
The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...
The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...
The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...Dr. James Stoxen DC
 
Torsion Pendulum
Torsion PendulumTorsion Pendulum
Torsion PendulumTyler Cash
 
Green house weather control system
Green house weather control systemGreen house weather control system
Green house weather control systemShiven Vashisht
 
Arduino based intelligent greenhouse Project
Arduino based intelligent greenhouse ProjectArduino based intelligent greenhouse Project
Arduino based intelligent greenhouse ProjectAmit Saini
 

Viewers also liked (15)

Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...
 
2014 inverted pendulum_presentation
2014 inverted pendulum_presentation2014 inverted pendulum_presentation
2014 inverted pendulum_presentation
 
final project
final projectfinal project
final project
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulum
 
MODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROL
MODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROLMODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROL
MODELLING AND SIMULATION OF INVERTED PENDULUM USING INTERNAL MODEL CONTROL
 
Backstepping control of cart pole system
Backstepping  control of cart pole systemBackstepping  control of cart pole system
Backstepping control of cart pole system
 
Pendulo invertido com lógica Fuzzy
Pendulo invertido com lógica FuzzyPendulo invertido com lógica Fuzzy
Pendulo invertido com lógica Fuzzy
 
The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...
The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...
The Inverted Pendulum, Spring Mass and Integrated Spring Mass Approach to Tre...
 
Torsion Pendulum
Torsion PendulumTorsion Pendulum
Torsion Pendulum
 
report
reportreport
report
 
Green house weather control system
Green house weather control systemGreen house weather control system
Green house weather control system
 
p i d controller
p i d controllerp i d controller
p i d controller
 
FINAL PROJ REP
FINAL PROJ REPFINAL PROJ REP
FINAL PROJ REP
 
Arduino based intelligent greenhouse Project
Arduino based intelligent greenhouse ProjectArduino based intelligent greenhouse Project
Arduino based intelligent greenhouse Project
 

Similar to invertedpendulum

Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOObstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOSanjay Kumar
 
Arduino Based Project.pptx
Arduino Based Project.pptxArduino Based Project.pptx
Arduino Based Project.pptxAbhishek Sharma
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Ionela
 
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET Journal
 
Controlling and optimization of 3d optical stage for precise movement
Controlling and optimization of 3d optical stage for precise movementControlling and optimization of 3d optical stage for precise movement
Controlling and optimization of 3d optical stage for precise movementAvadhut Khade
 
speedcontrol of dc motor using inverters
speedcontrol of dc motor using invertersspeedcontrol of dc motor using inverters
speedcontrol of dc motor using invertersbhavyarkrishnan2000
 
solar tracking ppt.pptx
solar tracking ppt.pptxsolar tracking ppt.pptx
solar tracking ppt.pptxPraveenRider5
 
AUTOMATIC INTELLIGENCE BASED CAR
AUTOMATIC INTELLIGENCE BASED CARAUTOMATIC INTELLIGENCE BASED CAR
AUTOMATIC INTELLIGENCE BASED CARPrabal Singh
 
Electronz_Chapter_10.pptx
Electronz_Chapter_10.pptxElectronz_Chapter_10.pptx
Electronz_Chapter_10.pptxMokete5
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled WheelchairIRJET Journal
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYEldhose George
 

Similar to invertedpendulum (20)

Team7 report
Team7 reportTeam7 report
Team7 report
 
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOObstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
 
Arduino Based Project.pptx
Arduino Based Project.pptxArduino Based Project.pptx
Arduino Based Project.pptx
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
 
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
 
Controlling and optimization of 3d optical stage for precise movement
Controlling and optimization of 3d optical stage for precise movementControlling and optimization of 3d optical stage for precise movement
Controlling and optimization of 3d optical stage for precise movement
 
speedcontrol of dc motor using inverters
speedcontrol of dc motor using invertersspeedcontrol of dc motor using inverters
speedcontrol of dc motor using inverters
 
solar tracking ppt.pptx
solar tracking ppt.pptxsolar tracking ppt.pptx
solar tracking ppt.pptx
 
EBM.ppt
EBM.pptEBM.ppt
EBM.ppt
 
final project
final projectfinal project
final project
 
AUTOMATIC INTELLIGENCE BASED CAR
AUTOMATIC INTELLIGENCE BASED CARAUTOMATIC INTELLIGENCE BASED CAR
AUTOMATIC INTELLIGENCE BASED CAR
 
Electronz_Chapter_10.pptx
Electronz_Chapter_10.pptxElectronz_Chapter_10.pptx
Electronz_Chapter_10.pptx
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled Wheelchair
 
Automated ppt
Automated pptAutomated ppt
Automated ppt
 
Obstacle avoiding robot(Lab report)
Obstacle  avoiding  robot(Lab report)Obstacle  avoiding  robot(Lab report)
Obstacle avoiding robot(Lab report)
 
371275588.pptx
371275588.pptx371275588.pptx
371275588.pptx
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
 
Wifi controlled rover prototype
Wifi controlled rover prototypeWifi controlled rover prototype
Wifi controlled rover prototype
 
INTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEMINTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEM
 
Manual fsr'14
Manual fsr'14Manual fsr'14
Manual fsr'14
 

invertedpendulum

  • 1. DESIGN AND CONTROL OF A TWO WHEELED INVERTED PENDULUM  NANDAN S (608)  NANDU MOHAN C (609)  NIKHIL JACOB MATHEW (610)  JOBIN JOSEPH (666) 1 GUIDED BY, Prof (Dr) SHEEJA M.K HOD, DEPARTMENT OF ECE SCTCE
  • 2. INTRODUCTION  An Inverted pendulum is one in which the center of mass is above the axis of rotation.  An Inverted pendulum is inherently unstable, and must be actively balanced in order to remain upright.  Self balancing property can be achieved by using a feedback network.  An example of Inverted pendulum is HUMAN BEING. A person with an upright body needs to make adjustments constantly to maintain balance whether walking, standing or running. 2
  • 3. CONCEPT INVOLVED  Self balancing property of an Inverted Pendulum can be applied to two wheeled vehicles.  Self balancing is attained using a feedback network.  A PID (Proportional integral Derivative)controller is used as the closed loop feedback system. 3
  • 4. WORKING PRINCIPLE The Inverted Pendulum works on the simple Principle of Newton’s Third Law of Motion ( Action and Reaction). Action : The body tends to fall in the forward direction. Reaction : The speed of the system is increased by the feedback system thus helping in attaining stability. 4
  • 6. PROPORTIONAL INTERGAL DERIVATIVE CONTROL SYSTEM 6 ► Kp: Proportional gain, a tuning parameter ► Ki: Integral gain, a tuning parameter ► Kd: Derivative gain, a tuning parameter ► e: Error = SP - PV ► t: Time or instantaneous time (the present) ► τ : Variable of integration; takes on values from time 0 to the present t.
  • 7.  A PID controller calculates an error value as the difference between a measured process variable and a desired set point.  PID algorithm 3 separate constant parameter, P - depends on the present error. I – is the accumulation of past errors. D- is the prediction of future errors using current rate of change. ► Advantages no offset faster response no or very less oscillations 7
  • 8. PID CONTROLLER TUNING 8 • The faster response, the worse stability. • The better stability, the slower response. So, for the control system, we look for the following compromise: Acceptable stability, and medium fastness of response
  • 9. COMPONENTS USED  ARDUINO UNO  ATMEGA 328  MPU 6050  L298N  JOHNSON MOTOR 9
  • 10. ARDUINO UNO 10  Microcontroller- Atmega328.  It is a microcontroller board with 14 digital input/output pins and 6 analog pins.  It has 16MHz ceramic resonator, a USB connector, power jack and a reset button.  Its operating voltage is 5V.
  • 11. MPU 6050  MPU-6050 sensor contains a MEMS Accelerometer and Gyroscope in a single chip.  It is very accurate as it contains 16 bit A to D conversion hardware for each channel.  It captures X Y and Z channels at the same time.  The sensor uses I2C-bus to interface with Arduino.  The Accelerometer gives the position values and the Gyroscope gives the angular values. 11
  • 12. L298N – DRIVER IC 12 •Logic Control Voltage:5V (From Arduino) •Motor Driven Voltage:4.8~35V •Logic supply current Iss:≤36mA •Motor Driven current Io:≤2A •Maximum power consumption:25W •PWM,PLL Speed control mode
  • 13. I²C COMMUNICATION PROTOCOL  I²C is a serial protocol for two-wire interface to connect low-speed devices like microcontrollers other similar peripherals in embedded systems.  I²C uses only two bidirectional lines, Serial Data Line (SDA) and Serial Clock Line (SCL), pulled up with resistors.  Typical voltages used are +5 V or +3.3 . 13
  • 14. COMPONENT CONNECTIOS  1. MPU-6050 TO ARDUINO UNO 14
  • 15.  Vcc and GND pins of the MPU-6050 module is connected to the Vcc and GND pins of Arduino UNO board. 5V DC required for the working od MPU-6050 module is supplied from the Vcc pin of Arduino.  Serial Clock Line (SCL) and Serial Data Line (SDA) are used for the I2C communication. SDA and SCL pins of Arduino UNO board (A4 and A5) and MPU 6050 are connected respectively. 15
  • 16.  L298N TO ARDUINO UNO 16
  • 17.  GND and Vcc pins of L298N is connected to the respective Vcc and GND pins of Arduino UNO board.  PWM MOTOR 1 Pin (E1) and PWM MOTOR 2 Pin (E2) of the driver module is connected to Pin 6 and Pin 5 of the Arduino board.  POLARITY MOTOR 1 Pin (M1) and POLARITY MOTOR 2 Pin (M2) of the driver module is connected to Pin 7 and Pin 4 of the Arduino UNO.  The GROUND MOTOR and POWER MOTOR Pins of the L298N module is used for connecting the Johnson Motors. 17
  • 18.  3. L298N TO JOHNSON MOTORS 18
  • 19.  12V DC power supply is provided to the driver module.  ENA and ENB are used for enabling and disabling the motors.  IN1 and IN2 are the pins used for the deciding the direction of rotation of motor A .  IN3 and IN4 are used for deciding the direction of rotation of the motor B. 19
  • 21. RESULT 21  The TWO WHEELED INVERTED PENDULUM was successfully designed.  In order to test the self balancing capacity, the setup was tested at different surfaces.
  • 22. SCOPE AND FUTURE DEVELOPMENT  By using an advanced processor like ARM Processor we can implement a more faster and much advanced weight balancing system.  The system can be further designed to produce:  2 wheeled wheel chair  2 wheeled vehicle 22