Maker.io main logo

Otto DIY Robot Walking - Quick & Easy to Do Tutorial

102

2026-07-24 | By Ron Cutts

License: GNU Lesser General Public License Microcontrollers Motors Arduino ESP32

In this tutorial, we will learn how to easily program the Otto DIY Robot to walk.

Watch the demonstration video.

What You Will Need

  1. Otto Robot: See the instructions on how to build it in a few steps here.

  2. Visuino program: Download Visuino

What You Will Need

What You Will Need photo 2

Start Visuino, and Select the Arduino UNO Board Type

To start programming the Arduino, you will need to have the Arduino IDE installed from here: https://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher; otherwise, this will not work! If you have not done so, follow the steps to set up the Arduino IDE to program Arduino Nano! The Visuino: https://www.visuino.eu also needs to be installed. Start Visuino as shown in the first picture. Click on the "Tools" button on the Arduino component (Picture 1) in Visuino. When the dialog appears, select "Arduino UNO" as shown in Picture 2

Start Visuino, and Select the Arduino UNO Board Type

Start Visuino, and Select the Arduino UNO Board Type photo 2

In Visuino, Add Components

Add Components:

  1. Add 2X "Analog Value" component

  2. Add 2X "Divide Analog By Value" component

  3. Add 2X "Sine Analog Generator" component

  4. Add 2X "Servo" component

In Visuino Add Components

In Visuino Add Components photo 2

In Visuino Add Components photo 3

In Visuino Add Components photo 4

In Visuino Set Components

  1. Select "AnalogValue1" component and in the properties window set "Value" to 20

  2. Select "AnalogValue2" component and in the properties window, set "Value" to 20

  3. Select "DivideByValue1" component and in the properties window set "Value" to 180

  4. Select "DivideByValue2" component and in the properties window set "Value" to 180

  5. Select "SineAnalogGenerator1" component and in the properties window set "Phase" to 0.65, "Frequency" to 1, and "Offset" to 0.5

  6. Select "SineAnalogGenerator2" component and in the properties window set "Phase" to 0.5, "Frequency" to 1, and "Offset" to 0.5

  7. Select "Servo1" and set the name to "LR1" << we set this for easier understanding. This means leg right.

  8. Select "Servo2" and set name to "FR1" <<This means Foot Right

  9. Select "Servo3" and set name to "LL1" <<This means Leg Left

  10. Select "Servo4" and set name to "FL1" << This means Foot Left

In Visuino Set Components

In Visuino Set Components photo 2

In Visuino Set Components photo 3

In Visuino Set Components photo 4

In Visuino Set Components photo 5

In Visuino Connect Components

  1. Connect "AnalogValue1" component pin[Out] to "DivideByValue1" component pin [In]

  2. Connect "AnalogValue2" component pin[Out] to "DivideByValue2" component pin [In]

  3. Connect "DivideByValue1" component pin [Out] to "SineAnalogGenerator1" pin[Amplitude]

  4. Connect "DivideByValue2" component pin [Out] to "SineAnalogGenerator2" pin[Amplitude]

  5. Connect "SineAnalogGenerator1" pin[Out] to "LR1" component pin [In] and "LL1" component pin [In]

  6. Connect "SineAnalogGenerator2" pin[Out] to "FR1" component pin [In] and "FL1" component pin [In]

  7. Connect "LR1" component pin [Out] to Arduino Digital pin[3]

  8. Connect "FR1" component pin [Out] to Arduino Digital pin[5]

  9. Connect "LL1" component pin [Out] to Arduino Digital pin[2]

  10. Connect "FL1" component pin [Out] to Arduino Digital pin[4]

Note: Please check that Arduino pins[2,3,4,5] match the connections on your servo motor shield for the leg and foot, and change them if necessary.

In Visuino Connect Components

In Visuino Connect Components photo 2

Generate, Compile, and Upload the Arduino Code

In Visuino, Press F9 or click on the button shown in Picture 1 to generate the Arduino code, and open the Arduino IDE

In the Arduino IDE:

  • Click on the Menu "Tools" and select the Board "Arduino Nano" (Picture 2)

  • Click on the Menu "Tools" and select the Port

  • Click on the Menu "Tools" and select the Port

  • Click on the Upload button to compile and upload the code (Picture 3)

    Note: If you find some problems uploading the code, you can click on the Menu Tools>Processor:..>ATMega328P (Old Bootloader)

Generate, Compile, and Upload the Arduino Code

Generate, Compile, and Upload the Arduino Code photo 2

Generate, Compile, and Upload the Arduino Code photo 3

Play

If you power the Otto Robot, it will start to walk.

Congratulations! You have completed your Otto project with Visuino. Also attached is the Visuino project that I created for this. You can download it here.
You can download and open it in Visuino: https://www.visuino.eu

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.