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 cf0425c commit 27febcaCopy full SHA for 27febca
Astrophotography_Tracker/code.py
@@ -2,6 +2,16 @@
2
import board
3
import digitalio
4
5
+worm_ratio = 40/1
6
+belt_ratio = 100/60
7
+gear_ratio = worm_ratio * belt_ratio
8
+
9
+steps = 200 # Steps per revolution
10
+microsteps = 64 # Microstepping resolution
11
+total_steps = steps * microsteps # Total microsteps per revolution
12
13
+wait = 1/ ((gear_ratio * steps * microsteps) / 86400)
14
15
step = digitalio.DigitalInOut(board.D6)
16
direct = digitalio.DigitalInOut(board.D5)
17
@@ -14,4 +24,4 @@
24
step.value = True
25
time.sleep(0.001)
26
step.value = False
- time.sleep(0.10025)
27
+ time.sleep(wait - 0.001)
Astrophotography_Tracker/step_time.py
0 commit comments