umu.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • harvard1
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Self-Balancing Robot Control System in CODESYS for Raspberry Pi: Design and Construction of a Self-Balancing Robot using PLC-programming tools
Umeå University, Faculty of Science and Technology, Department of Applied Physics and Electronics.
2016 (English)Independent thesis Basic level (professional degree), 10 credits / 15 HE creditsStudent thesisAlternative title
Styrsystem till en självbalanserande robot i CODESYS för Raspberry Pi : Design och konstruktion av en självbalanserande robot med PLC-programmeringsverktyg (Swedish)
Abstract [en]

The Department of Applied Physics and Electronics at Umeå University offers education and conducts research in the field of automation and robotics. To raise the competence in automation in the CODESYS development environment it’s proposed to build a remote controlled self-balancing robot as a testing platform which is then programmed using CODESYS for Raspberry Pi.

 

The chassis of the robot consists of laser-cut plexiglass plates, stacked on top of each other and fixed using threaded rods, nuts and washers. On these plates the robots’ electrical components, wheels and motors are attached.

 

The control system is designed as a feedback loop where the robots’ angle relative to the gravity vector is the controlled variable. A PID-controller is used as the system controller and a Kalman Filter is used to filter the input signals from the IMU board using input from both the accelerometer and the gyro.

 

The control system is implemented in CODESYS as a Function Block Diagram (FBD) using both pre-made, standard function blocks and customized function blocks. By using the in-built web-visualization tool the robot can be remote controlled via Wi-Fi.

 

After tuning the Kalman Filter through plot-analysis and the PID-controller through Ziegler-Nichols method the robot can stay balanced on a flat surface.

 

The robots’ performance is tested through a series of test scenarios of which it only completes one out of four. The project ran out of time before further testing could be done.

 

For future work one could improve the performance of the PID-controller through more sophisticated tuning methods. One can also add a steering-function or test different type of controllers.

Place, publisher, year, edition, pages
2016. , 69 p.
Series
MA, 1622
Keyword [en]
Robot, Self-balancing robot, CODESYS, Raspberry Pi
National Category
Mechanical Engineering
Identifiers
URN: urn:nbn:se:umu:diva-133990OAI: oai:DiVA.org:umu-133990DiVA: diva2:1090623
Subject / course
Maskinteknik
Educational program
Bachelor of Science Engineering in Mechanical Engineering
Presentation
2017-01-13, TC335, Umeå universitet, Umeå, 13:30 (Swedish)
Supervisors
Examiners
Available from: 2017-05-12 Created: 2017-04-24 Last updated: 2017-05-12Bibliographically approved

Open Access in DiVA

Self-Balancing Robot Control System in CODESYS for Raspberry Pi: Design and Construction of a Self-Balancing Robot using PLC-programming tools(3265 kB)199 downloads
File information
File name FULLTEXT01.pdfFile size 3265 kBChecksum SHA-512
d70d0f19207d6d492b42b6deedf132d89699ef2657e01b654df8f0a9c031b80741d8f0feac3ffe3a1dd8d2e6eafb6342ad303360fde453422ccbc5e9b21f9560
Type fulltextMimetype application/pdf

By organisation
Department of Applied Physics and Electronics
Mechanical Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 199 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 70 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • harvard1
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf