Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Servo.h>
- byte servoPin = 9;
- Servo servo;
- void setup() {
- servo.attach(servoPin);
- servo.writeMicroseconds(1500); // send "stop" signal to ESC.
- delay(3000); // delay to allow the ESC to recognize the stopped signal
- }
- void loop() {
- int signal = 1500; // Set signal value, which should be between 1100 and 1900
- servo.writeMicroseconds(signal); // Send signal to ESC.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement