Build an OTTO DIY robot with Arduino
FunduinoPublished on
Vom Bausatz zum tanzenden Roboter mit Ultraschall-Augen
You need this
Microswitch - miniature push button, normally open, various sizes — 7 * 7mm
0,63 € *Item no. F23106890About the product — Microswitch - miniature push button, normally open, various sizes — 7 * 7mm
Otto robot - DIY experiment kit, Arduino-controlled — with enclosure
39,90 € *Item no. F23105681About the product — Otto robot - DIY experiment kit, Arduino-controlled — with enclosure
Funduino SG90 servo motor - 9 g, 180°, 3.5-6 V
2,33 € *Item no. F23107201About the product — Funduino SG90 servo motor - 9 g, 180°, 3.5-6 V
V3.0 expansion board for Arduino Nano - 37 digital, 8 analog pins
2,43 € *Item no. F23107461About the product — V3.0 expansion board for Arduino Nano - 37 digital, 8 analog pins
HC-SR04 Ultrasonic Sensor - distance measurement 2-400 cm, 5 V
2,26 € *Item no. FUN-1010564About the product — HC-SR04 Ultrasonic Sensor - distance measurement 2-400 cm, 5 V
Passive buzzer - 5 V speaker, PWM control
0,90 € *Item no. F23106769About the product — Passive buzzer - 5 V speaker, PWM control
Funduino Nano R3 Microcontroller - ATmega328P, CH340, Soldered
9,18 € *Item no. FUN-1010562About the product — Funduino Nano R3 Microcontroller - ATmega328P, CH340, Soldered
Breadboard cables female-female - 40 pieces, 20 cm
1,67 € *Item no. FUN-1010559About the product — Breadboard cables female-female - 40 pieces, 20 cm
9 V battery clip - 5.5 x 2.1 mm DC barrel plug, 15 cm cable
0,96 € *Item no. F23106613About the product — 9 V battery clip - 5.5 x 2.1 mm DC barrel plug, 15 cm cable
DC Barrel Jack Adapter 5.5 x 2.1 mm - male, screw terminal, up to 24 V
0,96 € *Item no. F23106646About the product — DC Barrel Jack Adapter 5.5 x 2.1 mm - male, screw terminal, up to 24 V
All 10 parts together 61,22 € *Ready to ship immediately · Delivery time: 1-3 business days
* All prices include statutory VAT, plus shipping costs.
Funduino OTTO or OTTO DIY?
Set two servos to 90°
Insert the servos into the torso
Insert clips into the legs
1 / 2
Screw the legs onto the belly
1 / 2
Insert clips into the feet
Install the servos in the feet
1 / 2
Route the servo cables and clamp the feet in place
Plug in the NANO and connect the servos.
Use the ultrasonic sensor
1 / 2
Wire up the ultrasonic sensor
Connect the speaker
Connect the battery - fully assembled
Include the library and assign the pins
Include the library and assign the pins
#include <Otto.h> Otto Otto; #define LeftLeg 2 // Left leg pin #define RightLeg 3 // Right leg pin #define LeftFoot 4 // Left foot pin #define RightFoot 5 // Right foot pin #define Buzzer 13 // Speaker pin
The setup part
The setup part
void setup() {
Otto.init(LeftLeg, RightLeg, LeftFoot, RightFoot, true, Buzzer);
Otto.home();
}Movements
Movements at a glance
// Gehen: richtung 1 = vorwärts, -1 = rückwärts Otto.walk(schritte, zeit, richtung); Otto.walk(2, 1000, 1); // Beispiel: zwei Schritte vorwärts in 1000 ms // Drehen: richtung 1 = links, -1 = rechts Otto.turn(schritte, T, richtung); // Beugen: richtung 1 = links, -1 = rechts Otto.bend(schritte, T, richtung); // Bein schütteln Otto.shakeLeg(schritte, T, richtung); // Springen: hier gibt es keinen Richtungsparameter Otto.jump(schritte, T);
Dances
Dances at a Glance
// h beschreibt die Größe der Bewegungen Otto.moonwalker(schritte, T, h, richtung); // 1 = links, -1 = rechts; h zwischen 15 und 40 Otto.crusaito(schritte, T, h, richtung); // 1 = links, -1 = rechts; h zwischen 20 und 50 Otto.flapping(schritte, T, h, richtung); // 1 = vorne, -1 = hinten; h zwischen 10 und 30 Otto.swing(schritte, T, h); // h zwischen 0 und 50 Otto.tiptoeSwing(schritte, T, h); // h zwischen 0 und 50 Otto.jitter(schritte, T, h); // h zwischen 5 und 25 Otto.updown(schritte, T, h); // h zwischen 0 und 90 Otto.ascendingTurn(schritte, T, h); // h zwischen 5 und 50
Sounds and gestures
Sounds
// Melodie abspielen – songName aus der Liste unten einsetzen Otto.sing(songName); // Einzelnen Ton abspielen (Notenfrequenz, Abspielzeit, Pause danach) Otto._tone(10, 3, 1); // Tonübergang (Ausgangsfrequenz, Schlussfrequenz, Zusatz, Abspielzeit, Pause danach) Otto.bendTones(100, 200, 1.04, 10, 10);
Gestures
Otto.playGesture(OttoHappy); Otto.playGesture(OttoSuperHappy); Otto.playGesture(OttoSad); Otto.playGesture(OttoVictory); Otto.playGesture(OttoAngry); Otto.playGesture(OttoSleeping); Otto.playGesture(OttoFretful); Otto.playGesture(OttoLove); Otto.playGesture(OttoConfused); Otto.playGesture(OttoFart); Otto.playGesture(OttoWave); Otto.playGesture(OttoMagic); Otto.playGesture(OttoFail);
Rate the instructions