Skip to content

Photo and 3D model

This repository has no photo of the robot yet.
Try it in the browser

3D preview converted from github.com/ferrolho/rotary-inverted-pendulum at bd91175, under MIT. View the original files from GitHub (8 KB) (opens in a new tab)

Open source · free files

Rotary Inverted Pendulum

Other

A low-cost DIY rotary inverted pendulum that balances itself using a reinforcement-learning policy running standalone on an Arduino Nano.

Before you build

Total cost
£20approx. €24 (ECB rate, 20 Nov 2026)excluding 3D-printing filament
How we got this numberAs stated by the creator.
Parts still sold
14 shop links, not checked yetRobotheca checks shop links weekly, only on the sites it may ask. Prices are as the creator listed them.
Tools
3D printer, soldering iron
Level
Intermediate
Licence
MIT (opens in a new tab), hardware and softwareCommercial use: Allowed

Not stated in the creator's files: time.

Read from the repository at commit bd91175, read on 11 Nov 2026. Something out of date? Tell us

Project information

Buildability
89/100Well documented, no build photo yet
Parts
16 lines
Works with
Arduino

This repository contains executable files that Robotheca doesn't check. Only run them if you trust the creator.

Which files (4 scripts)

Suggested by Robotheca, created by @ferrolho (opens in a new tab), from github.com/ferrolho/rotary-inverted-pendulum (opens in a new tab), pinned to commit bd91175 (opens in a new tab). You buy the parts yourself; Robotheca doesn't sell robots. Last checked on GitHub on 20 November 2026; its last change there was on 2 October 2026.

Build it

The creator's 4 steps, each linked to its instructions
  1. Check the bill of materials
  2. Print the parts
  3. Wire the electronics
  4. Power on for the first time

The guide appears here as you scroll.

Guide by @ferrolho (README.md), under MIT.

More guides

What to buy

16 lines, read from website/src/content/docs/build/bom.md at bd91175
Export CSV (parts list)

16 of 16 parts shown

≈ € amounts use the ECB reference rate of 20 Nov 2026, for comparison only.

No parts total: the cost above is the creator's own figure (£20).

Why it scores 89

It measures the published files, not the robot · How we score

89/100

Well documented, no build photo yet

How complete the published files are for rebuilding this robot, measured by Robotheca at commit bd91175. It isn't a rating of the robot.

  1. 13D and CAD files1 printable part (STL, 3MF).Most points to gain: Add the CAD source (STEP, or the CAD program's own files) so people can change the design.10/20
  2. 3Parts list16 lines: 16 with a price, 14 with a shop link.Add shop links to 2 lines.19/20
Full points: Robot description, Software, Documentation, Simulation, Licenses
  1. 2Robot descriptionA URDF with all its mesh files.15/15
  2. 4SoftwareCode in this repository, instructions to install or run it, built on Arduino.15/15
  3. 5DocumentationREADME of 2,871 characters with 1 picture; 4 build steps.15/15
  4. 6Simulation1 simulation file (MuJoCo, Gazebo, Webots or Isaac).5/5
  5. 7LicensesHardware: MIT; software: MIT.10/10

Wiring and electronics

Notes written by Robotheca from the project's documents, not by its creator

Main parts: Robotheca's summary

  • Microcontroller board (Arduino Nano class controller).
  • Stepper motor (NEMA17 face mount) driving the arm.
  • Stepper driver for the motor.
  • Magnetic encoder (AS5600) reading the pendulum angle from a diametric magnet.
  • Power adapter with DC barrel jack and power switch.
  • 100 nF ceramic and 22 µF electrolytic capacitors on a protoboard.
  • Motor heatsink.

Connections: Robotheca's summary

  • Encoder wiring runs from the AS5600 breakout to the microcontroller.
  • Hookup wires are soldered on a protoboard with header pins.
  • Power enters through the DC barrel jack and power switch to the motor driver and controller.
  • Cable routing must keep encoder wires clear of the arm's full travel.

What it can do: Robotheca's summary

Written by Robotheca from the project's documents, not by its creator
  • Balances an inverted pendulum on a rotary arm using a reinforcement-learning policy trained in simulation and fine-tuned on the real rig.
  • Policy is distilled to run standalone on an Arduino Nano controller.
  • Arm travel is software-limited to about ±125 degrees to protect the wiring.
  • Includes a low-level server firmware used for fine-tuning and bring-up test sketches.

Software

Framework
Arduino
Languages
Python, TypeScript, Arduino, JavaScript, Shell, C
License
MIT

Robotheca doesn't review code. Read it before running it.

How to run it: Robotheca's summary

Written by Robotheca from the project's documents, not by its creator.

  1. 1Flash the Arduino firmware sketches onto the microcontroller.
  2. 2Run the bring-up tests, including the encoder test, to check the rig before training.
  3. 3Run the policy pipeline's system identification and fine-tuning steps on the real rig via the low-level server.
  4. 4Export the distilled policy weights and deploy them to the standalone Arduino controller.

Software that runs on this robot

No software from Robotheca's catalogue found in this robot's files yet. Links come from its robotheca.yaml, its dependency files read as text, or Robotheca's editors.

The code

Free files

Every file of the project, at commit bd91175.

Community

Questions and improvements go to the creator's repository.

Add a badge to your README

For the creator: two badges that link back here. The second always shows this page's current label and score.

Listed on RobothecaRobotheca buildability

Markdown (one click selects it)

[![Listed on Robotheca](https://robotheca.org/robots/rotary-inverted-pendulum/badge.svg)](https://robotheca.org/robots/rotary-inverted-pendulum)
[![Robotheca buildability](https://robotheca.org/robots/rotary-inverted-pendulum/score.svg)](https://robotheca.org/robots/rotary-inverted-pendulum)

Licence and credits

Licenses
MIT (opens in a new tab), hardware and software
Commercial use
Allowed

Simulation

Rotary Inverted Pendulum runs in MuJoCo in your browser, from the creator's own files at the pinned commit: move each joint within its real limits.

Try it in the browser

Other other robots

All 98 other robots
  • Ready to build

    Open source · free files

    Koriobots

    Other · Intermediate

    Score
    Buildability 98 out of 100
    Cost
    $972.06≈ €884
  • Ready to build

    Open source · free files

    AmazingHand

    Other · Intermediate

    Score
    Buildability 88 out of 100
    Cost
    under €200
  • Ready to build

    Open source · free files

    DigiArm Prosthetic Hand

    Other · Advanced

    Score
    Buildability 85 out of 100
    Cost
    $250≈ €227
  • 3D render

    Open source · free files

    FloatingFace

    Other · Advanced

    Score
    Buildability 100 out of 100
    Cost
    $328.47≈ €299

≈ € values are approximate, converted at the ECB euro reference rate of 20 Nov 2026. The creator's original price always comes first.