hi tnx for u r help anyway>>> i came out of that easily with my prof advise>>>
he advised me to use the microseconds value for the esc and arm the same >>>
my esc arms at 100ms and has the highest throttle range of 2000ms......
now all is working like charm>>>>\
my next point of interest is using the gsm module and the at commands>>>>
kindly give me essential details
#include <Servo.h>
Servo motor;
void esc() {
delay(5000);
Serial.print("Sending lowest throttle");
motor.writeMicroseconds(1000);
delay(2000);
Serial.print("Low throttle sent");
}
void setup() {
Serial.begin(9600);
motor.attach(9);
Serial.print("ESC calibration started");
esc();
Serial.print("ESC calibration completed");
}
void loop() {
if (Serial.available()>0) {
int key = Serial.read();
switch(key) {
case '1':
motor.writeMicroseconds(1250);
delay(2000);
break;
case '2':
motor.writeMicroseconds(1400);
delay(2000);
break;
case '3':
motor.writeMicroseconds(1750);
delay(2000);
break;
case '4':
motor.writeMicroseconds(2000);
delay(2000);
break;
case '5':
motor.writeMicroseconds(2500);
delay(2000);
break;
default:
motor.writeMicroseconds(1000);
break;
}
}
}
Tjhis is the code i used for controlling the motor