We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 284171e commit cf0425cCopy full SHA for cf0425c
Astrophotography_Tracker/code.py
@@ -0,0 +1,17 @@
1
+import time
2
+import board
3
+import digitalio
4
+
5
+step = digitalio.DigitalInOut(board.D6)
6
+direct = digitalio.DigitalInOut(board.D5)
7
8
+step.direction = digitalio.Direction.OUTPUT
9
+direct.direction = digitalio.Direction.OUTPUT
10
11
+direct.value = True
12
13
+while True:
14
+ step.value = True
15
+ time.sleep(0.001)
16
+ step.value = False
17
+ time.sleep(0.10025)
Astrophotography_Tracker/step_time.py
@@ -0,0 +1,9 @@
+worm_ratio = 40 / 1
+belt_ratio = 100 / 60
+steps = 200
+microsteps = 64
+time = 1 / (((worm_ratio * belt_ratio) * steps * microsteps) / 86400)
+print(f"One step every: {time} seconds")
+print(f"Delay should be: {time-.001} seconds")
0 commit comments