Hi i used the code below yesterday, and it worked but it is not working today
#include <Servo.h>
Servo ESC;
void setup()
{
ESC.attach(8); //Specify here the pin number on which the signal pin of ESC is connected.
ESC.write(2); //ESC arm command. ESCs won't start unless input speed is less during initialization.
delay(3000); //ESC initialization delay.
}
void loop()
{
ESC.write(80); //Vary this between 40-130 to change the speed of motor. Higher value, higher speed.
delay(15);
}
i am using Arduino UNO, LI-PO battery 3S, 30A ESC and 2200KV brushless motor
my goal is to power up a brushless motor using arduino. i took this code from the net. it dosent seem to work. Can someone recommend another one or fix the code above.
You can't power much of anything with an Arduino. The +5 pin is to be used as an INPUT, NOT a power source for more than an led or two.
Add an EXTERNAL power source for the servo.