Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO

The inverted pendulum is a complex system, widely studied in many areas due to its complexity and non-linearities. Since the inverted pendulum is inherently unstable, it provides an interesting laboratory experiment for students to perform and can be easily linked to real-world applications such a...

Full description

Bibliographic Details
Main Author: Leslie Kneoh, Yen Sing
Format: Monograph
Language:English
Published: Universiti Sains Malaysia 2018
Subjects:
Online Access:http://eprints.usm.my/54294/
http://eprints.usm.my/54294/1/Feedback%20Control%20Of%20Inverted%20Pendulum%20Using%20Raspberry%20Pi%20Microcontroller%20And%20Arduino%20UNO_Leslie%20Kneoh%20Yen%20Sing_M4_2018.pdf
_version_ 1848882764052430848
author Leslie Kneoh, Yen Sing
author_facet Leslie Kneoh, Yen Sing
author_sort Leslie Kneoh, Yen Sing
building USM Institutional Repository
collection Online Access
description The inverted pendulum is a complex system, widely studied in many areas due to its complexity and non-linearities. Since the inverted pendulum is inherently unstable, it provides an interesting laboratory experiment for students to perform and can be easily linked to real-world applications such as rocket and Segway self-balancing electric vehicle. This thesis presents a low-cost inverted pendulum system for the students to swing up and control the inverted pendulum in upright position. The controlling in inverted pendulum is studied in the Arduino programming with the usage of Raspberry Pi microcontroller. The control system consists of two parts, which are swing up control and upright balance control. Swing up control swings the pendulum to upright position and upright balance control stabilizes the pendulum in upright position, resisting from a step of disturbances. Modern control techniques-Proportional, Integral and Derivative (PID) controller is used to reduce the errors to the desired set points in order to perform swing up control and upright balance control. The algorithms for controlling the motor and the encoder are built to perform their respective functions. Then, all algorithms are combined to perform closed-loop system as the angles from the pendulum’s encoder act as feedback system to alter the duty cycle of motor corresponding to the set point. After that, the role of different PID parameters is discussed with the subsequent comparison between different parameters used for PID controllers. The final tuned PID value for stable upright control is Kp=12.5, Ki=6 and Kd=50 meanwhile PID value for swing up control is Kp=0.15, Ki=0.005 and Kd=5. The tuning of PID value is based on trial and error method by adjusting to different values to see the effects on the pendulum. The implementation of Arduino UNO to control the inverted pendulum system is successful as the pendulum can perform swing up and upright balance control respectively with correctly tuned PID parameters.
first_indexed 2025-11-15T18:40:06Z
format Monograph
id usm-54294
institution Universiti Sains Malaysia
institution_category Local University
language English
last_indexed 2025-11-15T18:40:06Z
publishDate 2018
publisher Universiti Sains Malaysia
recordtype eprints
repository_type Digital Repository
spelling usm-542942022-08-24T08:54:09Z http://eprints.usm.my/54294/ Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO Leslie Kneoh, Yen Sing T Technology TJ Mechanical engineering and machinery The inverted pendulum is a complex system, widely studied in many areas due to its complexity and non-linearities. Since the inverted pendulum is inherently unstable, it provides an interesting laboratory experiment for students to perform and can be easily linked to real-world applications such as rocket and Segway self-balancing electric vehicle. This thesis presents a low-cost inverted pendulum system for the students to swing up and control the inverted pendulum in upright position. The controlling in inverted pendulum is studied in the Arduino programming with the usage of Raspberry Pi microcontroller. The control system consists of two parts, which are swing up control and upright balance control. Swing up control swings the pendulum to upright position and upright balance control stabilizes the pendulum in upright position, resisting from a step of disturbances. Modern control techniques-Proportional, Integral and Derivative (PID) controller is used to reduce the errors to the desired set points in order to perform swing up control and upright balance control. The algorithms for controlling the motor and the encoder are built to perform their respective functions. Then, all algorithms are combined to perform closed-loop system as the angles from the pendulum’s encoder act as feedback system to alter the duty cycle of motor corresponding to the set point. After that, the role of different PID parameters is discussed with the subsequent comparison between different parameters used for PID controllers. The final tuned PID value for stable upright control is Kp=12.5, Ki=6 and Kd=50 meanwhile PID value for swing up control is Kp=0.15, Ki=0.005 and Kd=5. The tuning of PID value is based on trial and error method by adjusting to different values to see the effects on the pendulum. The implementation of Arduino UNO to control the inverted pendulum system is successful as the pendulum can perform swing up and upright balance control respectively with correctly tuned PID parameters. Universiti Sains Malaysia 2018-05-01 Monograph NonPeerReviewed application/pdf en http://eprints.usm.my/54294/1/Feedback%20Control%20Of%20Inverted%20Pendulum%20Using%20Raspberry%20Pi%20Microcontroller%20And%20Arduino%20UNO_Leslie%20Kneoh%20Yen%20Sing_M4_2018.pdf Leslie Kneoh, Yen Sing (2018) Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO. Project Report. Universiti Sains Malaysia, Pusat Pengajian Kejuruteraan Mekanikal. (Submitted)
spellingShingle T Technology
TJ Mechanical engineering and machinery
Leslie Kneoh, Yen Sing
Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO
title Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO
title_full Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO
title_fullStr Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO
title_full_unstemmed Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO
title_short Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO
title_sort feedback control of inverted pendulum using raspberry pi microcontroller and arduino uno
topic T Technology
TJ Mechanical engineering and machinery
url http://eprints.usm.my/54294/
http://eprints.usm.my/54294/1/Feedback%20Control%20Of%20Inverted%20Pendulum%20Using%20Raspberry%20Pi%20Microcontroller%20And%20Arduino%20UNO_Leslie%20Kneoh%20Yen%20Sing_M4_2018.pdf