ESC200 电调示例代码

#include <Servo.h>

byte servoPin = 9;
Servo servo;

void setup() {
	servo.attach(servoPin);

	servo.writeMicroseconds(1500); // send "stop" signal to ESC.
	delay(1000); // 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.
}

您好!请问有没有用STM32或者用Arduino控制器加电调ESC的PID控制推进器转速的方法呢?

PID 一般自己写比较多,可能各个场景都不太一样,有的还需要联动

如果有应用案例,也欢迎大家分享,帮助更多的人