Hello. I have a Simonk ESC connected to a motor and my Arduino Uno. I'm having trouble figuring out what is going wrong. Here's the situation:
I have this code:
#include <Servo.h>
Servo m1;
void setup() {
m1.attach(10);
delay(1000);
m1.write(20);
}
void loop() {
// put your main code here, to run repeatedly:
}
When I deploy the code with an external battery powering the esc, I hear the startup beep codes, and the motor spins for about 4 seconds then stops. When I unplug everything and just plug in the battery (which also powers the arduino) I hear a continuous string of short beeps and the motor does not turn at all. With my computer plugged in, and while writing values to the ESC in the loop funciton, the motor wont turn for longer than about 4 seconds.
I understand how the esc arming works but probably missing something in terms of the communication? I just want the motor to spin for a given amount of time in the loop function.
Thank you.