Connecting to sources…

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

54 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 link…

HP Robots Otto Starter Builder Kit $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 modular expansion kit

    Use modular expansions to add more ways to build and code the robot.

  • Choose the Sense expansion kit

    The Sense expansion kit is for understanding the environment.

  • Choose the Interact expansion kit

    The Interact expansion kit is for control and input.

  • Choose the Emote expansion kit

    The Emote expansion kit adds more personality to the robot.

  • Choose the Invent expansion kit

    The Invent expansion kit supports multiple walking mechanisms and is compatible with third-party electronics.

Assemble

  • Assemble the robot using the manual

    Assemble the robot using the detailed and enjoyable manual.

  • Connect the battery and wire components

    Connect the battery and wire the components to the circuit board.

  • Swap in the OLED display

    Swap to an OLED screen to display faces, data, messages, numbers, games, and more.

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 the robot to come alive

    Make the robot come alive with code and 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.

  • React to noises and claps

    Use the microphone so Otto reacts to noises and claps.

  • Measure temperature and humidity

    Use Climate Duo to let Otto measure environmental temperature and humidity.

  • Detect environmental light levels

    Use the light sensor to detect and measure light from natural sunlight or flashlights.

  • Detect rotation and shaking

    Use the tilt sensor to detect rotation on the robot and movement when it is shaken.

  • Execute commands with a button

    Push the button to execute quick commands.

  • Precisely adjust levels and speed

    Use the potentiometer to precisely adjust brightness, speed levels, and more.

  • Fine-tune values with rotary steps

    Use the encoder with button for precise step rotation when fine-tuning multiple variables and codes.

  • Measure acceleration for reactions and games

    Use the accelerometer to measure robot acceleration for diverse reactions and engaging games.

  • Display graphics with the LED matrix

    Use the color LED matrix for RGB retro pixel graphics, emojis, mouths, light effects, and scrolling text.

  • Control voice and music files

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

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