aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Arduino2024/Arduino2024.ino33
1 files changed, 33 insertions, 0 deletions
diff --git a/Arduino2024/Arduino2024.ino b/Arduino2024/Arduino2024.ino
new file mode 100644
index 0000000..3e48358
--- /dev/null
+++ b/Arduino2024/Arduino2024.ino
@@ -0,0 +1,33 @@
+
+/*
+ simple rotation of the motor
+ the gear ration on the carousel is
+ 7/40 and there is 10 slots to rotate between
+
+
+
+*/
+
+
+//define Pins
+#define PulPin 7
+#define dirPin 6
+int pd = 500;
+
+void setup() {
+
+ pinMode(PulPin, OUTPUT);
+ pinMode(dirPin, OUTPUT);
+
+}
+
+void loop() {
+
+ digitalWrite(dirPin, HIGH);
+ digitalWrite(PulPin, HIGH);
+ delayMicroseconds(pd);
+ digitalWrite(PulPin, LOW);
+ delayMicroseconds(pd);
+
+
+}