Skip to content
MCU Atlas
ARDUINOATMEGA328P

Otto DIY: Build a Bipedal Arduino Nano Robot

Otto DIY is the classic build-your-own bipedal robot: an Arduino Nano, four mini servos, an ultrasonic sensor and a 3D-printed body. It walks, dances, avoids obstacles and blinks its eyes — and it goes together in about an hour once the parts are on the table. No custom PCB, no code you have to write before it moves.

Difficulty:BeginnerSource available

What it is

A small bipedal robot you build yourself: an Arduino Nano for a brain, four 9-gram servos for movement, an HC-SR04 ultrasonic sensor up front, and 3D-printed parts that hold it all together. The OttoDIYLib Arduino library ships ten ready-made example sketches, so it walks, dances, avoids obstacles and blinks its eyes before you write a single line of your own code.

What you need

  • Arduino Nano + 4× SG90 servos + HC-SR04 the self-source path — every electronic part is an AliExpress staple; our rough all-in estimate is in the parts figure
  • A 3D printer — or a maker space about 115 g of PLA and roughly 8 h of printer time for the shell
  • HP Robots Otto Starter Kit the buy path — current kit prices in the key facts (checked at Moravia's official shop 2026-11-28)

How hard

Beginner — no PCB design, soldering at most pin headers on a bare Nano clone; about an hour to assemble from a kit, plus the print time.

Key Facts

  • Arduino Nano V3.0-compatible (ATmega328P) brain — clones use the CH340 USB chip; install its driver first
  • 4× SG90 9 g micro servos, plastic gear — two legs and two feet on pins D2-D5 in the official sketches
  • HC-SR04 ultrasonic sensor — buy the 3.3-5 V version; the two cylinders are Otto's eyes (Trig D8 / Echo D9)
  • 3D-printed body, head, legs and feet — about 115 g of PLA and roughly 8 h of printer time (official build guide's figures)
  • Assembly from a kit: about an hour, by the project's own estimate; HP Robots rates the build for ages 8+
  • OttoDIYLib Arduino library — GPL-3.0, verified from the LICENSE file itself, with ten example sketches
  • Official kits: HP Robots Otto Starter Builder Kit $129.99, Starter Creator Kit $99.99 at Moravia's shop (checked 2026-11-28)

About This Project

Otto DIY is a small open robot project that has become the reference "first robot" for the Arduino world. The design is deliberately minimal: an Arduino Nano (or any compatible clone) as the brain, four SG90-class 9-gram micro servos for movement, an HC-SR04 ultrasonic sensor so the robot can see what is in front of it, and a 3D-printed body, head, legs and feet that hold it all together. The software side is the OttoDIYLib Arduino library, a mature, stable codebase that ships with ten ready-made example sketches — so the robot can take its first steps minutes after assembly, before you write a single line of your own code.

Everything about the design is shared openly: the printable body files, the assembly guides and the GPL-3.0-licensed Arduino library are all published by the project at ottodiy.com, and the community around it has been building, remixing and teaching Otto for close to a decade.

What we verified, and what we didn't

Every fact on this page was checked against live sources on 2026-11-28 — the project's store statement and build guides at ottodiy.com, the Moravia shop's current kit listings (prices read live, raw bytes saved), and the OttoDIYLib repository and its LICENSE file via the GitHub API. We have not built an Otto ourselves: the one-hour assembly time, the ages-8+ rating and the print-time figures are the project's and HP Robots' own estimates, attributed as such, and the self-source total is our estimate from marketplace listings, not a checked basket — the parts figure in the build steps carries it.

Why it is the classic second project

Every Arduino tutorial starts with blinking an LED. Otto is where a lot of people go next, and it earns that spot. The electronics stay at pocket-money prices, the assembly needs no printed circuit board and no soldering iron (with one hedged exception below), and the payoff is a physical robot that walks across your desk — the first project where the code reaches out and moves the world.

Just as importantly, the skills stack: servos and pulse-width modulation, an ultrasonic distance sensor, a proper Arduino library with examples worth reading, and optionally your first 3D print. None of it is wasted when you move on to bigger robots. And because the project is mature rather than fast-moving, the guides you find today still match the library you will download today — for a newcomer, stability is a feature.

Two ways to get the parts

The project's own shop no longer sells the classic do-it-yourself kits: official kit production has moved to HP Robots, made by Moravia, the official licensee. That leaves two honest routes, and this page covers the first one.

Self-source the parts, the classic way. You buy the electronics yourself and print the body — this is how the project was always meant to work, and it is the cheapest path. The exact shopping list is below; every electronic part is an AliExpress staple, and the parts figure in the build steps carries our rough all-in estimate.

Or buy an HP Robots kit. If you would rather open a box than chase listings, HP Robots sells two official kits: the Starter Builder Kit with electronics and plastic body parts, and the Starter Creator Kit with just the electronics — you print the body yourself. Both were in stock at Moravia's official shop at our check on 2026-11-28; today's prices are in the key facts and the Parts list below.

One warning worth having in writing: the project's own store page says anything sold outside these official channels is not affiliated with the project and should be treated as an unofficial copy. Cheap "Otto robot kit" listings on marketplaces are exactly that — buildable, sometimes, but not the official kit and not the project's product.

Parts you need

The classic self-sourced build needs exactly this: one Arduino Nano V3.0-compatible board (ATmega328P; clone boards use a CH340 USB chip, which matters below), four SG90 9-gram micro servos with plastic gears, one HC-SR04 ultrasonic distance sensor — buy the 3.3-5 V version, which is the one the Otto wiring expects — one Nano I/O expansion shield (the screw-terminal type is the friendliest for beginners), roughly 115 grams of PLA for the printed body, head, legs and feet, an AA battery case with a switch, a set of DuPont jumper wires, and the few screws the assembly calls for.

If you buy the HP Robots kit instead, the electronics arrive together and matched; the Creator Kit still expects you to print the shell. And if you own a 3D printer already, that is the single biggest cost you skip.

What the build is like

There is no PCB design and no breadboard permanence to worry about — the shield plugs onto the Nano, the servos and sensor connect to the shield, and the printed parts clip and screw together. The official kit guide says the classic kit needs only a mini screwdriver, and HP Robots rates the build for ages eight and up. From a kit, assembly takes about an hour by the project's own estimate.

The two honest hedges: if you fully self-source, a bare Nano clone can arrive with its header pins unsoldered — soldering pin headers is the one joint you might ever touch on this build, and many sellers ship boards with pins already attached. And clone Nano boards use the CH340 USB chip, which needs its driver installed before the board shows up in the Arduino IDE; if the board refuses to appear on a port, this is why.

The 3D printing is the slow part, not the assembly: the official build guide reckons about 115 grams of filament (roughly 14.5 metres) and around eight hours of printer time for the full part set — up to about half that on a well-tuned printer. Libraries and maker spaces print these files every day if you do not own a printer.

What Otto does

Out of the box — that is, with an example sketch loaded — Otto walks, dances, avoids obstacles and blinks. The four servos give it a shuffling two-legged walk that has far more personality than a wheeled robot; the ultrasonic sensor stops it walking off the edge of a table or straight into a wall; and the preloaded routines include dances and gestures that make it a desk companion rather than a demo. The example sketches that ship with the library cover all of this, and each one is small enough to read in a sitting — which is the point: you learn by editing a working robot, not by starting from an empty file.

Three ways to program it

The Arduino IDE is the main path. Install the official OttoDIYLib library, select the Arduino Nano board, open any of the ten example sketches, and upload. This is the route with the deepest documentation, and the one this page assumes.

Otto Blockly is the no-code path: a standalone visual programming tool where you drag blocks and it generates and uploads the code for you — no Arduino IDE, no library setup. It supports Arduino, ESP8266 and ESP32 boards. One caveat: it is Windows-only, per the project's own documentation.

Python is mentioned by the project's site as an option, but the documented first-party routes today are the Arduino library and Blockly; Python paths are community efforts rather than an official path, so treat it as experimental.

Alongside whichever path you choose, there is a small official companion project called OttoWebAppControl: a Bluetooth controller for Otto robots that runs from the web browser, no app install. Note that the classic build's Arduino Nano has no Bluetooth radio — this controller is for the Bluetooth-capable Otto variants (the ESP32-based ones), so treat it as where the platform goes next rather than part of the basic build.

The ecosystem around it

Otto's longevity is its own argument. The project hub at ottodiy.com carries the build guides, the printable files and the community links, and it has stayed the canonical address through a decade of iteration. The core Arduino library is mature and battle-tested — feature-complete, documented and stable, exactly what a first-robot builder wants, even if that means it is no longer the fastest-moving repository on GitHub.

Around the core sit smaller official and community pieces: the Bluetooth web controller above, and community builds like an MIT-licensed ESP-IDF component that adds twenty-one animated Otto expressions to LVGL screens — a sign of where builders take the platform once they outgrow the Nano. If you build one Otto, you will likely build a second.

MCU Atlas is not affiliated with, or sponsored by, Otto DIY, HP Robots or Moravia; this is independent coverage of an open project, and all credit for the design belongs to its creator and community.

Otto DIY: Build a Bipedal Arduino Nano Robot

Illustration

How to Build It

Gather or print the parts, plug the shield onto the Nano, wire four servos and the ultrasonic sensor, install the OttoDIYLib library, and upload an example sketch — then edit it until the robot is yours.

Parts Needed

  • An Arduino Nano V3.0-compatible board (ATmega328P; clones use the CH340 USB chip — install its driver first)
  • 4x SG90 9 g micro servos (plastic gear, 180°)
  • 1x HC-SR04 ultrasonic sensor — the 3.3-5 V version
  • 1x Nano I/O expansion shield, screw-terminal type
  • The printed shell: head, body, 2 legs, 2 feet (about 115 g of PLA, roughly 8 h of printer time)
  • An AA battery case with a switch, a set of DuPont jumper wires, and the screws the assembly calls for
  • A computer with the Arduino IDE, a USB data cable and a mini screwdriver

Steps

  1. 1

    Gather the parts

    The classic build is deliberately minimal: one Nano-compatible board, four SG90 servos, one HC-SR04, one screw-terminal Nano shield, the printed shell, an AA battery case, jumper wires and a few screws. Every electronic part is a marketplace staple; the one custom piece is the printed shell. Self-sourced, the table comes to roughly $12-25 all-in — our estimate, not a checked basket — or skip the shopping entirely with an HP Robots Starter Kit ($129.99 Builder with printed parts / $99.99 Creator electronics-only, checked 2026-11-28).

    Parts table titled 'Self-sourcing the classic Otto build' with eight cards: one Arduino Nano (V3.0-compatible, ATmega328P, CH340 clone note), four SG90 9 g micro servos (plastic gear, 180 degrees, two legs and two feet on pins D2 to D5), one HC-SR04 ultrasonic sensor (3.3 to 5 V version, the cylinders are Otto's eyes), one Nano I/O expansion shield (screw-terminal type), six printed shell parts (head, body, two legs, two feet — about 115 g of PLA and 8 h of printing), one AA battery case with an on/off switch, one set of DuPont jumper wires, and a handful of screws. Footer notes the roughly $12-25 all-in estimate and credits the figure to MCU Atlas.
    The classic self-source shopping list: one Nano, four SG90 servos, one HC-SR04, a screw-terminal shield, the printed shell, a battery case, jumpers and screws. MCU Atlas original figure; the roughly $12-25 total in the footer is our estimate, not a checked basket.
  2. 2

    Print the shell

    Download the printable body files from the project hub and print the six parts — head, body, two legs, two feet — in PLA. The official build guide reckons about 115 grams of filament (roughly 14.5 metres) and around eight hours of printer time for the full set, up to about half that on a well-tuned printer. No printer? Libraries and maker spaces print these files every day.

  3. 3

    Mount the Nano and the shield

    There is no PCB design and no breadboard: the I/O expansion shield plugs straight onto the Nano's header pins, and everything else lands on the shield's screw terminals. The official kit guide says the classic kit needs only a mini screwdriver. One hedge for fully self-sourced builds: a bare Nano clone can arrive with its header pins unsoldered — pin headers are the one joint you might ever solder on this build, and many sellers ship boards with pins already attached.

  4. 4

    Wire the servos and the sensor

    Follow the pin map below: the left leg, right leg, left foot and right foot servos go to pins D2, D3, D4 and D5, with their power rails shared down to the shield's 5 V and GND terminals; the HC-SR04 (the 3.3-5 V version) connects VCC to 5 V, Trig to D8, Echo to D9 and GND to GND. These are the pin numbers the official OttoDIYLib example sketches expect, so the wiring and the code stay in sync. Screw the servos into the printed legs and feet as you go, and fit the sensor into the head — its two cylinders are Otto's eyes.

    Wiring diagram titled 'How the classic Otto build is wired': an Arduino Nano sits on a pale-green Nano I/O expansion shield in the centre; four SG90 servos on the left (left leg, right leg, left foot, right foot) connect signal wires to pins D2, D3, D4 and D5 with shared 5 V and GND power rails to the shield; the HC-SR04 ultrasonic sensor on the right connects VCC to 5 V, Trig to D8, Echo to D9 and GND to GND; below, an AA battery case with a switch connects to the shield's VIN and GND terminals. Footer credits pin numbers to the official OttoDIYLib Otto_avoid example sketch, pin map copyright Otto DIY (GPL-3.0), figure by MCU Atlas.
    How the classic Otto build is wired: the shield plugs onto the Nano, the four servos (D2-D5) and the HC-SR04 (Trig D8 / Echo D9) land on the screw terminals with shared power rails. MCU Atlas original figure; servo and sensor pin numbers from the official OttoDIYLib Otto_avoid example sketch — pin map © Otto DIY (GPL-3.0).
  5. 5

    Add power

    Wire the AA battery case with its switch to the shield's power input — the switch becomes Otto's on/off. Check the wiring twice before first power: swapped servo power rails are the classic first-build mistake, and the servos should sit still until a sketch moves them.

  6. 6

    Install the IDE, the driver and the library

    Install the Arduino IDE, then the OttoDIYLib library (Library Manager, or Sketch > Include Library > Add .ZIP Library from the repo release — its README documents both). If a clone Nano refuses to appear on a port, install the CH340 USB driver; that chip is why. Select the board as Arduino Nano and pick the port.

  7. 7

    Upload an example and make it yours

    Open File > Examples > OttoDIYLib and start with a movement sketch, then the obstacle-avoidance one — the same sketch the pin map above is drawn from. Upload over USB, and the robot takes its first steps minutes after assembly. From there the path is yours: the ten bundled example sketches are small enough to read in a sitting, Otto Blockly generates code from blocks if you would rather not write C (Windows-only), and the Bluetooth-capable ESP32 variants open the web controller route later.

Bill of Materials

Parts list

8 parts · 3 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

1× Arduino Nano V3.0-compatible (ATmega328P)

No verified link — check the original project

1× HC-SR04 ultrasonic distance sensor

No verified link — check the original project

1× Nano I/O expansion shield (screw-terminal type)

No verified link — check the original project

1× AA battery case with on/off switch

No verified link — check the original project

1× Screws (the few the assembly calls for)

No verified link — check the original project

6× 3D-printed shell — head, body, 2 legs, 2 feet

Not included: The HP Robots kit buy path — electronics arrive together and matched, A 3D printer, if you use a library or maker space instead, ESP32-based Otto variants for Bluetooth control (a later step, not the classic build)

Download CSV

Related Projects

Automatic pet feeder: serve kibble on a schedule with an ESP32
Illustration
ESP32
An ESP32, a stepper and a 3D-printed auger serve measured pet meals on a schedule you set from your phone — no app, no cloud, same dose every time.
Beginner·Code
8 parts listed
SimpleFOC Arduino balancer: BLDC two-wheel balancing robot
Illustration
ARDUINOUNO
A modular two-wheel balancing robot using gimbal BLDC motors and the SimpleFOC library on Arduino-class boards.
Advanced·Code
5 parts listed
Flashduck: a six-servo walking duck robot for your desk
Illustration
ESP32ESP32-S3
A duck that really walks: one ESP32-S3, six servos and a 3D-printed shell — no soldering, flash it from a browser, then tune the waddle from a web page.
Beginner·Code
4 parts listed