Connecting to sources…

How to build Otto (Otto DIY / HP Robots Otto): the whole process

58 steps to build Otto (Otto DIY / HP Robots Otto), from buying parts, printing and assembly to software, calibration and training, with the bill of materials, shop…

HP Robots Otto Starter Builder Kit US$161.20 (RobotShop US, 2026‑10‑25, before tax and shipping); HP shows no price and the original DIY BOM cost is not stated

Buy parts

  • Choose a bundle or classroom set

    Choose a Bundles or Classroom Sets option and use the “Click here” link for more information.

  • Choose a starter kit

    Select a starter kit for an easy, fast build. Some versions include all electronic components, plastic parts, and tools without requiring a 3D printer.

  • Choose a modular expansion kit

    Select a modular expansion for additional building and coding possibilities.

  • Use the Sense expansion kit

    Use the Sense expansion kit to let Otto understand its environment.

  • Use the Interact expansion kit

    Use the Interact expansion kit to add control and input options to Otto.

  • Use the Emote expansion kit

    Use the Emote expansion kit to add more personality to Otto.

Print and make

  • Print the outer parts

    In the version requiring a 3D printer, print the robot’s outer parts in any color. This version includes all electronic components and tools.

Assemble

  • Assemble Otto Using the Manual

    Assemble the robot using the detailed manual.

  • Connect the Battery and Components

    Connect the battery and wire up components to the circuit board. Connect sensors, motors, and components to the circuit board.

  • Open the kit and start building

    Open the starter kit box and begin assembling the robot. In the no-printer version, the plastic parts, electronic components, and tools are included.

  • Enable microphone noise reactions

    Add the microphone so Otto reacts to noises and claps.

  • Measure temperature and humidity

    Add Climate Duo so Otto can measure the temperature and humidity in the environment.

  • Measure ambient light levels

    Add the Light Sensor to detect and measure light levels from natural sunlight or flashlights.

  • Detect rotation and shaking

    Add the Tilt Sensor to detect rotational movement on Otto or when it is shaken.

  • Trigger commands with the push button

    Add the Push Button so Otto can execute quick commands.

  • Adjust settings with the potentiometer

    Add the Potentiometer to adjust brightness, speed levels, and other settings precisely.

  • Tune settings with the encoder

    Add the Encoder with Button to fine-tune multiple variables and codes through precise step rotation.

  • Measure the robot’s acceleration

    Add the Accelerometer to measure Otto’s acceleration for varied reactions and engaging games.

  • Display content on the OLED screen

    Swap in an OLED Display to show faces, data, messages, numbers, games, and more.

  • Show graphics on the LED matrix

    Add a Color LED Matrix for RGB retro pixel graphics, emojis, mouths, light effects, and scrolling text.

  • Control voice and music files

    Add the MP3 module with integrated buttons and a switch for direct control of voice and music files.

  • Build with the Invent expansion kit

    Use the Invent expansion kit for advanced builds with multiple walking mechanisms.

Software

  • Install the Arduino IDE

    Install the Arduino IDE on your computer.

  • Find the OttoDIYLib library

    Find the `OttoDIYLib` library by Otto DIY in Arduino Manager for quick installation, or install it manually using the steps below.

  • Download the Otto DIY libraries

    Download the Otto DIY libraries ZIP file.

  • Open the Add ZIP Library menu

    Open the Arduino IDE and navigate to Sketch > Include Library > Add .ZIP Library.

  • Select and open the ZIP file

    Navigate to the location of the downloaded ZIP file and open it.

  • Check the installation message

    Check the message in the black area at the bottom of the IDE to confirm that the library has been installed.

  • Verify the library installation

    Open the Sketch > Include Library menu and confirm that the library appears at the bottom of the drop-down menu.

  • Open the OttoDIYLib examples

    Open File > Examples > OttoDIYLib in the Arduino IDE to view the example codes provided by the library.

  • Test all movements sounds and gestures

    Run `Otto_allmoves.ino` to test all dance movements, sounds and gestures.

  • Run the Bluetooth app example

    Use `Otto_APP.ino` with the Bluetooth mobile app and module.

  • Run the touch modes example

    Use `Otto_touchmodes.ino` to demonstrate multiple modes with a touch sensor or button.

  • Run the ultrasonic obstacle example

    Run `Otto_avoid.ino` to use the ultrasonic sensor to avoid obstacles.

  • Run the servo calibration example

    Run `Otto_CalibrationWalk.ino` for simple servo calibration.

  • Run the birthday melody example

    Run `Otto_happybirthday.ino` to play a melody.

  • Run the song dance example

    Run `Otto_singleladies.ino` to make the robot dance according to the song.

  • Run another song dance example

    Run `Otto_smoothcriminal.ino` to make the robot dance according to the song.

  • Test an analog sensor

    Run `Otto_testSensor.ino` to read data from any analog sensor.

  • Test the light sensor

    Run `Otto_photoresistor.ino` to test the light sensor.

  • Add the Otto library

    Include Otto.h in the program and create an instance named Otto.

  • Declare servo and buzzer pins

    Set the default signal pins for AVR Arduino boards: left leg 2, right leg 3, left foot 4, right foot 5, and buzzer 13; other pins can be used by also changing their numbers in the code.

  • Program Otto and Add Personality

    Write code to make the robot come alive, then add your own personality.

Calibrate and test

  • Initialize and home the servos

    In setup, call init with the four servo pins, servo motor calibration parameter true, and buzzer pin; then call home so Otto stands in the neutral position with the servos centered.

Use it

  • Adjust movement parameters

    Change the function parameters to alter the speed, direction, and size of movements.

  • Make Otto walk

    steps is the number of repetitions, and time is the movement duration in milliseconds; a higher value slows the movement, with values from 500 to 3000 recommended. Use dir 1 to walk forward or -1 to walk backward.

  • Make Otto turn

    Set the number of turn repetitions, duration T, and direction; 1 turns left and -1 turns right.

  • Make Otto bend

    Set the number of bend repetitions, duration T, and direction; 1 bends left and -1 bends right.

  • Make Otto shake its leg

    Set the number of leg-shaking repetitions, duration T, and direction; 1 shakes left and -1 shakes right.

  • Make Otto jump

    Set the number of upward jumps and duration T; jump has no direction parameter.

  • Perform the moonwalker dance

    Set the steps, duration T, movement height or size h, and direction; 1 moves left and -1 moves right. Adjust h between 15 and 40.

  • Perform the Crusaito dance

    Set the steps, duration T, movement height or size h, and direction; 1 moves left and -1 moves right. Adjust h between 20 and 50.

  • Perform the flapping movement

    Set the steps, duration T, movement height or size h, and direction; 1 moves front and -1 moves back. Adjust h between 10 and 30.

  • Perform the swing movement

    Set the steps, duration T, and movement height or size h; adjust h between 0 and 50.

  • Perform the tiptoe swing

    Set the steps, duration T, and movement height or size h; adjust h between 0 and 50.

  • Perform the jitter movement

    Set the steps, duration T, and movement height or size h; adjust h between 5 and 25.

  • Perform the up-down movement

    Set the steps, duration T, and movement height or size h; adjust h between 0 and 90.

  • Perform the ascending turn

    Set the steps, duration T, and movement height or size h; adjust h between 5 and 15.

Common problems

  • Missing library headers or dependencies prevent sketches from compiling #5 #6
  • Incompatible APIs and outdated examples cause compilation failures #10 #17 #23 #26 #30 #33
  • Unsigned oscillator offsets break negative movement calculations on ESP32 #7 #16
  • ESP32 sketches can trigger watchdog resets during operation #21
  • Touch sensors start low in toggle mode, confusing programs #9
  • Unvalidated EEPROM calibration data causes extreme leg positions #22
  • Obstacle avoidance continues turning after detecting an obstacle #14
  • Library functions lack sufficient documentation for independent builders #28

Parts

  • HP board: Xtensa dual-core 32-bit LX6 at 240 MHz, 8 MB flash, 2.4 GHz Wi‑Fi, Bluetooth 4.2/BLE, 11 GPIOs on JST connectors
  • Custom metal-gear servos (2.2 kg⋅cm continuous rotation)
  • Ultrasonic sensor, IR line sensors, 13 RGB LEDs, 80 dB buzzer
  • Replaceable 3.7V 1800 mAh battery (about 2 hours), USB‑C for charging and programming
  • Original DIY: Arduino Nano and four leg servos (OttoDIYLib) in a 3D-printed shell

Tools

  • The Builder kit includes plastic parts and tools; the Creator kit needs a 3D printer (HP page)

Skills

  • Icon blocks → word blocks → Python (HP webcode)
  • MicroPython (Thonny) or Arduino C++

Software

  • HP webcode browser coding (no install, with electronics and game simulator)
  • HP Otto app (iOS/Android) Bluetooth remote
  • OttoDIYLib (Arduino)

Documents