# The uno development board cannot operate the servos at the same time

**URL:** <https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562>\
**Category:** Motors, Mechanics, Power and CNC\
**Created:** [March 26, 2025, 10:53am UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562 "2025-03-26T10:53:34Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sefadlkk44](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sefadlkk44/32/1127065_2.png) [@sefadlkk44](https://forum.arduino.cc/u/sefadlkk44)\
**Post date:** [March 26, 2025, 10:53am UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/1 "2025-03-26T10:53:35Z")

</div>

When I move the servos at the same time, they do not move as I want, they get mixed up and make different movements. The code is here

```arduino
#include <Servo.h>

// Servo motorlarını tanımla
Servo frontLeftMotor1;
Servo frontLeftMotor2;
Servo frontRightMotor1;
Servo frontRightMotor2;
Servo backLeftMotor1;
Servo backLeftMotor2;
Servo backRightMotor1;
Servo backRightMotor2;

void setup() {
  // Servoları uygun pinlere bağla
  frontLeftMotor1.attach(2); // Servo 1, Pin 2
  frontLeftMotor2.attach(3); // Servo 2, Pin 3
  frontRightMotor1.attach(4); // Servo 3, Pin 4
  frontRightMotor2.attach(5); // Servo 4, Pin 5
  backLeftMotor1.attach(6); // Servo 5, Pin 6
  backLeftMotor2.attach(7); // Servo 6, Pin 7
  backRightMotor1.attach(8); // Servo 7, Pin 8
  backRightMotor2.attach(9); // Servo 8, Pin 9
  
  // Başlangıçta tüm servoları 90 dereceye ayarla
  frontLeftMotor1.write(90);  
  frontLeftMotor2.write(90);  
  frontRightMotor1.write(90); 
  frontRightMotor2.write(90); 
  backLeftMotor1.write(90);   
  backLeftMotor2.write(90);   
  backRightMotor1.write(90);  
  backRightMotor2.write(90); 
  
  delay(1000); // Servoların 90 dereceye ayarlandığından emin olmak için 1 saniye bekle
}

void loop() {
  // İleri hareket için servoları belirli bir açıya ayarla
  moveForward();
}

void moveForward() {
  // Ön sol ayak - servoları ileriye hareket ettir
  frontLeftMotor1.write(45); // İlk servo (açı değiştirilebilir)
  delayMicroseconds(500); // Mikro-delay ile zamanlama
  frontLeftMotor2.write(135); // İkinci servo (açı değiştirilebilir)
  delayMicroseconds(500); // Mikro-delay ile zamanlama

  // Ön sağ ayak - servoları ileriye hareket ettir
  frontRightMotor1.write(45); // İlk servo
  delayMicroseconds(500); // Mikro-delay ile zamanlama
  frontRightMotor2.write(135); // İkinci servo
  delayMicroseconds(500); // Mikro-delay ile zamanlama

  // Arka sol ayak - servoları ileriye hareket ettir
  backLeftMotor1.write(45); // İlk servo
  delayMicroseconds(500); // Mikro-delay ile zamanlama
  backLeftMotor2.write(135); // İkinci servo
  delayMicroseconds(500); // Mikro-delay ile zamanlama

  // Arka sağ ayak - servoları ileriye hareket ettir
  backRightMotor1.write(45); // İlk servo
  delayMicroseconds(500); // Mikro-delay ile zamanlama
  backRightMotor2.write(135); // İkinci servo
  delayMicroseconds(500); // Mikro-delay ile zamanlama
}

```

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [March 26, 2025, 10:59am UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/2 "2025-03-26T10:59:58Z")

</div>

How are the servos powered ?

---

<div class="post-metadata">

**Author:** ![sefadlkk44](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sefadlkk44/32/1127065_2.png) [@sefadlkk44](https://forum.arduino.cc/u/sefadlkk44)\
**Post date:** [March 26, 2025, 11:01am UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/3 "2025-03-26T11:01:19Z")

</div>

from computer usb

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [March 26, 2025, 11:04am UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/4 "2025-03-26T11:04:48Z")

</div>

Please post a schematic of your project

A picture of a hand drawn circuit is good enough

---

<div class="post-metadata">

**Author:** ![docdoc](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/docdoc/32/220907_2.png) [@docdoc](https://forum.arduino.cc/u/docdoc)\
**Post date:** [March 26, 2025, 11:22am UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/5 "2025-03-26T11:22:58Z")

</div>

What do you mean with "computer usb"? I hope you aren't powering eight servos from Arduino pins...

---

<div class="post-metadata">

**Author:** ![kmin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kmin/32/1147370_2.png) [@kmin](https://forum.arduino.cc/u/kmin)\
**Post date:** [March 26, 2025, 2:18pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/6 "2025-03-26T14:18:49Z")

</div>

> [@sefadlkk44](#):
>
> When I move the servos at the same time,

You forgot to post what servos you use.  
Even the tiny SG90 draws 650mA at start, eight of them starting at the same time would draw 5A, way more than computer USB can supply.  
~~Also, afaik you cant use pin 9 with that library.~~

---

<div class="post-metadata">

**Author:** ![docdoc](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/docdoc/32/220907_2.png) [@docdoc](https://forum.arduino.cc/u/docdoc)\
**Post date:** [March 26, 2025, 2:34pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/7 "2025-03-26T14:34:15Z")

</div>

> [@kmin](#):
>
> draw 5A, way more than computer USB can supply.

Absolutely true, but I suspect it's worse than that: it looks like he's trying to power all the servos from the poor Arduino 5V pin. If confirmed, he's lucky not having fried the board yet...

---

<div class="post-metadata">

**Author:** ![david\_2018](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/david_2018/32/1013044_2.png) [@david\_2018](https://forum.arduino.cc/u/david_2018)\
**Post date:** [March 26, 2025, 2:38pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/8 "2025-03-26T14:38:41Z")

</div>

> [@kmin](#):
>
> Also, afaik you cant use pin 9 with that library.

Should be able to use any pin for the servos. The PWM function for pins 9 and 10 (on an atmega328) cannot be used because the Servo library uses the timer needed for PWM on those pins.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [March 26, 2025, 2:42pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/9 "2025-03-26T14:42:51Z")

</div>

> [@sefadlkk44](#):
>
> from computer usb

That doesn't work, as you have discovered, and can even damage both the Arduino and the USB port.

Power servos **separately** , using a power supply capable of at least 1 Ampere per servo for SG-90 and 2.5 Amperes/servo for large ones like MG996R.

Don't forget to connect the grounds.

 ![servo_pwr](https://europe1.discourse-cdn.com/arduino/original/4X/a/5/9/a59f08898ba1bfbb945c813926509e939d38ad4b.png)

---

<div class="post-metadata">

**Author:** ![kmin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kmin/32/1147370_2.png) [@kmin](https://forum.arduino.cc/u/kmin)\
**Post date:** [March 26, 2025, 2:43pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/10 "2025-03-26T14:43:10Z")

</div>

> [@docdoc](#):
>
> If confirmed, he's lucky not having fried the board yet.

Together with USB card of computer.

---

<div class="post-metadata">

**Author:** ![kmin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kmin/32/1147370_2.png) [@kmin](https://forum.arduino.cc/u/kmin)\
**Post date:** [March 26, 2025, 2:50pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/11 "2025-03-26T14:50:25Z")

</div>

> [@david\_2018](#):
>
> Should be able to use any pin for the servos. The PWM function for pins 9 and 10 (on an atmega328) cannot be used because the Servo library uses the timer needed for PWM on those pins.

Correct.  
My mistake. Only PWM is out of play.

---

<div class="post-metadata">

**Author:** ![DaveX](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/davex/32/751443_2.png) [@DaveX](https://forum.arduino.cc/u/DaveX)\
**Post date:** [March 26, 2025, 3:42pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/12 "2025-03-26T15:42:40Z")

</div>

> [@sefadlkk44](#):
>
> `delayMicroseconds(500); // Mikro-delay ile zamanlama`

500us isn’t very long compared to a servo motion. What is the code supposed to do?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [September 22, 2025, 3:43pm UTC](https://forum.arduino.cc/t/the-uno-development-board-cannot-operate-the-servos-at-the-same-time/1367562/13 "2025-09-22T15:43:27Z")

</div>

Closed on September 22, 2025, 3:43pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
