Hi, I’m working on a project in which I need to control a T-100 brushed motor with an Arduino Uno. I’m attempting to get the motor to spin, but it only gives a few starting beeps and then a consistent beep every few seconds. The code used is shown below, and a video of the problem is included via a [- YouTube] (- YouTube) hyperlink. I would appreciate help in getting it working, thanks!
#include <Servo.h>
byte servoPin = 5;
Servo servo;
void setup() {
// put your setup code here, to run once:
servo.attach(5);
servo.writeMicroseconds(1500);
delay(7000);
}
void loop() {
// put your main code here, to run repeatedly:
int signal = 1700;
servo.writeMicroseconds(1700);
}