Guides · 8 min read

Otto DIY Robot: Build a Walking, Dancing Arduino Nano Biped

Build the Otto DIY robot: 4 SG90 servos, Arduino Nano, HC-SR04 and a 3D-printed body; servo trim table, walking, dancing, obstacle avoidance, Bluetooth, ESP32.

Building an Otto DIY robot brings servo motors, sensors and coding together in one charming project. Otto is an open-source, two-legged walking robot made from four SG90 servos, an Arduino Nano, an HC-SR04 ultrasonic sensor that acts as its eyes, and a 3D-printed body. It walks, turns, dances, makes sounds and backs away when it meets an obstacle. Because the parts are cheap and the code is free, it's a favourite in robotics classes around the world, especially in schools in Spain and Latin America.

In this guide you'll see how Otto walks, the parts list and the wiring table. Then you'll set the servos to 90 degrees before assembly, make the robot stand perfectly straight using a trim (calibration) table, and use the Otto library to make it walk, dance and avoid obstacles. Finally come Bluetooth control from your phone with an HC-05, block programming options and an ESP32 version with built-in Bluetooth.

SG90 servo motor that moves the Otto robot's legs and feet
All four of Otto's joints are driven by SG90 micro servos: two hips and two ankles.

What is Otto DIY and how does it walk?

Otto is an open-source project started by Camilo Parra Palacio, inspired by earlier bipeds such as BoB the BiPed and Zowi; its 3D files and code can be downloaded for free. The robot has no knees: on each leg a hip servo rotates the leg around the vertical axis, and a foot servo tilts the sole from side to side. Walking comes from these four servos swinging back and forth like sine waves. Each servo follows angle = 90 + offset + amplitude × sin(2π t / T + phase), where T is the duration of one step. The foot servos lag the hips by 90 degrees: first the robot leans onto one foot, meanwhile the hips rotate and carry the lifted leg forward, then the weight shifts to the other foot. To turn, the two hips get different amplitudes, so one leg takes a longer step than the other.

MovementHip amplitude (YL, YR)Foot amplitude and offset (RL, RR)Foot phase shift
Walk forward30°, 30°20° (+4°, -4°)-90°
Walk backward30°, 30°20° (+4°, -4°)+90°
Turn left30°, 10°20° (+4°, -4°)-90°
Turn right10°, 30°20° (+4°, -4°)-90°

Parts list and 3D-printed body

PartQtyNote
Arduino Nano1ATmega328P with mini USB cable
Nano I/O expansion shield1Ready-made S-V-G headers for the servos
SG90 servo4Two hips, two feet; MG90S for more durability
HC-SR041Otto's eyes, obstacle detection
Passive buzzer1Driven with tone() for melodies
4xAA battery holder and switch1Alkaline 6 V or rechargeable NiMH 4.8 V
3D-printed parts6Head, body, 2 legs, 2 feet (PLA)
Screws and servo horns-Supplied with the servos

The body parts print easily in PLA with a 0.2 mm layer height and about 20% infill; total time ranges from a few hours to a day depending on your printer. The underside of the feet must be flat and smooth, otherwise the robot slips or staggers as it walks. If you don't have a 3D printer, use a printing service at a school or library, buy a ready-made Otto kit or cut the body from thick cardboard. Test every servo on its own before mounting it: a servo with stripped gears or jitter is the part that ruins walking the most. For how servos work in general, see What is a servo motor.

Otto robot wiring

PartArduino NanoESP32 versionNote
Left hip (YL)D2GPIO 25Servo signal
Right hip (YR)D3GPIO 26Servo signal
Left foot (RL)D4GPIO 27Servo signal
Right foot (RR)D5GPIO 33Servo signal
HC-SR04 TrigD8GPIO 18-
HC-SR04 EchoD9GPIO 19Via a 1 kΩ + 2 kΩ divider on the ESP32
Passive buzzerD13GPIO 23Other leg to GND
HC-05 TX / RXD11 / D12Not needed (built-in Bluetooth)1 kΩ + 2 kΩ divider from D12 to HC-05 RX
Servo and sensor powerBattery pack; Nano via VIN4 NiMH cells; ESP32 via its 5V/VIN pinAll grounds common
When all four servos move at once, peak current can exceed 1 A. A computer's USB port usually supplies 500 mA; run the robot on USB alone and the servos jitter, the Nano resets itself and steps get cut short. Upload code over USB, but let the robot walk on the battery pack. Check where the servo headers (V) on your Nano shield take their power from: ideally the servos run straight from the batteries and the Nano through VIN. Never power the servos from the small regulator behind the Nano's 5V pin. Use the battery life calculator to plan your runtime.

Assembly: set the servos to 90 degrees

  1. Before mounting the servos, connect them to the Nano and upload the calibration sketch below; all servos settle at 90 degrees.
  2. Fit the hip servos into the slots under the body and the foot servos into the leg parts.
  3. With the servos at 90 degrees, attach and screw on the horns so the legs point straight ahead and the soles sit parallel to the floor.
  4. Push the HC-SR04 into the eye holes in the head and place the buzzer and Nano shield inside the body.
  5. Plug the servo cables into the pins from the table, connect the battery holder and switch, and route the wires away from moving parts.
  6. Stand the robot on a flat surface and do the final adjustment with the trim steps below.

Servo calibration: the trim table

Because of the teeth on the servo shaft, you usually can't seat the horn at exactly 90 degrees; a few degrees of error remain. Trim values fix this: a small angle is added to or subtracted from each servo in code. The Otto library stores the four trims at EEPROM addresses 0–3 and reads them at every start-up when the fifth parameter of init() is true. You calibrate once and every later sketch uses the same setting. With a good assembly the trims stay within ±10 degrees; if one goes past 15 degrees, it's better to turn the horn by one tooth and refit it. Calibrate with the robot standing on a flat table and the batteries connected; servos fed from USB may settle at a different angle.

ServoName in the libraryCorrect poseAdjust keys (+ / -)
Left hipYL (D2)Left leg points straight aheada / z
Right hipYR (D3)Right leg points straight aheadk / m
Left footRL (D4)Left sole sits flat on the tables / x
Right footRR (D5)Right sole sits flat on the tablej / n
C++ (Arduino IDE)
1// Otto robot servo kalibrasyonu (trim) / Otto robot servo calibration (trim)
2#include <Otto.h>      // "OttoDIYLib" (Otto DIY)
3#include <EEPROM.h>
4
5const int LEFT_LEG = 2, RIGHT_LEG = 3, LEFT_FOOT = 4, RIGHT_FOOT = 5, BUZZER = 13;
6Otto robot;   // 'otto' adı kullanılamaz: kütüphanede #define otto var / 'otto' is a macro in the library
7int trimYL, trimYR, trimRL, trimRR;     // derece cinsinden düzeltme / correction in degrees
8
9int readTrim(int addr) {                // EEPROM'daki işaretli bayt / signed byte stored in EEPROM
10  int v = EEPROM.read(addr);
11  return v > 128 ? v - 256 : v;
12}
13
14void standStraight() {                  // trim'lerle 90 derecede dur / stand at 90 degrees with trims
15  robot.setTrims(trimYL, trimYR, trimRL, trimRR);
16  int pos[4] = {90, 90, 90, 90};
17  robot._moveServos(300, pos);
18  Serial.print(F("YL=")); Serial.print(trimYL);
19  Serial.print(F(" YR=")); Serial.print(trimYR);
20  Serial.print(F(" RL=")); Serial.print(trimRL);
21  Serial.print(F(" RR=")); Serial.println(trimRR);
22}
23
24void setup() {
25  Serial.begin(9600);
26  robot.init(LEFT_LEG, RIGHT_LEG, LEFT_FOOT, RIGHT_FOOT, false, BUZZER);
27  trimYL = readTrim(0); trimYR = readTrim(1); trimRL = readTrim(2); trimRR = readTrim(3);
28  bool blank = true;                    // hiç yazılmamış EEPROM 0xFF okur / never-written EEPROM reads 0xFF
29  for (int i = 0; i < 4; i++) if (EEPROM.read(i) != 0xFF) blank = false;
30  if (blank) trimYL = trimYR = trimRL = trimRR = 0;
31  standStraight();
32  Serial.println(F("a/z sol kalca, k/m sag kalca, s/x sol ayak, j/n sag ayak / left leg, right leg, left foot, right foot"));
33  Serial.println(F("w = kaydet / save, f = yuruyus testi / walk test, h = dinlen / rest"));
34}
35
36void loop() {
37  if (!Serial.available()) return;
38  char c = Serial.read();
39  switch (c) {
40    case 'a': trimYL++; break;
41    case 'z': trimYL--; break;
42    case 'k': trimYR++; break;
43    case 'm': trimYR--; break;
44    case 's': trimRL++; break;
45    case 'x': trimRL--; break;
46    case 'j': trimRR++; break;
47    case 'n': trimRR--; break;
48    case 'w':
49      robot.setTrims(trimYL, trimYR, trimRL, trimRR);
50      robot.saveTrimsOnEEPROM();             // EEPROM 0-3. adresler / EEPROM addresses 0-3
51      Serial.println(F("Kaydedildi / saved"));
52      return;
53    case 'f': robot.walk(2, 1200, FORWARD); return;
54    case 'h': robot.home(); return;
55    default: return;                        // satır sonu vb. / line endings etc.
56  }
57  standStraight();
58}

After uploading, open the Serial Monitor at 9600 baud; the line ending doesn't matter. Each key changes its trim by 1 degree, the robot moves to the new angle and the values are printed. Adjust the hips first: looking down at the robot, both toes should be parallel and point straight ahead. Then adjust the feet: the soles should sit on the table without gaps and the robot shouldn't lean left or right. When you're done, save with w and run a two-step walk test with f. If the robot keeps drifting to one side as it walks, change the matching hip trim by 1–2 degrees and try again. Install the library from the Arduino IDE Library Manager under the name OttoDIYLib.

The Otto library: walking, dancing and obstacle avoidance

FunctionWhat it does
walk(steps, T, dir)Walks; dir is FORWARD or BACKWARD, T is the time per step (ms)
turn(steps, T, dir)Turns while walking; dir is LEFT or RIGHT
moonwalker(steps, T, h, dir)Moonwalk; h is the height of the movement
crusaito(steps, T, h, dir)A dance step that moves sideways
swing(steps, T, h) / updown(steps, T, h)Sway side to side / bob up and down
jump(steps, T)Rises onto tiptoes and drops back
sing(S_happy)Plays a built-in sound (S_surprise, S_sad...)
home()Stands upright at 90 degrees and releases the servos

The code below performs a short dance at start-up, then keeps walking forward; when the HC-SR04 sees an obstacle closer than 15 cm, the robot makes a surprised sound, takes two steps back and turns left in three steps. Since sound travels at about 343 m/s, dividing the echo time in microseconds by 58 converts it into centimetres. pulseIn() gets a 30 ms timeout; if no echo returns, the function gives 0 and the code treats that as no obstacle. Drop T below 1000 ms and the robot speeds up, but the risk of slipping and falling grows. Distance measuring is covered in detail in the HC-SR04 distance sensor article.

C++ (Arduino IDE)
1// Otto robot: dans + engelden kaçma / Otto robot: dance + obstacle avoidance
2#include <Otto.h>   // "OttoDIYLib" (Otto DIY)
3
4const int LEFT_LEG = 2, RIGHT_LEG = 3, LEFT_FOOT = 4, RIGHT_FOOT = 5;
5const int BUZZER = 13, TRIG = 8, ECHO = 9;
6const int OBSTACLE_CM = 15;             // bu mesafeden yakınsa kaç / avoid when closer than this
7
8Otto robot;
9
10long distanceCm() {
11  digitalWrite(TRIG, LOW);
12  delayMicroseconds(2);
13  digitalWrite(TRIG, HIGH);
14  delayMicroseconds(10);
15  digitalWrite(TRIG, LOW);
16  unsigned long us = pulseIn(ECHO, HIGH, 30000UL);   // en fazla 30 ms bekle / wait at most 30 ms
17  if (us == 0) return 999;                           // yankı yok = engel yok / no echo = no obstacle
18  return us / 58;                                    // mikrosaniyeden cm'ye / microseconds to cm
19}
20
21void dance() {
22  robot.sing(S_happy);
23  robot.moonwalker(3, 1000, 25, LEFT);
24  robot.moonwalker(3, 1000, 25, RIGHT);
25  robot.crusaito(2, 1000, 20, FORWARD);
26  robot.swing(3, 1000, 20);
27  robot.updown(2, 1500, 20);
28  robot.home();
29}
30
31void setup() {
32  robot.init(LEFT_LEG, RIGHT_LEG, LEFT_FOOT, RIGHT_FOOT, true, BUZZER);   // true: EEPROM trim'lerini yükle / load trims from EEPROM
33  pinMode(TRIG, OUTPUT);
34  pinMode(ECHO, INPUT);
35  robot.sing(S_connection);
36  robot.home();
37  delay(1000);
38  dance();                                           // açılışta kısa bir dans / a short dance at start-up
39}
40
41void loop() {
42  if (distanceCm() <= OBSTACLE_CM) {
43    robot.sing(S_surprise);
44    robot.walk(2, 1000, BACKWARD);                    // iki adım geri / two steps back
45    robot.turn(3, 1000, LEFT);                        // üç adımda sola dön / turn left in three steps
46  } else {
47    robot.walk(1, 1000, FORWARD);
48  }
49}

Phone control over Bluetooth

Add an HC-05 or HC-06 module to the Nano and you can drive Otto from any Bluetooth serial terminal or remote-control app on an Android phone. The hardware serial port is shared with USB, so the module connects to D11 and D12 through SoftwareSerial. The module's RX input uses 3.3 V logic; put a 1 kΩ and 2 kΩ voltage divider between it and the Nano's D12 output (5 V × 2/3 = 3.3 V). The code listens for single-letter commands: F forward, B back, L left, R right, D dance, J jump, H happy sound, S stop. Assign these letters to the buttons in the app; the pairing PIN is usually 1234 or 0000. iPhones don't support classic Bluetooth serial; for them you need a BLE module or the ESP32 version. Details are in the HC-05 Bluetooth module article.

C++ (Arduino IDE)
1// Otto robot Bluetooth kontrol: HC-05 / HC-06 / Otto robot Bluetooth control: HC-05 / HC-06
2#include <Otto.h>
3#include <SoftwareSerial.h>
4
5const int LEFT_LEG = 2, RIGHT_LEG = 3, LEFT_FOOT = 4, RIGHT_FOOT = 5, BUZZER = 13;
6SoftwareSerial bt(11, 12);   // RX = D11 (HC-05 TX), TX = D12 -> bölücü -> HC-05 RX / via divider to HC-05 RX
7Otto robot;
8char command = 'S';
9
10void setup() {
11  bt.begin(9600);                         // HC-05/HC-06 varsayılan hızı / default baud rate
12  robot.init(LEFT_LEG, RIGHT_LEG, LEFT_FOOT, RIGHT_FOOT, true, BUZZER);
13  robot.home();
14  robot.sing(S_connection);
15}
16
17void loop() {
18  if (bt.available()) {
19    char c = toupper(bt.read());
20    if (c >= 'A' && c <= 'Z') command = c;   // satır sonlarını yok say / ignore line endings
21  }
22  switch (command) {
23    case 'F': robot.walk(1, 1000, FORWARD); break;           // ileri / forward
24    case 'B': robot.walk(1, 1000, BACKWARD); break;          // geri / backward
25    case 'L': robot.turn(1, 1000, LEFT); break;              // sola / left
26    case 'R': robot.turn(1, 1000, RIGHT); break;             // sağa / right
27    case 'D':                                               // dans / dance
28      robot.moonwalker(2, 1000, 25, LEFT);
29      robot.crusaito(2, 1000, 20, FORWARD);
30      command = 'S';
31      break;
32    case 'J': robot.jump(1, 1000); command = 'S'; break;     // zıpla / jump
33    case 'H': robot.sing(S_happy); command = 'S'; break;     // mutlu ses / happy sound
34    default: robot.home(); break;                            // S ya da bilinmeyen: dur / S or unknown: stop
35  }
36}

Block programming options

  • Otto Blockly: the Otto team's official Blockly-based editor; walk, turn, dance and sound blocks are ready, and it converts your blocks to Arduino code and uploads them to the Nano.
  • mBlock and similar tools: in block environments that support the Arduino Nano you can build the same moves with servo and ultrasonic blocks (Arduino with mBlock).
  • Arduino IDE and the library: the code in this article; the natural next step when you move from blocks to text code.
  • In class: try walking and sounds with blocks first, then add loops and conditions in the order shown in What is block coding, and finally write the same program in C++.

Otto with an ESP32

The Otto library works on the ESP32 too; it automatically uses the ESP32Servo library instead of Servo, so install it from the Library Manager together with EspSoftwareSerial, which the library needs to compile on the ESP32. The ESP32's biggest gain is built-in Bluetooth: you connect from your phone without an extra module. The code below appears as Otto-ESP32 via BluetoothSerial and, besides the same letter commands, switches to an automatic obstacle-avoidance mode with A. BluetoothSerial uses classic Bluetooth, so it only works on the original ESP32; on the ESP32-S3 and C3 you need BLE. The ESP32 runs at 3.3 V: the HC-SR04's Echo output is 5 V, so bring it down with a 1 kΩ and 2 kΩ divider. EEPROM on the ESP32 is emulated in flash, so writing the trims as constants in code is simpler. Power the robot from 4 NiMH cells (4.8 V) and the servos, the HC-SR04 and the ESP32's 5V pin all run safely from the same source.

C++ (Arduino IDE)
1// ESP32 Otto: dahili Bluetooth + otomatik engelden kaçma / ESP32 Otto: built-in Bluetooth + auto obstacle avoidance
2#include <Otto.h>              // ESP32'de ESP32Servo kütüphanesini kullanır / uses the ESP32Servo library on the ESP32
3#include <BluetoothSerial.h>   // klasik Bluetooth, yalnız orijinal ESP32 / classic Bluetooth, original ESP32 only
4
5const int LEFT_LEG = 25, RIGHT_LEG = 26, LEFT_FOOT = 27, RIGHT_FOOT = 33;
6const int BUZZER = 23, TRIG = 18, ECHO = 19;   // ECHO 5 V: bölücüyle 3,3 V'a indir / divide 5 V down to 3.3 V
7
8// Kalibrasyon kodunda bulduğun trim'ler / trims you found with the calibration sketch
9const int TRIM_YL = 0, TRIM_YR = 0, TRIM_RL = 0, TRIM_RR = 0;
10
11Otto robot;
12BluetoothSerial bt;
13char mode = 'S';
14
15long distanceCm() {
16  digitalWrite(TRIG, LOW);
17  delayMicroseconds(2);
18  digitalWrite(TRIG, HIGH);
19  delayMicroseconds(10);
20  digitalWrite(TRIG, LOW);
21  unsigned long us = pulseIn(ECHO, HIGH, 30000UL);
22  if (us == 0) return 999;
23  return us / 58;
24}
25
26void setup() {
27  robot.init(LEFT_LEG, RIGHT_LEG, LEFT_FOOT, RIGHT_FOOT, false, BUZZER);   // trim'ler EEPROM'dan değil / trims not from EEPROM
28  robot.setTrims(TRIM_YL, TRIM_YR, TRIM_RL, TRIM_RR);
29  pinMode(TRIG, OUTPUT);
30  pinMode(ECHO, INPUT);
31  bt.begin("Otto-ESP32");                      // telefonda bu adla görünür / appears on the phone under this name
32  robot.home();
33}
34
35void loop() {
36  if (bt.available()) {
37    char c = toupper(bt.read());
38    if (c >= 'A' && c <= 'Z') mode = c;
39  }
40  switch (mode) {
41    case 'F': robot.walk(1, 1000, FORWARD); break;
42    case 'B': robot.walk(1, 1000, BACKWARD); break;
43    case 'L': robot.turn(1, 1000, LEFT); break;
44    case 'R': robot.turn(1, 1000, RIGHT); break;
45    case 'A':                                  // otomatik mod / automatic mode
46      if (distanceCm() <= 15) {
47        robot.walk(2, 1000, BACKWARD);
48        robot.turn(3, 1000, LEFT);
49      } else {
50        robot.walk(1, 1000, FORWARD);
51      }
52      break;
53    default: robot.home(); break;               // S: dur / S: stop
54  }
55}

Common mistakes and fixes

SymptomLikely causeFix
The robot falls forward or backward while walkingWrong foot trims or T too shortRecalibrate the feet, set T to 1000–1500 ms
Servos jitter, the Nano resetsUSB or weak batteries can't keep upUse fresh batteries, feed the servos from them
Turns right on a turn-left commandHip cables swapped between D2 and D3Swap the cables or the pins in code
Steps on the spot without movingSlippery floor or rough solesTry a table or carpet, sand the soles
Never sees the obstacle, or always sees oneTrig and Echo swapped or sensor tiltedD8 Trig, D9 Echo; mount the sensor level
Bluetooth commands don't arriveTX and RX not crossed or baud rate not 9600HC-05 TX to D11, RX to D12 through the divider
Compile error: request for member ... in '4'The object is named otto; the library has #define otto 4Give the object another name, such as robot or Otto
The buzzer stays silentActive buzzer used or wrong pinConnect a passive buzzer to D13
If the trims vanish after you switch the robot off and on, the fifth parameter of init() may still be false; make sure it's true in your main sketch. If your school has several Ottos, write each robot's trim values on a small label under its body, so you can restore them in minutes when a Nano is swapped.
Arduino Nano, the brain of the Otto robot
The Arduino Nano is small enough to fit inside Otto's body; a Nano I/O shield makes the servo wiring much easier.

If you'd like to get to know the parts one by one before building Otto, look at the servo motor, potentiometer-controlled SG90 angle, HC-SR04 distance measuring and obstacle-avoiding robot projects in the BlueGrays app; each comes with a step-by-step circuit diagram and ready-to-use code. Once Otto is walking, move on to the wheeled and arm robots in the Arduino robot projects article.

Frequently asked questions

What do you need to build an Otto robot?

An Arduino Nano with a Nano I/O shield, four SG90 servos, an HC-SR04 ultrasonic sensor, a passive buzzer, a 4xAA battery holder and the 3D-printed body parts are enough. The body is printed in PLA, or you can buy a ready-made kit. To upload the code you need the Arduino IDE and the OttoDIYLib library.

How do you calibrate the Otto robot's servos?

First bring the servos to 90 degrees before assembly and fit the horns so the legs stand straight. Then use the calibration sketch to change each servo's trim in 1-degree steps until the legs point straight ahead and the soles are parallel to the floor. Save the values with saveTrimsOnEEPROM(); the main sketch loads them automatically in init().

Which library is used to program the Otto robot?

The official library is OttoDIYLib, installed from the Arduino IDE Library Manager. It contains ready-made movement and sound functions such as walk(), turn(), moonwalker(), jump() and sing(). It uses the Servo library on AVR boards and ESP32Servo on the ESP32.

Why does my Otto robot fall over or not walk?

The most common causes are wrong trim values, too little power and a slippery floor. Recalibrate the servos, run the robot on fresh batteries instead of USB and try it on a grippy surface like a table or carpet. Keeping the step time (T) between 1000 and 1500 ms improves balance.

How do you control the Otto robot from a phone?

Connect an HC-05 or HC-06 Bluetooth module to the Nano and send single-letter commands such as F, B, L and R from a Bluetooth serial app on Android. Put a voltage divider on the module's RX line to bring 5 V down to 3.3 V. The ESP32 version needs no extra module because it uses the built-in Bluetooth.

Can the Otto robot be programmed with blocks?

Yes. The Otto team's Blockly-based Otto Blockly editor has ready-made walking, dance and sound blocks, and it converts the blocks to Arduino code and uploads it to the Nano. In environments that support the Arduino Nano, such as mBlock, you can build the same moves with servo and sensor blocks. That's why it's popular in primary and secondary school robotics classes.

See all projects
HC-SR04 Distance Measurement (Serial Display)
AR-27Beginner

HC-SR04 Distance Measurement (Serial Display)

The HC-SR04 sensor works just like a bat finding its way in the dark: it sends out a sound you cannot hear, listens for the echo and measures how far away the object in front of it is.

4.6(52)
94
Using a Buzzer
AR-13Beginner

Using a Buzzer

Ever wondered how a doorbell or an alarm makes its sound? The Arduino makes a small buzzer beep at short intervals: beep, pause, beep, pause.

4.7(93)
180
Using a Servo Motor
AR-35Beginner
Premium

Using a Servo Motor

The arm of a small servo motor turns to three positions in turn: all the way to the start, right to the middle and all the way to the end, waiting two seconds at each stop.

4.7(49)
69
Obstacle Avoidance Robot
AR-81Advanced
Premium

Obstacle Avoidance Robot

How about building a smart vehicle that finds its own way? The Obstacle Avoidance Robot constantly scans its surroundings thanks to the ultrasonic sensor in front of it.

5.0(38)
49
Control an LED from Your Phone via Bluetooth
AR-34Beginner
Premium

Control an LED from Your Phone via Bluetooth

A small rehearsal for switching the lights in your room on and off from your phone.

4.8(69)
91
Servo Circle Choreography - Animated Patterns with 32 Servos
AR-97Advanced
Premium

Servo Circle Choreography - Animated Patterns with 32 Servos

A visual animation project driven by 32 servo motors arranged in a circle on an Arduino Mega. The servos are managed in a single array, connected to the Mega's pins 22–53, and perform four motion sequences: a chaotic jitter at random angles, a synchronized sweep, a wave travelling around the circle and a compass needle swinging left and right.

4.5(40)
62
ESP32 Servo Motor (Potentiometer Control)
ES-16Intermediate
Premium

ESP32 Servo Motor (Potentiometer Control)

In this project, we control an SG90 servo motor using a potentiometer. We adjust the servo angle by mapping the analog value read from the potentiometer to the 0–180-degree range. The ESP32Servo library generates servo signals on suitable output-capable GPIO pins of the ESP32; this project uses GPIO 18. This is a fundamental control method for robotic arms, camera gimbals, and automatic door mechanisms.

4.3(30)
42