How to calibrate esc please

H there, can anyone give me a technique how to calibrate the 4 esc. i want all my esc turning at the same value.
my problem is there is some motor statr spi,ing befor other with same value

fo example

m1.writemicrseconde(600); // spin
m2.writemicrseconde(600); // not spining
m3.writemicrseconde(600); // not spining
m4.writemicrseconde(600);// not spii,ig

i'm using due
here is the code

#include <Servo.h>
Servo m1;
Servo m2;
Servo m3;
Servo m4;
#define MAX_SIGNAL 2400
#define MIN_SIGNAL 544
void setup() {
 Serial.begin(250000);
  while (!Serial.available());
  //m4
  pinMode(24, OUTPUT);
  digitalWrite(24, LOW);

  //m3
  pinMode(2, OUTPUT);
  digitalWrite(2, LOW);
  
  m1.attach(52);
  delay(3000);

  m2.attach(9);
  (3000);

  m3.attach(3);
  (3000);

  m4.attach(22);
  delay(3000);

 m1.writeMicroseconds(2400);
  delay(1000);
  m1.writeMicroseconds(544);
  delay(3000);

  m2.writeMicroseconds(2400);
  delay(1000);
  m2.writeMicroseconds(544);
  (3000);

  m3.writeMicroseconds(2400);
  delay(1000);
  m3.writeMicroseconds(544);
  (3000);

  m4.writeMicroseconds(2400);
  delay(1000);
  m4.writeMicroseconds(544);
  (9000);
}

void loop() {

m1.writeMicroseconds(600);
m2.writeMicroseconds(600);
m3.writeMicroseconds(600);
m4.writeMicroseconds(600);



}

can anyone help me please

Calibrating the ESC is something that depends on the firmware. Check the documentation for the ESC you have or the firmware you installed.

in general to calibrate esc you need to put full throtel then plug your esc and put down you throtel

When you calibrate an ESC it uses full on and full off commands from transmitter(TX) or radio so each ESC will be calibrated to the same rate as dictated by your TX.

When one calibrates an ESC for say a quadcopter, car or plane. One connects a servo to an RX with power added and sticks at neutral. Once power is applied the ESC will let off some beeps signaling you move the throttle stick of your TX to full then another beep tells you when to drop it comepletely down. Then it beeps again when it's done. Now remove power and turn off TX. Your ESC will now be calibrated to run any motor.

Please DO NOT perform this action with a motor attached!!!! As It WILL damage you the motor and the ESC.

What exactly are you building? Multiwii Flight controller software has an added utility to the programming to calibrate up to 8 esc's at once. If your looking to do this using code I would check that first as might save you some steps and time.

Hope this helps.

Edited

All of That just calibrates the ESC, then you have to calibrate the transmitter to the esc's. All Transmitters are calibrated a lil differently with themselves meaning they are not perfect. But to fix that some one smarter than me added a point system to to transmitters that allows you to tune your transmitter to HAVE more perfect settings. They look like

1500 top most speed

0 neutral

-1500 reverse most speed.

But it's hard to get the controller there so you have to use a calibration software with your transmitter to change the points going back fourth from mid points to highs and lows and on all directions using the transmitters control sticks. Think of it like a more advanced trimming system. The closer you get to 1500 0 and -1500 the better control you will have and the less trim to even it out during use.

Thanks for all your replay :), first i'm building an experemental quadcopter from the scratch.
and i find how to calibrate. i have to power off the esc when i calibrate after i power them all.
Thanks

Yep that's how it works. It better and easier for most people to calibrate each ESC 1 by 1. Either way they will be calibrated right.

I've built a few flying machines myself feel free to contact me if you need advice.