-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.h
163 lines (112 loc) · 3.76 KB
/
readme.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
status
done for now
Random notes:
for the hardware see
Bare Bones 28BYJ-48 Gimbal. by mmontee - Thingiverse
https://www.thingiverse.com/thing:794786
======================= code notes =========================
// Number of pins to interface to. Integer values are supported, but it is preferred to use the MotorInterfaceType symbolic names.
// AccelStepper::DRIVER (1) means a stepper driver (with Step and Direction pins). If an enable line is also needed, call setEnablePin() after construction.
// You may also invert the pins using setPinsInverted(). AccelStepper::FULL2WIRE (2) means a 2 wire stepper (2 pins required).
// AccelStepper::FULL3WIRE (3) means a 3 wire stepper, such as HDD spindle (3 pins required). AccelStepper::FULL4WIRE (4) means a 4 wire stepper (4 pins required).
// AccelStepper::HALF3WIRE (6) means a 3 wire half stepper, such as HDD spindle (3 pins required) AccelStepper::HALF4WIRE (8) means a 4 wire half stepper (4 pins required)
// Defaults to AccelStepper::FULL4WIRE (4) pins.
// Define some steppers and the pins the will use this version is for 2 wire driver
// AccelStepper stepper1( AccelStepper::DRIVER, STEPPER1_STEP_PIN, STEPPER1_DIR_PIN );
// AccelStepper stepper2( AccelStepper::DRIVER, STEPPER2_STEP_PIN, STEPPER2_DIR_PIN );
========================= info on perms =====================
D:\Russ\0000\python00\python3\_projects\misc_progs\make_perms.py
short list
0 [('A', 'B', 'C', 'D'),
1 ('A', 'B', 'D', 'C'),
2 ('A', 'C', 'B', 'D'),
3 ('A', 'C', 'D', 'B'),
4 ('A', 'D', 'B', 'C'),
5 ('A', 'D', 'C', 'B')]
len 6
>>>
and now from same program
============================ stepper 1 ========================
#define STEPPER1_PIN_A 5
#define STEPPER1_PIN_B 6
#define STEPPER1_PIN_C 7
#define STEPPER1_PIN_D 8
// 1 from make perms
#define STEPPER1_PIN_A 5
#define STEPPER1_PIN_B 6
#define STEPPER1_PIN_D 7
#define STEPPER1_PIN_C 8
// 2 from make perms
#define STEPPER1_PIN_A 5
#define STEPPER1_PIN_C 6
#define STEPPER1_PIN_B 7
#define STEPPER1_PIN_D 8
#define STEPPER1_PIN_A 5
#define STEPPER1_PIN_C 6
#define STEPPER1_PIN_D 7
#define STEPPER1_PIN_B 8
#define STEPPER1_PIN_A 5
#define STEPPER1_PIN_D 6
#define STEPPER1_PIN_B 7
#define STEPPER1_PIN_C 8
#define STEPPER1_PIN_A 5
#define STEPPER1_PIN_D 6
#define STEPPER1_PIN_C 7
#define STEPPER1_PIN_B 8
==================================== stepper 2 =======================
#define STEPPER2_PIN_A 9
#define STEPPER2_PIN_B 10
#define STEPPER2_PIN_C 11
#define STEPPER2_PIN_D 12
#define STEPPER2_PIN_A 9
#define STEPPER2_PIN_B 10
#define STEPPER2_PIN_D 11
#define STEPPER2_PIN_C 12
// 2 from make perms
#define STEPPER2_PIN_A 9
#define STEPPER2_PIN_C 10
#define STEPPER2_PIN_B 11
#define STEPPER2_PIN_D 12
#define STEPPER2_PIN_A 9
#define STEPPER2_PIN_C 10
#define STEPPER2_PIN_D 11
#define STEPPER2_PIN_B 12
#define STEPPER2_PIN_A 9
#define STEPPER2_PIN_D 10
#define STEPPER2_PIN_B 11
#define STEPPER2_PIN_C 12
#define STEPPER2_PIN_A 9
#define STEPPER2_PIN_D 10
#define STEPPER2_PIN_C 11
#define STEPPER2_PIN_B 12
-------------------
# 0 from make perms
#define STEPPER2_PIN_A 5
#define STEPPER2_PIN_B 6
#define STEPPER2_PIN_C 7
#define STEPPER2_PIN_D 8
# 1 from make perms
#define STEPPER2_PIN_A 5
#define STEPPER2_PIN_B 6
#define STEPPER2_PIN_D 7
#define STEPPER2_PIN_C 8
# 2 from make perms
#define STEPPER2_PIN_A 5
#define STEPPER2_PIN_C 6
#define STEPPER2_PIN_B 7
#define STEPPER2_PIN_D 8
# 3 from make perms
#define STEPPER2_PIN_A 5
#define STEPPER2_PIN_C 6
#define STEPPER2_PIN_D 7
#define STEPPER2_PIN_B 8
# 4 from make perms
#define STEPPER2_PIN_A 5
#define STEPPER2_PIN_D 6
#define STEPPER2_PIN_B 7
#define STEPPER2_PIN_C 8
// 5 from make perms
#define STEPPER2_PIN_A 5
#define STEPPER2_PIN_D 6
#define STEPPER2_PIN_C 7
#define STEPPER2_PIN_B 8