I'm a newbie with Arduino, trying to create a centrifuge with Arduino Yun based on http://m.instructables.com/id/Centrifuge/. I'm not really sure what I should to to configure/calibrate my motor and ESC (picture of ESC and motor specifications attached).
I've spent many hours scouring Google, Youtube, and other tutorial sites but I've found conflicting information. Some people said I should send a maximum throttle before powering up the ESC while some others mentioned that the first signal should be a zero throttle.
Can anyone advise me what I should do (preferably step-by-step) and/or what code should I use? Please let me know if there is any other detail I need to specify here. Much thanks!
Zapro:
What does the documentation for the ESC say?
Usually you boot it up with maximum throttle applied, the motor beeps, pull down the throttle and it beeps again. Done!
// Per.
The manual says this:
a. Turn on transmitter then push throttle forward fully.
b. Turn on ESC then LED flashes rapidly. Max throttle range will be restored well after hearing two beep sounds (1KHz). All set values will be restored back to default automatically if throttle stayed at maximum for more than 10 seconds.
c.Pull down throttle to half range (less than 50%), then LED flashes slowly. Min throttle range will be restored well after hearing two beep sounds (1KHz).
If I use this code, am I following the manual correctly?
#include <Servo.h>
int value = 0; // set values you need to zero
Servo firstESC; //Create as much as Servoobject you want.
void setup() {
firstESC.attach(9); // attached to pin 9 I just do this with 1 Servo
Serial.begin(9600); // start serial at 9600 baud
}
void loop() {
//First connect your ESC WITHOUT Arming. Then Open Serial and follo Instructions
firstESC.writeMicroseconds(value);
if(Serial.available())
value = Serial.parseInt(); // Parse an Integer from Serial
}