aboutsummaryrefslogtreecommitdiff
path: root/Arduino2024/Arduino2024.ino
diff options
context:
space:
mode:
authorSjory <Mgj32000@gmail.com>2024-12-26 20:56:28 +0100
committerSjory <Mgj32000@gmail.com>2024-12-26 20:56:28 +0100
commite3aef0f0b0dc94b021bf2534182cdc829e25dce3 (patch)
tree2209a88d7e24548bb3feacce71c19e2e37b7f269 /Arduino2024/Arduino2024.ino
parent68d939049b37c5847de864b5dcab8d983483f8ec (diff)
Create Arduino2024.ino
test motor
Diffstat (limited to 'Arduino2024/Arduino2024.ino')
-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);
+
+
+}