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

Saved in:
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/1/Feedback%20Control%20Of%20Inverted%20Pendulum%20Using%20Raspberry%20Pi%20Microcontroller%20And%20Arduino%20UNO_Leslie%20Kneoh%20Yen%20Sing_M4_2018.pdf
http://eprints.usm.my/54294/
Tags: Add Tag
No Tags, Be the first to tag this record!
id my.usm.eprints.54294
record_format eprints
spelling my.usm.eprints.54294 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)
institution Universiti Sains Malaysia
building Hamzah Sendut Library
collection Institutional Repository
continent Asia
country Malaysia
content_provider Universiti Sains Malaysia
content_source USM Institutional Repository
url_provider http://eprints.usm.my/
language English
topic T Technology
TJ Mechanical engineering and machinery
spellingShingle T Technology
TJ Mechanical engineering and machinery
Leslie Kneoh, Yen Sing
Feedback Control Of Inverted Pendulum Using Raspberry Pi Microcontroller And Arduino UNO
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.
format Monograph
author Leslie Kneoh, Yen Sing
author_facet Leslie Kneoh, Yen Sing
author_sort Leslie Kneoh, Yen Sing
title 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_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_sort feedback control of inverted pendulum using raspberry pi microcontroller and arduino uno
publisher Universiti Sains Malaysia
publishDate 2018
url 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
http://eprints.usm.my/54294/
_version_ 1743107810846048256
score 13.160551