Otto DIY Robot Walking - Quick & Easy to Do Tutorial

by RonFrtek in Circuits > Arduino

3396 Views, 5 Favorites, 0 Comments

Otto DIY Robot Walking - Quick & Easy to Do Tutorial

Otto DIY Robot Walking - Visuino

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

Watch a demonstration video.

What You Will Need

large.png
VisuinoAdvrtisementM5Stack6.jpg
  1. Otto Robot you can purchase it here
    or see the instructions on how to build it in a few steps here.
  2. Visuino program: Download Visuino

Start Visuino, and Select the Arduino UNO Board Type

FFR2XFGK1UXJLG8.LARGE.jpg
2019-12-09_11-42-12.jpg

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 Instructable will not work! If you have not done follow the steps in this Instructable to setup 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 on Picture 2

In Visuino Add Components

analog-value.jpg
divide-analog-by-value.jpg
sine-analog-generator.jpg
servo-motor.jpg

Add Components:

  1. Add 2X "Analoge Value" component
  2. Add 2X "Divide Analog By Value" component
  3. Add 2X "Sine Analog Generator" component
  4. Add 2X "Servo" component

In Visuino Set Components

2019-12-09_12-10-22.jpg
2019-12-09_12-18-17.jpg
2019-12-09_12-24-43.jpg
2019-12-09_12-27-43.jpg
2019-12-09_12-27-23.jpg
  1. Select "AnalogValue1" component and in the properties window set "Value" to 20
  2. Select "AnalogValue2" component and in the properties windowset "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 and "Frequency" to 1 and "Offset" to 0.5
  6. Select "SineAnalogGenerator2" component and in the properties window set "Phase" to 0.5 and "Frequency" to 1 and "Offset" to 0.5
  7. Select "Servo1" and set 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 Connect Components

otto.png
2019-12-09_12-40-01.jpg

  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(leg and foot) and change them if necessary.

Generate, Compile, and Upload the Arduino Code

F0P14MMK1UXJMQ8.LARGE.jpg
nano-arduino.jpg
FCG1WWZK1UXJMQ7.LARGE.jpg

In Visuino, Press F9 or click on the button shown on 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)

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 Instructable, you can download it here.
You can download and open it in Visuino: https://www.visuino.eu