For context, I will be making an RC car with these parts and other parts, I have already figured out what code and wire setup I need for it
The problem is that after I connect the battery to the ESC, and the ESC red and brown cable to Vin and Ground to the arduino nano, the motor calibrates, starts, and then stops and starts beeping slowly. The same speed of beeping before connecting the arduino nano. Thing is, it randomly calibrates, starts, then goes back to beeping randomly. It might be because of my connections but im not sure. However, if I leave everything connected for a bit the beeping starts getting softer and softer until eventually its barely hearable. Thing is when I unplug everything and wait like an hour or 2 (or 8) and replug everything, it goes back to what it was doing before but at regular speed. Then same issue, keep it connected to power for a while and then starts beeping softer and softer.
Idk how to show what I have wired up but ill try my best to explain it:
The ESC i am using: SimonK 30A BLDC ESC Electronic Speed Controller
The brushless motor is called the A2212/6t 2200KV
the battery is a 1000 MAH, 7.4V, 2.4WH, 30C, High fly, High performance Li-Po battery
battery connected to ESC, and ESC is connected to the motor using the specialized pins. ESC red cable connected to Vin of the arduino nano, ESC brown cable connected to ground of the arduino nano, the yellow cable is connected to digital 2. Here is my code:
#include<Servo.h>
#define ESC_PIN 2
Servo esc;
void setup()
{
esc.attach(ESC_PIN, 750, 2000); // attach ESC
esc.write(0); // make ESC not move
delay(5000); // wait 5 sec
}
void loop()
{
esc.write(180); // make ESC full speed
delay(5000); // wait 5 sec
esc.write(0); // stop ESC
delay(2000); // wait 2 sec
}