#include <Servo.h>
Servo ESC; // create servo object to control the ESC
int potValue; // value from the analog pin
void setup() {
// Attach the ESC on pin 9
Serial.begin(9600);
ESC.attach(5); // (pin, min pulse width, max pulse width in microseconds)
ESC.write(70);
delay(3000);
}
void loop() {
ESC.write(150);
}
'6_Project > Zigner' 카테고리의 다른 글
배터리 잔량 체크 (0) | 2025.01.14 |
---|---|
예제3) PC에서 BLDC 원격 제어 실습 코드 (0) | 2025.01.13 |
예제1) HC12와 PC 통신 실습 (0) | 2025.01.11 |
PID 제어 정리 (0) | 2024.10.20 |
Zigner - PC 제어 응용프로그램 (0) | 2024.04.19 |