From f41b2dc3e1065bd342cb2b3e935d3838284d3f23 Mon Sep 17 00:00:00 2001 From: Raghav <62105787+MythicalCow@users.noreply.github.com> Date: Sat, 28 May 2022 13:56:05 -0400 Subject: [PATCH] I like motor spinning :D --- communication/revmotor_test.ino | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 communication/revmotor_test.ino diff --git a/communication/revmotor_test.ino b/communication/revmotor_test.ino new file mode 100644 index 0000000..d9a3b80 --- /dev/null +++ b/communication/revmotor_test.ino @@ -0,0 +1,19 @@ +#include + +Servo myservo; + +void setup() { + // put your setup code here, to run once: + myservo.attach(9); + Serial.begin(9600); +} + +void loop() { + // put your main code here, to run repeatedly: + for(int i=1500; i<2100; i+=100) + { + myservo.writeMicroseconds(i); + delay(3000); + Serial.println(i); + } +}