I have made a system that controls 2 ESC's. The ESC has a built-in BEC, and therefor I've connected just 2 wires (the ground and the signal) instead of those 3 wires to the system controller.
The other 2 wires that supplies the ESC's with energy for the motors go to the primary battery, and the other 3 wires go to the motor itself.
The problem is that I don't understand how to program it. How to set it up. I've succeed just once, while the last tries failed.
I can vouch for the ESC that's working, that's a certainty.
Hi, use the servo library and use the esc like it is a servo (they work in the same way)
// Sweep
// by BARRAGAN <http://barraganstudio.com>
// This example code is in the public domain.
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
conect the pin 9 on the arduino to the signal of your esc and the motor should start moving slowly and then go to the maximun throttle take cara of the motor it can go creazy and roll over the place xD
The ESCs were set up in the proper way, while the only problem seemed to arise from the micro controller's setup. Instead of incrementing by one the voltage digits, I was just flipping directly from 0V to say 5V, and by this, the engine couldn't start to run.