GithubHelp home page GithubHelp logo

baharaydogan / inverted_inertia_pendulum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from askuric/inverted_inertia_pendulum

0.0 0.0 0.0 169.55 MB

This is an opensource project of Inverted pendulum based on inertial wheel. The repo contains all the software needed, stl and cad files and instructions.

License: MIT License

C 95.63% Assembly 3.81% C++ 0.20% HTML 0.19% Makefile 0.16% MATLAB 0.01%

inverted_inertia_pendulum's Introduction

Inertia Wheel Inverted Pendulum Project

This project is suitable for anyone with extra free time and passion for interesing projects, but especially for electrical engineering studets (contorl theory students) to learn the control approach of an unstable process and test their algorithms, the primary contorller used in this project is LQR.

This project is also available on Thingiverse

This project is based on Nucleo STM32F411RE microcontroller. And the repo contains :

  • CubeMX project
  • Keil project
  • Solidworks files and STLs

YouTube link:
IMAGE ALT TEXT HERE

The full gallery of the project can be found on Link:

Electronics hardware

  • Nuceleo STM32F411RE - Mouser
  • Monster motor shield - Ebay
  • Motor - Mabuchi RS-385PH with encoder (hall or optical)
    • With encoder or hall sensors Ebay
    • I used motor without sensor and retrofited it with Hall encoder 20cpr Ebay
  • Encoder Aliexpress
  • 1x 6mm steel or aluminum rod, 120mm long
  • 1x M10x1.5 screw
  • 2x M10x1.5 nuts
  • 10x M3 screw
  • 10x M3 Brass Knurl Nuts Aliexpress
  • 2x ball bearing, 10mm x 35mm x 11mm
  • steel/amulinum/wooden plate (cca 90mm x 2mm x300mm)

3D printed parts

  • Inetria wheel - (0.1mm | 50+%)
    • Motor shaft mount has to be adapted
    • The two provided wheel STLs are for 14tooth and 12tooth version of motors
    • Feel free to make your own version of the inertia wheel with the solidworks file
  • Motor mount - (0.2mm | 30%)
  • Pole shaft connector - (0.1mm | 30%)
  • Shaft adapter - (0.1mm | 30%)
  • Table mount + bearing holder - (0.2mm | 30%)
  • Nucleo mount - (0.2mm | 30%)

Control algorithm

  • PD (Simple)
  • LQR algorithm (Intermediate) - Included in the software + Synthesis using Matlab scirpt
  • MPC (Advanced) - Suggested use of muao MPC

Connecting the hardware

  • Monster motor shield is mounted on nucleo very simply, as on any Arduino
    • It provides the hardware connections needed and no need for additional jumpers
    • Inertia wheel motor should be connected to motor 2 terminal
    • 18V - 5A power supply should be used to power the shield
  • Encoder connection diagram is as follows:

Running the code

  • Build the Keil project and download it to your Nucleo

inverted_inertia_pendulum's People

Contributors

askuric avatar theskura avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.