# OttoDIY/OttoDIY+  mBlock

**Background information:**

​

About OttoDIY biped robot that walk, dance and talks with beeps [https://wikifactory.com/+OttoDIY/otto-diy](https://wikifactory.com/+OttoDIY/otto-diy) or for OttoDIY+ [https://wikifactory.com/+OttoDIY/otto-diy-plus](https://wikifactory.com/+OttoDIY/otto-diy-plus)

​

Suitable project for teaching digital technology to students from Yr5 to Yr 10 or **anyone...**

​

​

### **Build Your Own Robot**

> ### Otto DIY can be made with [Builder Kit \(full with 3D printed parts\)](https://ottodiy.ecwid.com/Otto-DIY-Builder-Kit-p135022769)  and [Maker Kit \(only electronics\)](https://ottodiy.ecwid.com/Otto-DIY-Maker-Kit-p135022782) or create your own project with this open source content.

## How it Works

**How to build and code your Ottodiy:**


1. How to 3D print Otto body parts
2. Bill of materials - electronic parts are needed 
3. How to install software \(mBlock and Arduino\)
4. Check Nano micro-board \(Otto's brain\) & upload servo sketch
5. How to Build Ottodiy bot and tips along the way
6. Tutorials on how to used OttoDIY extension in mBlock
7. Expand students understanding of code by editing in Arduino
8. Add accessories to Ottos with art supplies i.e. wool for hair 
9. Change Otto body parts by importing into Tinkercad

​

Tutorials are detail YouTube videos to give you a visual understanding and I hope to expand this method to more advanced Otto+ with but still give students the option to the easier block coding mBlock software.

## Part List

Here there is a list of the materials you will need to build Otto.

1x Arduino NANO Shield I/O

1x USB-A to Mini-USB Cable

1x HC-SR04 Ultrasound sensor

4x Micro servo SG90 9g

1x Buzzer

6x Female/Female Jumper Wires

1x AA battery holder \(stacked 2x2 a total of 4AA Battery\)

4x AA Batteries Alkaline \(must be new or have 1.5V each\)

1x Micro Switch Self lock On/Off 8x8mm 

​

@[youtube](https://youtube.com/embed/kNmIOcXrUU8)

​

​

* **3D printed head**
* **3D printed body**
* **3D printed leg x2**
* **3D printed foot x2** 

**Tools:**

* 1 x Small Phillips screwdriver.
* Computer.
* Scissors or pliers
* File tool

​

## Testing the electronics



### **Before inserting the AA batteries you should check the your connections and test your robot with the USB cable connected to a computer.**

As a good practice you should check your electronics and software in your computer, before assembling all robot to avoid having to disassemble the whole robot to fix something:

​

1. Have Install the mBlock3 or Arduino IDE software.
2. Download all the libraries from the files tab and move to C:\Users\user\Documents\Arduino\libraries \(or wherever your libraries folder was installed\)
3. Connect your Arduino Nano through USB make sure the **driver CH340** is installed in your computer
4. install the driver CH340 for your Operative System find it here:[ https://sparks.gogo.co.nz/ch340.html](https://sparks.gogo.co.nz/ch340.html)

​

For more advanced coding and to try more advanced Otto commands you can download[ Arduino IDE \(version 1.8.5\) https://www.arduino.cc/en/Main/OldSoftwareReleases\#previous](https://www.arduino.cc/en/Main/OldSoftwareReleases#previous)

## Nano board & upload servo sketch

Check Nano micro-board \(Otto's brain\) and upload 1st program called a sketch using Arduino IDE program to calibrate Otto legs & feet.

​

This Otto servo position sketch made by Nicu FLORICA \(niq-ro\) for verify position for Otto legs. 

​

@[youtube](https://youtube.com/embed/fxjK85jrM7k)

​

​

## How to Build & some tips

Here is OttoDIY / OttoDIY+ build Pt.3 - Assembly youtube tutorial

OttoDIY / OttoDIY+ build involves installing Otto's Ultrasonic eyes, touch sensor in head, servos for legs and feet.

Manually calibrate servos, then connecting power to Arduino microboard \(Otto's brain\) to run Servo Position sketch/program. Refer to previous OttoDIY Build Pt.2 - UpLoad Otto Servo program tutorial on how to install this program.

@[youtube](https://youtube.com/embed/bzleDyvgUiw)

This is detailed assembly of Otto's Body, with legs and feet, add power via rechargeable batteries and servo calibration, next tutorial OttoDIY Build Pt.4 - Finish assembly of Otto tutorial video \(Robotic Creations - YouTube\)

​

Otto Build Pt.4 - Finish assembly of Otto tutorial

@[youtube](https://youtube.com/embed/uMcn7tC99Ok)

​

​

## Installing mBlock3 & examples

This Youtube tutorial shows you how to install mblock program \(similar to Scratch 2\) and Ottodiy extension to use custom robot blocks in Arduino mode for programming Ottodiy bots, beginners first biped robot.

By loading example blocks for first moves, beginners can easliy understand how to use these blocks to produce Arduino syntax code and upload to their Otto bot.

​

Perfect for a lessons in progamming for teachers, using otto bots.

​

@[youtube](https://youtube.com/embed/AxgMBpNjg04)

​

​

​

## Fine Calibrating of  legs & feet

@[youtube](https://youtube.com/embed/787gpaxXM1A)

Detail look at how to calibrate your OttoDIY and OttODIY+ legs and feet by using Ottodiy extension by Hien Phan for mBlock.

​

This mBlock code is an easy way to get the 4 servos that move Otto's legs and feet perfectly now you can have Otto walking straight!

​

​

​

## Join the Otto Builder community!

Follow us, subscribe, give us a like and share your creativity.

​

1. [Join us here in Wikifactory](https://wikifactory.com/invite/SW52aXRlTGluazoyMA/y3FSSTdwlvXk1KcSuFHExd5FpbREp95dgIGcIudH51M) [](https://www.youtube.com/c/ottodiy?sub_confirmation=1)& check our [Forum](https://wikifactory.com/+OttoDIY/forum) for questions.
2. [Group in Facebook](https://www.facebook.com/groups/ottodiy/). to share and ask for help in the community and like our [Facebook page](https://www.facebook.com/ottodiy/) 
3. [YouTube channel](https://www.youtube.com/c/ottodiy?sub_confirmation=1) for more how to videios and tutorials.
4. [Instagram](https://www.instagram.com/ottodiy/) to share \#ottodiy
5. [Twitter](https://twitter.com/ottodiy) to share \#ottodiy

​

You could be featured here by share your robot in any social media; Just use the hashtag \#ottodiy in your post and tag or mention +OttoDIY

​

Be a part of this friendly community of robot builders, teachers and makers!

​

Welcome to our Otto Builder community!

## License CC-BY-SA

Otto DIY by www.ottodiy.com is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

​

You can use all resources of Otto for free but Otto DIY Website must be included in any redistribution and remixes must keep the CC-BY-SA license, As you might seen with the original Otto DIY project the idea is that more people can have access, therefore if you copy or remix Otto you must also release under same open license, that means you must release all files also to the public.