MultiWii Quadcopter

From ProjectPages
Jump to: navigation, search

Gallery

ESC Settings

I bought cheap, no-name ESCs and was fortunate enough to find a manual that matched the settings codes. See the links below.


<syntaxhighlight>

// use serial monitor to test // send any char to toggle between max and min throttle

  1. include <Servo.h>
  1. define escHigh 2000
  2. define escLow 700

String readString, servo1; Servo myservo1; // create servo object to control a servo int escSet = escHigh;

void setup() {

 Serial.begin(9600);
 myservo1.attach(9);  //the pin for the servo control 
 Serial.println("Calibrate Server"); 
 myservo1.writeMicroseconds(escSet); //set servo position 
 Serial.print ("Current setting = ");
 Serial.println (escSet);

}

void loop() {

 while (Serial.available()) {
    if (Serial.available() >0) {
     char c = Serial.read();  //gets one byte from serial buffer
     if (escSet == escHigh) 
       escSet = escLow;
     else 
       escSet = escHigh;
     myservo1.writeMicroseconds(escSet); //set servo position 
     Serial.print ("Current setting = ");
     Serial.println (escSet);
   } 
 } 

}

</syntaxhighlight>

The maximum throttle setting is 2000 and the minimum is 0700.

ESC Settings
Function Setting
Brake Off
Battery Type NiMH
CutoffMode Soft
Cutoff Voltage Low
Start Mode *Normal
Timing *Low
  • factory default

Links