Hi. I have a STM32F3Discovery card, from that i try to control a Blue Robotics Basic ESC and a M100 motor. I set it up using STM32CudeIDE for a 50Hz PWM signal on PA15. The problem is to send a 1500 microseconds initzialization signal. How do i do th
Below are example code for Arduino provided in the Basic Esc documentation
#include <Servo.h>
byte servoPin = 9;
Servo servo;
void setup() {
servo.attach(servoPin);
servo.writeMicroseconds(1500); // send "stop" signal to ESC.
delay(7000); // delay to allow the ESC to recognize the stopped signal
}
void loop() {
int signal = 1700; // Set signal value, which should be between 1100 and 1900
servo.writeMicroseconds(signal); // Send signal to ESC.
}