Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abdfd92e99 | ||
|
|
dd9259aaf3 | ||
|
|
4811b58b39 | ||
|
|
dd77b46de9 | ||
|
|
1e8582e3f6 | ||
|
|
789659599c | ||
|
|
6d7d079bab | ||
|
|
4ef0db5087 | ||
|
|
2b553a8108 | ||
|
|
7605244fa0 | ||
|
|
004edb9613 | ||
|
|
27717440aa | ||
|
|
698159921f | ||
|
|
1b8a007969 | ||
|
|
bbf6f87de0 | ||
|
|
db2ee2c01a | ||
|
|
e90d9c33eb | ||
|
|
0c247e55e6 | ||
|
|
9fcd3e75cd | ||
|
|
f8f0c3f142 | ||
|
|
a92bdf1d54 | ||
|
|
6b2b8f31ee | ||
|
|
626cb71428 | ||
|
|
9e2c17f468 | ||
|
|
9b70c052cc | ||
|
|
1c6a8267f9 | ||
|
|
80e17b1e53 | ||
|
|
8cb3d09484 | ||
|
|
fce98c5519 | ||
|
|
8c69e1bcfe | ||
|
|
9be2250431 | ||
|
|
3a37d4a208 | ||
|
|
80775faa09 | ||
|
|
020ca5ac2c | ||
|
|
fd2f17f847 | ||
|
|
4e09cacece | ||
|
|
4fab93a8b0 | ||
|
|
6333dc2069 | ||
|
|
6250157397 | ||
|
|
4f889ecd93 | ||
|
|
045c938a61 | ||
|
|
86cf361486 | ||
|
|
c780537c57 | ||
|
|
661fb613c7 | ||
|
|
43103929e3 | ||
|
|
63311b2348 | ||
|
|
2b3cd8db7f | ||
|
|
dd46e38628 | ||
|
|
1ac5c55359 | ||
|
|
1d7f6e1c13 | ||
|
|
7d8c70363a | ||
|
|
60ae92d143 | ||
|
|
361de30ad1 | ||
|
|
49779f13a2 | ||
|
|
a78329d0b2 | ||
|
|
3a2d71038f | ||
|
|
7580fa2354 | ||
|
|
8d4a5c16be | ||
|
|
8211415231 | ||
|
|
d90116ef39 | ||
|
|
4fa41d9c61 | ||
|
|
ccb8db5ea1 | ||
|
|
83d600d518 | ||
|
|
d60b143595 | ||
|
|
97af0b3cb0 | ||
|
|
a344f6d2ad | ||
|
|
f8b25a0104 | ||
|
|
01d2183f59 | ||
|
|
0f1fcb017f | ||
|
|
dc9f9ea1d6 | ||
|
|
12feb6d7fb | ||
|
|
05edd556c3 | ||
|
|
296ab7d402 | ||
|
|
4097a02585 | ||
|
|
1e3f6125fb | ||
|
|
e47fa04a6f | ||
|
|
f00c50a893 | ||
|
|
7031202e7c | ||
|
|
04db5f95d2 | ||
|
|
017a4d8321 | ||
|
|
c380d4639b | ||
|
|
f7f6680bf6 | ||
|
|
5e2c60bd67 | ||
|
|
1b454c0943 | ||
|
|
9335cc4804 | ||
|
|
4a178824aa | ||
|
|
7eba063ac8 | ||
|
|
917fd51057 | ||
|
|
5e3acff8c7 | ||
|
|
7229680227 | ||
|
|
f21f66a31f | ||
|
|
c95209bf7a | ||
|
|
8f5c15d4dc | ||
|
|
caeb610bb9 | ||
|
|
ff7be3e026 | ||
|
|
7d014933ce | ||
|
|
84fd89b8cf | ||
|
|
1b83fb72f5 | ||
|
|
e59d875256 | ||
|
|
69fc1e63b4 | ||
|
|
1022729a2a | ||
|
|
6409eda058 | ||
|
|
44f862388f | ||
|
|
fc879456db | ||
|
|
6338f6a5f0 | ||
|
|
4990fe814d | ||
|
|
4ef53ab095 | ||
|
|
a44bc950a3 | ||
|
|
2a2cf1f536 | ||
|
|
351910c5ac | ||
|
|
9c15f00e60 | ||
|
|
078d278611 | ||
|
|
e32be928dc | ||
|
|
c930fc392b | ||
|
|
a67451fa36 | ||
|
|
b4280fdfe0 | ||
|
|
67ddac776d | ||
|
|
e817b85b78 | ||
|
|
bfbcb90751 | ||
|
|
395429be14 | ||
|
|
a482ddf582 | ||
|
|
96fdb6ef36 | ||
|
|
05bb5484b4 | ||
|
|
9c40394248 | ||
|
|
7598660542 | ||
|
|
6c908952bd | ||
|
|
8aca7764c3 | ||
|
|
4ec6db7a87 | ||
|
|
d3bd4f9622 | ||
|
|
aac51bdb0a | ||
|
|
841150ff00 | ||
|
|
effe6f6ddd | ||
|
|
a3980cebcc | ||
|
|
3d38211b8a | ||
|
|
f958542ebb | ||
|
|
09f323a038 | ||
|
|
a70055a625 | ||
|
|
96ff54e143 | ||
|
|
8c5fc1688a | ||
|
|
43ab8e7113 | ||
|
|
f6d1ab2ea2 | ||
|
|
383fb1dbfd | ||
|
|
8712648370 | ||
|
|
9445e1d555 | ||
|
|
115b888106 | ||
|
|
4c09d8bf02 | ||
|
|
c2a08962b7 | ||
|
|
30bd7c0e47 | ||
|
|
3d0f7188df | ||
|
|
664c869f77 | ||
|
|
36217f27aa | ||
|
|
fe065d72d0 | ||
|
|
8b9cc62359 | ||
|
|
ec3d865b51 | ||
|
|
7efc53ff59 | ||
|
|
485164b8b3 | ||
|
|
c356e8362d | ||
|
|
a730aec8bc | ||
|
|
79cec9ba5c | ||
|
|
745a8dc0ac | ||
|
|
c176b66f29 | ||
|
|
e6ffef9a9f | ||
|
|
9bc3a29ee4 | ||
|
|
bc9c8cd7a0 | ||
|
|
ef0784afe6 | ||
|
|
7d4c475e52 | ||
|
|
92c2fbdce4 | ||
|
|
7bc0a261ab | ||
|
|
16616662ed | ||
|
|
961d13ee1a | ||
|
|
d79f99b188 | ||
|
|
a878831d5e | ||
|
|
73709984b0 | ||
|
|
899b6726fa | ||
|
|
f3d7287a28 | ||
|
|
658088b753 | ||
|
|
1487f8a257 | ||
|
|
d501ca6b0b | ||
|
|
5a02572001 | ||
|
|
a31a6c1d6a | ||
|
|
52dd6f0b57 | ||
|
|
634ec46813 | ||
|
|
79bd13dba7 | ||
|
|
4e5ddff00b | ||
|
|
46041f5411 | ||
|
|
abf3fa4b71 | ||
|
|
197030c684 | ||
|
|
893acdb56b | ||
|
|
17bd595b15 | ||
|
|
1a387ad509 | ||
|
|
1fcfff2ac6 | ||
|
|
4d90b60fdb | ||
|
|
bf23302918 | ||
|
|
e3c5638147 | ||
|
|
d5cc2a7b7b | ||
|
|
0af5b9ff6d | ||
|
|
be2d0abbab | ||
|
|
b7bc96c3b2 | ||
|
|
977d0cf711 | ||
|
|
bc78bc4864 | ||
|
|
25438a7901 | ||
|
|
28aa2f507a | ||
|
|
7fefe52df7 | ||
|
|
b2a8b0dd65 | ||
|
|
a34613cf86 | ||
|
|
e2d8a6f02d | ||
|
|
b77375e955 | ||
|
|
0343d0c73a | ||
|
|
364c22fe84 | ||
|
|
a477c50592 | ||
|
|
c3fe3d0d2c | ||
|
|
07e8925e08 | ||
|
|
dd34768e3a | ||
|
|
43064d197d | ||
|
|
d6cce8a557 | ||
|
|
84be96aeff | ||
|
|
4f6982c4d0 | ||
|
|
233da97b19 | ||
|
|
e148dbe52a | ||
|
|
a116fa9054 | ||
|
|
b2c778b931 | ||
|
|
ced5e35f0c | ||
|
|
d4d8bf795b | ||
|
|
856b22b387 | ||
|
|
893c98ed1b | ||
|
|
ea6f30bd99 | ||
|
|
e7dd313a96 | ||
|
|
0f1d42466b | ||
|
|
e19a41d0dd | ||
|
|
314b9654c6 | ||
|
|
02e579f578 | ||
|
|
ec34d78d5e | ||
|
|
57eb0e8975 | ||
|
|
0c379d060f | ||
|
|
026752e399 | ||
|
|
4df78cd843 | ||
|
|
7947dc3389 | ||
|
|
b0c459d8bf | ||
|
|
a2e550d1cd | ||
|
|
7702f0a027 | ||
|
|
041831f93a | ||
|
|
844dca9c6e | ||
|
|
1f3b74d2f7 | ||
|
|
3a3dfd51b9 | ||
|
|
35a45e2446 | ||
|
|
505e96b7ed | ||
|
|
e5f74a64ed | ||
|
|
d9d94c858a | ||
|
|
a3b4543c97 | ||
|
|
b37222e3a1 | ||
|
|
2d7f32584f | ||
|
|
9855354c75 | ||
|
|
4aeb7d38a7 | ||
|
|
6ec7dee07d | ||
|
|
79c24f95b3 | ||
|
|
52b5ca182c | ||
|
|
cf0a42ed6b | ||
|
|
d9bddc35a1 | ||
|
|
4bb0b6defd | ||
|
|
a2c7fd369c | ||
|
|
e18dddd1ab | ||
|
|
ba27e0aa02 | ||
|
|
7173a2c427 | ||
|
|
4fb4a13fd7 | ||
|
|
ec9fad758a | ||
|
|
c3467f5b35 | ||
|
|
80194a7e18 | ||
|
|
0b02d7a1f2 | ||
|
|
9feb05ce41 | ||
|
|
e202a8802b | ||
|
|
cc3666aa78 | ||
|
|
d98bbc772c | ||
|
|
ebb375fee9 | ||
|
|
461ed4cb80 | ||
|
|
647f1ee2e0 | ||
|
|
daadb36cb4 | ||
|
|
83e6c01ada | ||
|
|
c92aca74b5 | ||
|
|
a613045287 | ||
|
|
f6e9db2d05 | ||
|
|
98915fb1d0 | ||
|
|
3e741a1f88 | ||
|
|
8951dc3d51 | ||
|
|
8d029ad652 | ||
|
|
077c6f7e5e | ||
|
|
8cce3cc8e7 | ||
|
|
0173bb3f71 | ||
|
|
3f79831485 | ||
|
|
274857357e | ||
|
|
cfdb60ca23 | ||
|
|
587db5c315 | ||
|
|
49c36f868b | ||
|
|
bd40690bd1 | ||
|
|
4681775219 | ||
|
|
bdf5898891 | ||
|
|
771e7b2987 | ||
|
|
631c3fe052 | ||
|
|
caea441edd | ||
|
|
20d0bb8354 | ||
|
|
494a5b732d | ||
|
|
20851ab3e9 | ||
|
|
1ee2835eed | ||
|
|
c601d90b47 | ||
|
|
8f092b5966 | ||
|
|
e697fc11af | ||
|
|
f6864da58b | ||
|
|
88fe2787a9 | ||
|
|
47901e57c9 | ||
|
|
64214255da | ||
|
|
c037d273f7 | ||
|
|
82b58e46a7 | ||
|
|
b21a22d744 | ||
|
|
10c0da9a6c | ||
|
|
7f34264101 | ||
|
|
35edc4d63c | ||
|
|
b2729f38a6 | ||
|
|
110bbb3843 | ||
|
|
6abe132cf0 | ||
|
|
6947548c17 | ||
|
|
c76428bd01 | ||
|
|
1bdd51d575 | ||
|
|
395c845ca1 | ||
|
|
6a7ddb6bf0 | ||
|
|
ab710cd4de | ||
|
|
a122d113e8 | ||
|
|
3becc6cf54 | ||
|
|
9ce98fd769 | ||
|
|
2b0251ee99 | ||
|
|
5de9f74525 | ||
|
|
700e35c6ac | ||
|
|
97840f9851 | ||
|
|
30d2ae8f9f | ||
|
|
962f7b98bd | ||
|
|
afc10400e3 | ||
|
|
0546c18d27 | ||
|
|
61fc57e659 | ||
|
|
d7754a8f93 | ||
|
|
8b00580884 | ||
|
|
01f3b50e73 | ||
|
|
9d33ef4061 | ||
|
|
f1c6d04376 | ||
|
|
d0be48da74 | ||
|
|
3f4190c792 | ||
|
|
e60ee861f8 | ||
|
|
27ca159285 | ||
|
|
9613cd2c8a | ||
|
|
cacb6f4378 | ||
|
|
a541c2f60e | ||
|
|
49a3083d6a | ||
|
|
40f73dd7f4 | ||
|
|
df80d96ae6 | ||
|
|
b8c7eb40c5 | ||
|
|
1fd490ddf9 | ||
|
|
67964e71f1 | ||
|
|
e9935e1a41 | ||
|
|
945a84c0ea | ||
|
|
97adca18c4 | ||
|
|
e061029b3a | ||
|
|
15011012e5 | ||
|
|
bbc8637ed6 | ||
|
|
74cc005ff3 | ||
|
|
2b8dca5dbf | ||
|
|
5989f7a8a6 | ||
|
|
d065787afc | ||
|
|
1c09a0935f | ||
|
|
0bb714edd7 | ||
|
|
df765b33dc | ||
|
|
9155886c21 | ||
|
|
94f5fb3553 | ||
|
|
efecc96427 | ||
|
|
e519ab2031 | ||
|
|
3f96c0abd8 | ||
|
|
962c48ecf7 | ||
|
|
94c1ad7241 | ||
|
|
52e7e52119 | ||
|
|
a68f577adf | ||
|
|
6e88320d62 | ||
|
|
4ccc218b06 | ||
|
|
ac8f6dfe20 | ||
|
|
a238ec6f98 | ||
|
|
fe1c57b098 | ||
|
|
05a04d5d3d | ||
|
|
ca8233e6d5 | ||
|
|
89650a1e60 | ||
|
|
72100bc1f2 | ||
|
|
3910a44cc9 | ||
|
|
f96239019a | ||
|
|
3e1c42da80 | ||
|
|
e2e4a5d4e6 | ||
|
|
1a8bd750fc | ||
|
|
7f04dc46d0 | ||
|
|
a5f82612a0 | ||
|
|
8f5277c36a | ||
|
|
02eeb72713 | ||
|
|
c54b8da530 | ||
|
|
9e7ef3cf89 | ||
|
|
6903ab87ca | ||
|
|
2cff3291c0 | ||
|
|
862b97ce8f | ||
|
|
423bbada84 | ||
|
|
d6b69938ab | ||
|
|
500f37821d | ||
|
|
7702cc2972 | ||
|
|
8532e2123e | ||
|
|
8cd8cb492e | ||
|
|
9e1d79500a | ||
|
|
772ad53e20 | ||
|
|
c77285287b | ||
|
|
7792b0f2bb | ||
|
|
b8a4cf7701 | ||
|
|
61530138a0 | ||
|
|
6c4c26c319 | ||
|
|
bd5c1d7088 | ||
|
|
2469356861 | ||
|
|
edb679b83d | ||
|
|
24b1638c25 | ||
|
|
5fe5f09244 | ||
|
|
6268c702e5 | ||
|
|
bcfd101867 | ||
|
|
260e4f54cf | ||
|
|
7d2e3de977 | ||
|
|
9887e72570 | ||
|
|
84bae6ff41 | ||
|
|
1856f95503 | ||
|
|
7c3ee0f1e9 | ||
|
|
ad12ffa981 | ||
|
|
1235972b77 | ||
|
|
f7cb0875f4 | ||
|
|
de7ead1783 | ||
|
|
777013da4f | ||
|
|
fd1dff3f02 | ||
|
|
73fd292637 | ||
|
|
ab5238317b | ||
|
|
c95705ba3a | ||
|
|
f444177bb4 | ||
|
|
8d19351ea0 | ||
|
|
a0f2d54743 | ||
|
|
12e6aaf316 | ||
|
|
493d74acda | ||
|
|
0a9e3b744c | ||
|
|
af78d854ac | ||
|
|
2d864489a0 | ||
|
|
b6637c6c73 | ||
|
|
8524602b6e | ||
|
|
17dd6e5097 | ||
|
|
b5f79d5e77 | ||
|
|
57cf0759c0 | ||
|
|
85c01d4b6a | ||
|
|
49b18a6be7 | ||
|
|
9b960e63fb | ||
|
|
6f34ba59cb | ||
|
|
4739e28137 | ||
|
|
64e7235e48 | ||
|
|
cb04e4c45d | ||
|
|
60bc93f36b | ||
|
|
1102c6c232 | ||
|
|
1b92af6078 | ||
|
|
c440c6b7aa | ||
|
|
e3df39245f | ||
|
|
8a6d415745 | ||
|
|
b90a04a5cf | ||
|
|
5068c8b088 | ||
|
|
63f8d8cc79 | ||
|
|
8bc9f39c58 | ||
|
|
9cb21de68e | ||
|
|
7373e92092 | ||
|
|
41ce7cdf1c | ||
|
|
0a392b6543 | ||
|
|
d7e1061c63 | ||
|
|
38f3d65ac5 | ||
|
|
e83071c9fe | ||
|
|
04adde9a02 | ||
|
|
62bdc2709f | ||
|
|
478a916f51 | ||
|
|
8c54fc8753 | ||
|
|
ccc1107dbe | ||
|
|
1c56ba0ca7 | ||
|
|
aab89e7f85 | ||
|
|
e6c3eeafd7 | ||
|
|
de124677b0 | ||
|
|
9f9262cba8 | ||
|
|
54a2c5d58e | ||
|
|
a5a6ae83ff | ||
|
|
6318bdc99b | ||
|
|
516fbf4f32 | ||
|
|
79ecee0996 | ||
|
|
7d246e2624 | ||
|
|
486c07c190 | ||
|
|
890a5ea6bb | ||
|
|
e6157c1600 | ||
|
|
0615ab5f89 | ||
|
|
f8bde6b1ef | ||
|
|
3e71a57f67 | ||
|
|
bc9fd03dab | ||
|
|
7e8ecfe177 | ||
|
|
7765653d83 | ||
|
|
1ab02e5225 | ||
|
|
4c3d50693e | ||
|
|
be6b29fabf | ||
|
|
2e16be224e | ||
|
|
9bd3e80421 | ||
|
|
2a55e09ff8 | ||
|
|
2980c2e12c | ||
|
|
c30a6f2e6b | ||
|
|
2c851e1621 | ||
|
|
eedc773d69 | ||
|
|
d1eefba453 | ||
|
|
72d0c770d3 | ||
|
|
8b48de1be8 | ||
|
|
fbbe2cf9d6 | ||
|
|
60ff2e9dc1 | ||
|
|
75b73b09d6 | ||
|
|
8c7f1546ab | ||
|
|
b35e07ca2b | ||
|
|
c105adc80b | ||
|
|
5913170b6b | ||
|
|
c7330e07a4 | ||
|
|
312cabc3f7 | ||
|
|
907dd88ceb | ||
|
|
de7444ca69 | ||
|
|
45f0ea29a6 | ||
|
|
b79db3e3d6 | ||
|
|
b822f38923 | ||
|
|
74c6a85cde | ||
|
|
154823cc8f | ||
|
|
74f9da8376 | ||
|
|
9aadc3c7fa | ||
|
|
871e028c27 | ||
|
|
3945905420 | ||
|
|
efab177645 | ||
|
|
bece690c5b | ||
|
|
0980b7e4ec | ||
|
|
7a344acde8 | ||
|
|
5bcf9f02cf | ||
|
|
541c2990c6 | ||
|
|
f2fbe98454 | ||
|
|
6f91574cd9 | ||
|
|
d76658756e | ||
|
|
06c0463d44 | ||
|
|
746a378c18 | ||
|
|
ea0f231343 | ||
|
|
53290664ee | ||
|
|
4a35f927fc | ||
|
|
0af89e4766 | ||
|
|
618b374ae5 | ||
|
|
df6136802a | ||
|
|
ae24baf99a | ||
|
|
91cf497656 | ||
|
|
8aa8feedb8 | ||
|
|
7e2c0ffa91 | ||
|
|
8b0195f896 | ||
|
|
8f541d090e | ||
|
|
db6e2d4c9e | ||
|
|
7d73a35805 | ||
|
|
b28e95ca1a | ||
|
|
7eda55e2b0 | ||
|
|
b9b03dd082 | ||
|
|
378402b4d6 | ||
|
|
b455f1fbe1 | ||
|
|
01c8705d92 | ||
|
|
4718f39b2f | ||
|
|
12f6513ba2 | ||
|
|
96c4e1c5a0 | ||
|
|
a5aede52cb | ||
|
|
d3f6dad853 | ||
|
|
19c7955f2a | ||
|
|
f145439267 | ||
|
|
34d32c7823 | ||
|
|
9466c2d66c | ||
|
|
6a16e1f4c5 | ||
|
|
079fdf8807 | ||
|
|
f5b10f0c13 | ||
|
|
6ffbaa46c5 | ||
|
|
e2af1c1f2a | ||
|
|
1b1d3f15d8 | ||
|
|
eac22df7cb | ||
|
|
5c0a2479be | ||
|
|
fcaa75f014 | ||
|
|
563bc37073 | ||
|
|
9c0cf829ee | ||
|
|
89935c6831 | ||
|
|
789379e95b | ||
|
|
8e17df5d78 | ||
|
|
e96b71a9a3 | ||
|
|
4541f16cd9 | ||
|
|
975b0dbd84 | ||
|
|
47d51d8613 | ||
|
|
8f37700d23 | ||
|
|
f2ca7d5c66 | ||
|
|
893bb32d01 | ||
|
|
8e8063a9d9 | ||
|
|
1731fbbca4 | ||
|
|
d62a41b930 | ||
|
|
399d539969 | ||
|
|
9430fea2c5 | ||
|
|
309a47c781 | ||
|
|
946eb6b7ae | ||
|
|
0b33e0b427 | ||
|
|
a1d74a08e4 | ||
|
|
fbef144e7b | ||
|
|
d57bc79513 | ||
|
|
d33c4820bd | ||
|
|
e18501d01c | ||
|
|
027f52087c | ||
|
|
69491e2dab | ||
|
|
3c79e484d5 | ||
|
|
3cd1f9676d | ||
|
|
c8d7e28a35 | ||
|
|
8617cbcb76 | ||
|
|
c039b33f2a | ||
|
|
8446f28850 | ||
|
|
5f5d39ef3f | ||
|
|
b40a04fb8d | ||
|
|
88ebedcc63 | ||
|
|
264505a1b0 | ||
|
|
f7d8fde502 | ||
|
|
5dc487faf9 | ||
|
|
1b064b5a5d | ||
|
|
c1670ea336 | ||
|
|
20040f4a18 | ||
|
|
a4a23dee9f | ||
|
|
0b095ddf47 | ||
|
|
f13c5d4cdb | ||
|
|
adc4af2fc4 | ||
|
|
e4d52a19b8 | ||
|
|
7c50bd89cf | ||
|
|
c3eb976119 | ||
|
|
796b7ac738 | ||
|
|
2a64dfc242 | ||
|
|
f1be6a3969 | ||
|
|
69247d87fb | ||
|
|
03348fab47 | ||
|
|
7b3331ff52 | ||
|
|
c07371a2f0 | ||
|
|
5a74549ef6 | ||
|
|
2d99a1e802 | ||
|
|
ef1bf60ab7 | ||
|
|
51051478af | ||
|
|
d6d23c8415 | ||
|
|
9f1d9bf0f4 | ||
|
|
ea1814e017 | ||
|
|
e504147285 | ||
|
|
af882ee0fe | ||
|
|
9d8c7ddc1e | ||
|
|
9be6cf226b | ||
|
|
75b01be87e | ||
|
|
a6daa55484 | ||
|
|
060757764a | ||
|
|
72050e7352 | ||
|
|
21e45cac64 | ||
|
|
ee1236805e | ||
|
|
b934313c3d | ||
|
|
d7e8264d92 | ||
|
|
118b7593a6 | ||
|
|
45203070ed | ||
|
|
e7eb745d99 | ||
|
|
5bbae0710a | ||
|
|
65d6253fb8 | ||
|
|
e5e079faf2 | ||
|
|
dddfb681c7 | ||
|
|
b6589406d4 | ||
|
|
f9968904d6 | ||
|
|
3887ad4fce | ||
|
|
34209e6189 | ||
|
|
adf6040e9e | ||
|
|
ff9605c082 | ||
|
|
c54c81dc2a | ||
|
|
bb4fab5570 | ||
|
|
cf6c5e6f18 | ||
|
|
13b2e091b8 | ||
|
|
f7d8854587 | ||
|
|
7694c3e1b8 | ||
|
|
f308171be4 | ||
|
|
749beb731c | ||
|
|
31987c7bcd | ||
|
|
80c8bd8b4d | ||
|
|
9e8077009e | ||
|
|
da68da7a63 | ||
|
|
d452a1de48 | ||
|
|
7a32860455 | ||
|
|
ebc80ecea4 | ||
|
|
37797c8128 | ||
|
|
5bc47d9416 | ||
|
|
328bd89fc1 | ||
|
|
834b9e3d92 | ||
|
|
b260eb9168 | ||
|
|
276d5a1436 | ||
|
|
82efed5e2a | ||
|
|
a285668b46 | ||
|
|
cc4ecef88b | ||
|
|
a090b31713 | ||
|
|
52eef84228 | ||
|
|
b33ad59e25 | ||
|
|
a00657d2ae | ||
|
|
00e0a70a94 | ||
|
|
021264a6f5 | ||
|
|
0f674ef407 | ||
|
|
c6d1d1bd8c | ||
|
|
dd303ec4a9 | ||
|
|
6316b2c1b6 | ||
|
|
0da65bf6b0 | ||
|
|
a03e31809f | ||
|
|
98ed462865 | ||
|
|
090cd930d9 | ||
|
|
d1d19d03f3 | ||
|
|
5aa4fd2b4a | ||
|
|
2d7c3a84ee | ||
|
|
57e6acbc5c | ||
|
|
b0b9fc6f4a | ||
|
|
35ea4a137d | ||
|
|
d14a53e160 | ||
|
|
805e56008f | ||
|
|
5ab6bcd1d7 | ||
|
|
607461f7b6 | ||
|
|
59a60d68f5 | ||
|
|
faedc77621 | ||
|
|
fdbbda9484 | ||
|
|
cd6a181429 | ||
|
|
161cde4c5c | ||
|
|
af0d292e23 | ||
|
|
f1c804907c | ||
|
|
9766d62ad3 | ||
|
|
ca4e10dbd6 | ||
|
|
6c10e4bcef | ||
|
|
33c6c8b803 | ||
|
|
32e0d4d3ac | ||
|
|
74c216543c | ||
|
|
af8376e203 | ||
|
|
1f9208dc66 | ||
|
|
9f3517fdc7 | ||
|
|
eb8db46ca3 | ||
|
|
1096075d9b | ||
|
|
77db1aa379 | ||
|
|
26fb421d59 | ||
|
|
55df8bf55f | ||
|
|
c171b28a0b | ||
|
|
4c48c1e8e4 | ||
|
|
345a5f4e1f | ||
|
|
cd8678aa6d | ||
|
|
5b9ce328e5 | ||
|
|
d088a7ca72 | ||
|
|
0920a518ce | ||
|
|
30b6414295 | ||
|
|
17a17c5b77 | ||
|
|
83001959f1 | ||
|
|
51f14b9c8c | ||
|
|
955fdcaa0c | ||
|
|
cdcc320710 | ||
|
|
542f941f07 | ||
|
|
54683c9535 | ||
|
|
3b6ddb08a1 | ||
|
|
a5d3d161d3 | ||
|
|
04c6e1f646 | ||
|
|
c3e889a67c | ||
|
|
8cd83b4c2d | ||
|
|
f6ce875818 | ||
|
|
e47ba6374a | ||
|
|
c5fc264a07 | ||
|
|
8f763d80b7 | ||
|
|
40b5de1680 | ||
|
|
ed1334c24b | ||
|
|
893cbbab83 | ||
|
|
7605752dc2 | ||
|
|
8385dc20e6 | ||
|
|
e69742df8f | ||
|
|
0d4544e72a | ||
|
|
90827a88de | ||
|
|
71ef715a88 | ||
|
|
932acd3048 | ||
|
|
1ad1ed573a | ||
|
|
ee86463ed2 | ||
|
|
b6ccd2682c | ||
|
|
4fec225115 | ||
|
|
15afcf69fe | ||
|
|
eb7842c221 | ||
|
|
7327394c50 | ||
|
|
fc946c796c | ||
|
|
99980817c3 | ||
|
|
0c4fc64ef8 | ||
|
|
76138fde5c | ||
|
|
5a6a429bc0 | ||
|
|
8a97bc592b | ||
|
|
56141c21d7 | ||
|
|
e36122797b | ||
|
|
99f96f2832 | ||
|
|
04f5baa182 | ||
|
|
26e818d900 | ||
|
|
293366d033 | ||
|
|
8c5a94f49f | ||
|
|
f0ac5c378f | ||
|
|
efd1bf5e04 | ||
|
|
d4790356da | ||
|
|
275df53b2e | ||
|
|
d3ec103816 | ||
|
|
cb2ecc68d2 | ||
|
|
078a03dc21 | ||
|
|
093512b971 | ||
|
|
6256599a6d | ||
|
|
432e6c490a | ||
|
|
f0b7d6d67a | ||
|
|
8a6125c81c | ||
|
|
32632c8226 | ||
|
|
0119e42d13 | ||
|
|
a27838bc05 | ||
|
|
0ba1f5109d | ||
|
|
15da5cc5aa | ||
|
|
2c31fd8313 | ||
|
|
c9c8ae0499 | ||
|
|
2ea7c97bbd | ||
|
|
c0ea0312e5 | ||
|
|
bf647749dd | ||
|
|
33f5b5f285 | ||
|
|
857e7ed5f1 | ||
|
|
797367b9f5 | ||
|
|
f4be0ac7be | ||
|
|
fb7fe282c8 | ||
|
|
b2d5a8e65b | ||
|
|
3a4a1d678e | ||
|
|
0cbe851777 | ||
|
|
005cbe157a | ||
|
|
b9cccc5959 | ||
|
|
265769787f | ||
|
|
e26d1a3567 | ||
|
|
f2f54290e8 | ||
|
|
dc70a7c355 | ||
|
|
549e682069 | ||
|
|
8e0eb0d574 | ||
|
|
02c558652f | ||
|
|
75ad16ea1a | ||
|
|
519f2cff41 | ||
|
|
6db21d3033 | ||
|
|
bf196c3028 | ||
|
|
212813906a | ||
|
|
4683036f98 | ||
|
|
b4baabe408 | ||
|
|
94c86d6c6c | ||
|
|
e278552d44 | ||
|
|
70bbdf9334 | ||
|
|
e70b70fb75 | ||
|
|
a978167e39 | ||
|
|
8e2c1a4ab2 | ||
|
|
7707d5a74e | ||
|
|
f0715de004 | ||
|
|
9a2160f660 | ||
|
|
5b91c7a68d | ||
|
|
ecba3e9a19 | ||
|
|
c3a2fc981d | ||
|
|
22da8ca39c | ||
|
|
6e18af7057 | ||
|
|
c8e04274ad | ||
|
|
d015209388 | ||
|
|
28e68075c8 | ||
|
|
fac2d7817c | ||
|
|
6ccc0732c1 | ||
|
|
bd410c22f7 | ||
|
|
186d815469 | ||
|
|
df42887193 | ||
|
|
ffbb4198c1 | ||
|
|
d0b1b23c9b | ||
|
|
c3efcd9c8d | ||
|
|
24fe606d4d | ||
|
|
a2f0c36e7d | ||
|
|
7fe14f05e6 | ||
|
|
277a8185e1 | ||
|
|
a40df4b6f7 | ||
|
|
8f7fc4e6a9 | ||
|
|
c2086796bf | ||
|
|
0da064ccd9 | ||
|
|
59e9b6562f | ||
|
|
f6c9150349 | ||
|
|
f4d323adbc | ||
|
|
1be24b8fc7 | ||
|
|
68ebde0d86 | ||
|
|
e4e0fec681 | ||
|
|
f99002df4f | ||
|
|
62fc5dc288 | ||
|
|
b84ecebf8f | ||
|
|
c6065e29a6 | ||
|
|
5dc74f3152 | ||
|
|
ec9cb3a1b3 | ||
|
|
7e3e02a17a | ||
|
|
50e9c6738f | ||
|
|
2a74ffdb95 | ||
|
|
d7b0a7e961 | ||
|
|
566488dc01 | ||
|
|
a5cb74d58d |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Klipper build system
|
||||
#
|
||||
# Copyright (C) 2016,2017 Kevin O'Connor <kevin@koconnor.net>
|
||||
# Copyright (C) 2016-2019 Kevin O'Connor <kevin@koconnor.net>
|
||||
#
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
@@ -37,6 +37,8 @@ CFLAGS := -I$(OUT) -Isrc -I$(OUT)board-generic/ -std=gnu11 -O2 -MD -g \
|
||||
-ffunction-sections -fdata-sections
|
||||
CFLAGS += -flto -fwhole-program -fno-use-linker-plugin
|
||||
|
||||
OBJS_klipper.elf = $(patsubst %.c, $(OUT)src/%.o,$(src-y))
|
||||
OBJS_klipper.elf += $(OUT)compile_time_request.o
|
||||
CFLAGS_klipper.elf = $(CFLAGS) -Wl,--gc-sections
|
||||
|
||||
CPPFLAGS = -I$(OUT) -P -MD -MT $@
|
||||
@@ -64,28 +66,35 @@ $(OUT)%.o: %.c $(OUT)autoconf.h $(OUT)board-link
|
||||
@echo " Compiling $@"
|
||||
$(Q)$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(OUT)%.ld: %.lds.S $(OUT)board-link
|
||||
@echo " Preprocessing $@"
|
||||
$(Q)$(CPP) -I$(OUT) -P -MD -MT $@ $< -o $@
|
||||
|
||||
################ Main build rules
|
||||
|
||||
$(OUT)board-link: $(KCONFIG_CONFIG)
|
||||
@echo " Creating symbolic link $(OUT)board"
|
||||
$(Q)mkdir -p $(addprefix $(OUT), $(dirs-y))
|
||||
$(Q)touch $@
|
||||
$(Q)ln -Tsf $(PWD)/src/$(CONFIG_BOARD_DIRECTORY) $(OUT)board
|
||||
$(Q)rm -f $(OUT)board
|
||||
$(Q)ln -sf $(PWD)/src/$(CONFIG_BOARD_DIRECTORY) $(OUT)board
|
||||
$(Q)mkdir -p $(OUT)board-generic
|
||||
$(Q)ln -Tsf $(PWD)/src/generic $(OUT)board-generic/board
|
||||
$(Q)rm -f $(OUT)board-generic/board
|
||||
$(Q)ln -sf $(PWD)/src/generic $(OUT)board-generic/board
|
||||
|
||||
$(OUT)%.o.ctr: $(OUT)%.o
|
||||
$(Q)$(OBJCOPY) -j '.compile_time_request' -O binary $^ $@
|
||||
|
||||
$(OUT)compile_time_request.o: $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) ./scripts/buildcommands.py
|
||||
@echo " Building $@"
|
||||
$(Q)cat $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) > $(OUT)klipper.compile_time_request
|
||||
$(Q)$(PYTHON) ./scripts/buildcommands.py -d $(OUT)klipper.dict -t "$(CC);$(AS);$(LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)klipper.compile_time_request $(OUT)compile_time_request.c
|
||||
$(Q)cat $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) | tr -s '\0' '\n' > $(OUT)compile_time_request.txt
|
||||
$(Q)$(PYTHON) ./scripts/buildcommands.py -d $(OUT)klipper.dict -t "$(CC);$(AS);$(LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)compile_time_request.txt $(OUT)compile_time_request.c
|
||||
$(Q)$(CC) $(CFLAGS) -c $(OUT)compile_time_request.c -o $@
|
||||
|
||||
$(OUT)klipper.elf: $(patsubst %.c, $(OUT)src/%.o,$(src-y)) $(OUT)compile_time_request.o
|
||||
$(OUT)klipper.elf: $(OBJS_klipper.elf)
|
||||
@echo " Linking $@"
|
||||
$(Q)$(CC) $^ $(CFLAGS_klipper.elf) -o $@
|
||||
$(Q)$(CC) $(OBJS_klipper.elf) $(CFLAGS_klipper.elf) -o $@
|
||||
$(Q)scripts/check-gcc.sh $@ $(OUT)compile_time_request.o
|
||||
|
||||
################ Kconfig rules
|
||||
|
||||
|
||||
@@ -1,29 +1,16 @@
|
||||
Welcome to the Klipper project!
|
||||
|
||||
This project implements a 3d-printer firmware. There are two parts to
|
||||
this firmware - code that runs on a micro-controller and code that
|
||||
runs on a host machine. The host software does the work to build a
|
||||
schedule of events, while the micro-controller software does the work
|
||||
to execute the provided schedule at the specified times.
|
||||
[](https://www.klipper3d.org/)
|
||||
|
||||
See the [features](docs/Features.md) document to find out why you
|
||||
should use Klipper. To begin using Klipper start by
|
||||
[installing](docs/Installation.md) it.
|
||||
https://www.klipper3d.org/
|
||||
|
||||
There is also [developer documentation](docs/Overview.md) available.
|
||||
Klipper is a 3d-Printer firmware. It combines the power of a general
|
||||
purpose computer with one or more micro-controllers. See the
|
||||
[features document](https://www.klipper3d.org/Features.html) for more
|
||||
information on why you should use Klipper.
|
||||
|
||||
License
|
||||
=======
|
||||
To begin using Klipper start by
|
||||
[installing](https://www.klipper3d.org/Installation.html) it.
|
||||
|
||||
Klipper is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Klipper is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Klipper. If not, see <http://www.gnu.org/licenses/>.
|
||||
Klipper is Free Software. See the [license](COPYING) or read the
|
||||
[documentation](https://www.klipper3d.org/Overview.html).
|
||||
@@ -123,9 +123,3 @@ radius: 50
|
||||
#horizontal_move_z: 5
|
||||
# The height (in mm) that the head should be commanded to move to
|
||||
# just prior to starting a probe operation. The default is 5.
|
||||
#samples: 1
|
||||
# The number of times to probe each point. The probed z-values will
|
||||
# be averaged. The default is to probe 1 time.
|
||||
#sample_retract_dist: 2.0
|
||||
# The distance (in mm) to retract between each sample if sampling
|
||||
# more than once. The default is 2mm.
|
||||
@@ -85,6 +85,7 @@
|
||||
# and [respond response_info] command. Respond command will send '// response_info' to host.
|
||||
|
||||
#[menu input1]
|
||||
#type: input
|
||||
#name:
|
||||
#cursor:
|
||||
#width:
|
||||
@@ -93,7 +94,11 @@
|
||||
#parameter:
|
||||
# Value from parameter (always index 0) is taken as input value when in edit mode.
|
||||
#gcode:
|
||||
# This will be triggered in realtime or on exit from edit mode.
|
||||
# This will be triggered in realtime mode, on exit from edit mode
|
||||
# or in edit mode this will be triggered after click button long press (>0.8sec).
|
||||
#longpress_gcode:
|
||||
# In edit mode this will be triggered after click button long press (>0.8sec).
|
||||
# The default is empty. This parameter is optional.
|
||||
#reverse:
|
||||
# This attribute accepts static boolean value.
|
||||
# When enabled it will reverse increment and decrement directions for input.
|
||||
@@ -162,11 +167,16 @@
|
||||
#leave_gcode
|
||||
#longpress_menu:
|
||||
# Entry point to menu container. When this attribute is set then
|
||||
# long press > 1s will initiate this menu container if not in edit mode.
|
||||
# long press > 0.8s will initiate this menu container if not in edit mode.
|
||||
# The default is disabled. This parameter is optional.
|
||||
#items:
|
||||
# It accepts only 'card' elements. You are able to switch between different card screens
|
||||
# by using encoder or up/down buttons.
|
||||
#content:
|
||||
# It allows quickly define single card decks by adding content directly to deck.
|
||||
# You have to remove deck item attribute and use named items in content.
|
||||
# The menu functionality will then internally create one card item for this deck.
|
||||
# This is optional.
|
||||
|
||||
#[menu card1]
|
||||
#type: card
|
||||
@@ -175,6 +185,10 @@
|
||||
# Card screen content. Each line represents display line.
|
||||
# Quotes can be used in the beginning and end of line.
|
||||
# Rendered elements are available for output formatting as {0}..{x}. It's always string type.
|
||||
# It's possible directly use menu item names in content by leaving items attribute out or empty
|
||||
# and use menu items names directly in content as {msg,xpos|ypos}. The menu functionality will then
|
||||
# internally build a item list and replace names with indexes in content.
|
||||
# This is optional.
|
||||
#items:
|
||||
# List of elements in card. Each line represents a single index for content formatting.
|
||||
# It's possible to show multiple elements in one place by separating them with comma on single line.
|
||||
@@ -184,3 +198,8 @@
|
||||
# This way only simple menu items can be grouped.
|
||||
# Example: 5,prt_time, prt_progress - elements prt_time and prt_progress are switched after 5s
|
||||
# Example: msg,xpos|ypos - elements xpos and ypos are grouped and showed together when msg is disabled.
|
||||
#use_cursor:
|
||||
# This attribute accepts static boolean value.
|
||||
# When enabled the menu system uses a cursor instead of blinking to visualize item selection
|
||||
# and edit mode for this card. Cursor and placeholder is always added as item name prefix.
|
||||
# The default is False. This parameter is optional.
|
||||
@@ -0,0 +1,84 @@
|
||||
# This file serves as documentation for config parameters of "polar"
|
||||
# style printers. One may copy and edit this file to configure a new
|
||||
# polar printer.
|
||||
|
||||
# POLAR KINEMATICS ARE A WORK IN PROGRESS. Moves around the 0,0
|
||||
# position are known to not work properly.
|
||||
|
||||
# Only parameters unique to polar printers are described here - see
|
||||
# the "example.cfg" file for description of common config parameters.
|
||||
|
||||
# The stepper_bed section is used to describe the stepper controlling
|
||||
# the bed.
|
||||
[stepper_bed]
|
||||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: 0.001963495
|
||||
# On a polar printer the step_distance is the amount each step pulse
|
||||
# moves the bed in radians (for example, a 1.8 degree stepper with
|
||||
# 16 micro-steps would be 2 * pi * (1.8 / 360) / 16 == 0.001963495).
|
||||
# This parameter must be provided.
|
||||
|
||||
# The stepper_arm section is used to describe the stepper controlling
|
||||
# the carriage on the arm.
|
||||
[stepper_arm]
|
||||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: .01
|
||||
endstop_pin: ^ar14
|
||||
position_endstop: 300
|
||||
position_max: 300
|
||||
homing_speed: 50
|
||||
|
||||
# The stepper_z section is used to describe the stepper controlling
|
||||
# the Z axis.
|
||||
[stepper_z]
|
||||
step_pin: ar46
|
||||
dir_pin: ar48
|
||||
enable_pin: !ar62
|
||||
step_distance: .0025
|
||||
endstop_pin: ^ar18
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
[extruder]
|
||||
step_pin: ar26
|
||||
dir_pin: ar28
|
||||
enable_pin: !ar24
|
||||
step_distance: .0022
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: ar10
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: analog13
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: ar8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: analog14
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: ar9
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyACM0
|
||||
pin_map: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: polar
|
||||
# This option must be "polar" for polar printers.
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 25
|
||||
max_z_accel: 30
|
||||
@@ -0,0 +1,96 @@
|
||||
# This file serves as documentation for config parameters of cable
|
||||
# winch style printers. One may copy and edit this file to configure a
|
||||
# new cable winch printer.
|
||||
|
||||
# CABLE WINCH SUPPORT IS EXPERIMENTAL - PROCEED WITH CAUTION!
|
||||
|
||||
# Homing is not implemented on cable winch kinematics. In order to
|
||||
# home the printer, manually send movement commands until the toolhead
|
||||
# is at 0,0,0 and then issue a G28 command.
|
||||
|
||||
# Only parameters unique to cable winch printers are described here -
|
||||
# see the "example.cfg" file for description of common config
|
||||
# parameters.
|
||||
|
||||
# The stepper_a section describes the stepper connected to the first
|
||||
# cable winch. A minimum of 3 and a maximum of 26 cable winches may be
|
||||
# defined (stepper_a to stepper_z) though it is common to define 4.
|
||||
[stepper_a]
|
||||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: .01
|
||||
# The step_distance is the nominal distance (in mm) the toolhead
|
||||
# moves towards the cable winch on each step pulse. This parameter
|
||||
# must be provided.
|
||||
anchor_x: 0
|
||||
anchor_y: -2000
|
||||
anchor_z: -100
|
||||
# The x, y, and z position of the cable winch in cartesian space.
|
||||
# These parameters must be provided.
|
||||
|
||||
[stepper_b]
|
||||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: .01
|
||||
anchor_x: 2000
|
||||
anchor_y: 1000
|
||||
anchor_z: -100
|
||||
|
||||
[stepper_c]
|
||||
step_pin: ar46
|
||||
dir_pin: ar48
|
||||
enable_pin: !ar62
|
||||
step_distance: .01
|
||||
anchor_x: -2000
|
||||
anchor_y: 1000
|
||||
anchor_z: -100
|
||||
|
||||
[stepper_d]
|
||||
step_pin: ar36
|
||||
dir_pin: ar34
|
||||
enable_pin: !ar30
|
||||
step_distance: .01
|
||||
anchor_x: 0
|
||||
anchor_y: 0
|
||||
anchor_z: 3000
|
||||
|
||||
[extruder]
|
||||
step_pin: ar26
|
||||
dir_pin: ar28
|
||||
enable_pin: !ar24
|
||||
step_distance: .0022
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: ar10
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: analog13
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: ar8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: analog14
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
# Print cooling fan (omit section if fan not present).
|
||||
#[fan]
|
||||
#pin: ar9
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyACM0
|
||||
pin_map: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: winch
|
||||
# This option must be "winch" for cable winch printers.
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
@@ -11,11 +11,13 @@
|
||||
# A note on pin names: pins may be configured with a hardware name
|
||||
# (such as "PA4") or with an Arduino alias name (such as "ar29" or
|
||||
# "analog3"). In order to use Arduino names, the pin_map variable in
|
||||
# the mcu section must be present and have a value of "arduino".
|
||||
# Pin names may be preceded by an '!' to indicate that a reverse
|
||||
# polarity should be used (eg, trigger on low instead of high). Input
|
||||
# pins may be preceded by a '^' to indicate that a hardware pull-up
|
||||
# resistor should be enabled for the pin.
|
||||
# the mcu section must be present and have a value of "arduino". Pin
|
||||
# names may be preceded by an '!' to indicate that a reverse polarity
|
||||
# should be used (eg, trigger on low instead of high). Input pins may
|
||||
# be preceded by a '^' to indicate that a hardware pull-up resistor
|
||||
# should be enabled for the pin. If the micro-controller supports
|
||||
# pull-down resistors then an input pin may alternatively be preceded
|
||||
# by a '~'.
|
||||
|
||||
|
||||
# The stepper_x section is used to describe the stepper controlling
|
||||
@@ -28,7 +30,8 @@ dir_pin: ar55
|
||||
# parameter must be provided.
|
||||
enable_pin: !ar38
|
||||
# Enable pin (default is enable high; use ! to indicate enable
|
||||
# low). If this parameter is not provided then the stepper motor
|
||||
# low). Alternatively, this may be a comma separated list of pins to
|
||||
# enable. If this parameter is not provided then the stepper motor
|
||||
# driver must always be enabled.
|
||||
step_distance: .0225
|
||||
# Distance in mm that each step causes the axis to travel. This
|
||||
@@ -162,6 +165,11 @@ sensor_pin: analog13
|
||||
# The resistance (in ohms) of the pullup attached to the
|
||||
# thermistor. This parameter is only valid when the sensor is a
|
||||
# thermistor. The default is 4700 ohms.
|
||||
#inline_resistor: 0
|
||||
# The resistance (in ohms) of an extra (not heat varying) resistor
|
||||
# that is placed inline with the thermistor. It is rare to set this.
|
||||
# This parameter is only valid when the sensor is a thermistor. The
|
||||
# default is 0 ohms.
|
||||
#adc_voltage: 5.0
|
||||
# The ADC comparison voltage. This parameter is only valid when the
|
||||
# sensor is an AD595 or "PT100 INA826". The default is 5 volts.
|
||||
@@ -242,11 +250,28 @@ pin: ar9
|
||||
# fan. It is recommended this be 10 milliseconds or greater when
|
||||
# using software based PWM. The default is 0.010 seconds.
|
||||
#hardware_pwm: False
|
||||
# Enable this to use hardware PWM instead of software PWM. The
|
||||
# default is False.
|
||||
# Enable this to use hardware PWM instead of software PWM. Most fans
|
||||
# do not work well with hardware PWM, so it is not recommended to
|
||||
# enable this unless there is an electrical requirement to switch at
|
||||
# very high speeds. When using hardware PWM the actual cycle time is
|
||||
# constrained by the implementation and may be significantly
|
||||
# different than the requested cycle_time. The default is False.
|
||||
#kick_start_time: 0.100
|
||||
# Time (in seconds) to run the fan at full speed when first enabling
|
||||
# it (helps get the fan spinning). The default is 0.100 seconds.
|
||||
#off_below: 0.0
|
||||
# The minimum input speed which will power the fan (expressed as a
|
||||
# value from 0.0 to 1.0). When a speed lower than off_below is
|
||||
# requested the fan will instead be turned off. This setting may be
|
||||
# used to prevent fan stalls and to ensure kick starts are
|
||||
# effective. The default is 0.0.
|
||||
#
|
||||
# This setting should be recalibrated whenever max_power is adjusted.
|
||||
# To calibrate this setting, start with off_below set to 0.0 and the
|
||||
# fan spinning. Gradually lower the fan speed to determine the lowest
|
||||
# input speed which reliably drives the fan without stalls. Set
|
||||
# off_below to the duty cycle corresponding to this value (for
|
||||
# example, 12% -> 0.12) or slightly higher.
|
||||
|
||||
# Micro-controller information.
|
||||
[mcu]
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
# This file contains common pin mappings for the Azteeg X5 Mini v3. To use
|
||||
# this config, the firmware should be compiled for the LPC1769.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: P2.1
|
||||
dir_pin: P0.11
|
||||
enable_pin: !P0.10
|
||||
step_distance: .0125
|
||||
endstop_pin: ^P1.24
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: P2.2
|
||||
dir_pin: P0.20
|
||||
enable_pin: !P0.19
|
||||
step_distance: .0125
|
||||
endstop_pin: ^P1.26
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: P2.3
|
||||
dir_pin: P0.22
|
||||
enable_pin: !P0.21
|
||||
step_distance: .0125
|
||||
endstop_pin: ^P1.28
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[extruder]
|
||||
step_pin: P2.0
|
||||
dir_pin: P0.5
|
||||
enable_pin: !P0.4
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: P2.5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: P0.24
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: P2.7
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: P0.23
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: P0.26
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[mcp4451 stepper_digipot1]
|
||||
i2c_address: 44
|
||||
# Scale the config so that wiper values can be specified in amps.
|
||||
scale: 2
|
||||
# wiper 0 is X (aka alpha), 1 is Y, 2 is Z, 3 is E0
|
||||
wiper_0: 1.0
|
||||
wiper_1: 1.0
|
||||
wiper_2: 1.0
|
||||
wiper_3: 1.0
|
||||
|
||||
# Mini Viki2 LCD - this board does not work with Reprap LCDs
|
||||
#[display]
|
||||
#lcd_type: uc1701
|
||||
#cs_pin: P0.16
|
||||
#a0_pin: P2.6
|
||||
#encoder_pins: ^!P3.25, ^P3.26
|
||||
#click_pin: ^!P2.11
|
||||
@@ -0,0 +1,129 @@
|
||||
# This file contains common pin mappings for the BIGTREETECH SKR mini
|
||||
# E3. To use this config, the firmware should be compiled for the
|
||||
# STM32F103 with a "28KiB bootloader". Also, select "Enable extra
|
||||
# low-level configuration options" and configure "GPIO pins to set at
|
||||
# micro-controller startup" to "!PC13".
|
||||
|
||||
# The "make flash" command does not work on the SKR mini E3. Instead,
|
||||
# after running "make", copy the generated "out/klipper.bin" file to a
|
||||
# file named "firmware.bin" on an SD card and then restart the SKR
|
||||
# mini E3 with that SD card.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PB13
|
||||
dir_pin: !PB12
|
||||
enable_pin: !PB14
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC0
|
||||
position_endstop: 0
|
||||
position_max: 235
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2209 stepper_x]
|
||||
uart_pin: PC11
|
||||
tx_pin: PC10
|
||||
uart_address: 0
|
||||
microsteps: 16
|
||||
run_current: 0.580
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PB10
|
||||
dir_pin: !PB2
|
||||
enable_pin: !PB11
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC1
|
||||
position_endstop: 0
|
||||
position_max: 235
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2209 stepper_y]
|
||||
uart_pin: PC11
|
||||
tx_pin: PC10
|
||||
uart_address: 1
|
||||
microsteps: 16
|
||||
run_current: 0.580
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PB0
|
||||
dir_pin: PC5
|
||||
enable_pin: !PB1
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PC2
|
||||
position_endstop: 0.0
|
||||
position_max: 250
|
||||
|
||||
[tmc2209 stepper_z]
|
||||
uart_pin: PC11
|
||||
tx_pin: PC10
|
||||
uart_address: 2
|
||||
microsteps: 16
|
||||
run_current: 0.580
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 5
|
||||
|
||||
[extruder]
|
||||
step_pin: PB3
|
||||
dir_pin: !PB4
|
||||
enable_pin: !PD2
|
||||
step_distance: 0.010526
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PC8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PA0
|
||||
control: pid
|
||||
pid_Kp: 21.527
|
||||
pid_Ki: 1.063
|
||||
pid_Kd: 108.982
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2209 extruder]
|
||||
uart_pin: PC11
|
||||
tx_pin: PC10
|
||||
uart_address: 3
|
||||
microsteps: 16
|
||||
run_current: 0.650
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 5
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PC9
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: PC3
|
||||
control: pid
|
||||
pid_Kp: 54.027
|
||||
pid_Ki: 0.770
|
||||
pid_Kd: 948.182
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PA8
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[static_digital_output usb_pullup_enable]
|
||||
pins: !PC13
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
|
||||
EXP1_2=PB6, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB7, EXP1_10=<5V>
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -0,0 +1,88 @@
|
||||
# This file contains common pin mappings for the BIGTREETECH SKR
|
||||
# MINI. To use this config, the firmware should be compiled for the
|
||||
# STM32F103 with a "28KiB bootloader".
|
||||
|
||||
# The "make flash" command does not work on the SKR mini. Instead,
|
||||
# after running "make", copy the generated "out/klipper.bin" file to a
|
||||
# file named "firmware.bin" on an SD card and then restart the SKR
|
||||
# mini with that SD card.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PC6
|
||||
dir_pin: PC7
|
||||
enable_pin: !PB15
|
||||
step_distance: .0025
|
||||
endstop_pin: PC2 # X+ is PA2
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PB13
|
||||
dir_pin: PB14
|
||||
enable_pin: !PB12
|
||||
step_distance: .0025
|
||||
endstop_pin: PC1 # Y+ is PA1
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PB10
|
||||
dir_pin: PB11
|
||||
enable_pin: !PB2
|
||||
step_distance: .0125
|
||||
endstop_pin: PC0 # Z+ is PC3
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
[extruder]
|
||||
step_pin: PC5
|
||||
dir_pin: PB0
|
||||
enable_pin: !PC4
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PA8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PA0
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
#[heater_bed]
|
||||
#heater_pin: PC9
|
||||
#sensor_type: ATC Semitec 104GT-2
|
||||
#sensor_pin: PB1
|
||||
#control: watermark
|
||||
#min_temp: 0
|
||||
#max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PC8
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=PC10, EXP1_3=PB6, EXP1_5=PC13, EXP1_7=PC15, EXP1_9=<GND>,
|
||||
EXP1_2=PC11, EXP1_4=PC12, EXP1_6=PB7, EXP1_8=PC14, EXP1_10=<5V>,
|
||||
# EXP2 header
|
||||
EXP2_1=PB4, EXP2_3=PD2, EXP2_5=PB8, EXP2_7=PB9, EXP2_9=<GND>,
|
||||
EXP2_2=PB3, EXP2_4=PA15, EXP2_6=PB5, EXP2_8=<RST>, EXP2_10=<NC>
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -0,0 +1,222 @@
|
||||
# This file contains common pin mappings for the BigTreeTech SKR PRO.
|
||||
# To use this config, the firmware should be compiled for the
|
||||
# STM32F407 with a "32KiB bootloader".
|
||||
|
||||
# The "make flash" command does not work on the SKR PRO. Instead,
|
||||
# after running "make", copy the generated "out/klipper.bin" file to a
|
||||
# file named "firmware.bin" on an SD card and then restart the SKR PRO
|
||||
# with that SD card.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PE9
|
||||
dir_pin: PF1
|
||||
enable_pin: !PF2
|
||||
step_distance: .0025
|
||||
endstop_pin: PB10
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PE11
|
||||
dir_pin: PE8
|
||||
enable_pin: !PD7
|
||||
step_distance: .0025
|
||||
endstop_pin: PE12
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PE13
|
||||
dir_pin: PC2
|
||||
enable_pin: !PC0
|
||||
step_distance: .0125
|
||||
endstop_pin: PG8
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
[extruder]
|
||||
step_pin: PE14
|
||||
dir_pin: PA0
|
||||
enable_pin: !PC3
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PB1 # Heat0
|
||||
sensor_pin: PF3 # T0 Header
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
#[extruder1]
|
||||
#step_pin: PD15
|
||||
#dir_pin: PE7
|
||||
#enable_pin: !PA3
|
||||
#heater_pin: PD14 # Heat1
|
||||
#sensor_pin: PF4 # T1
|
||||
#...
|
||||
|
||||
#[extruder2]
|
||||
#step_pin: PD13
|
||||
#dir_pin: PG9
|
||||
#enable_pin: !PF0
|
||||
#heater_pin: PB0 # Heat2
|
||||
#sensor_pin: PF5 # T2
|
||||
#...
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PD12
|
||||
sensor_pin: PF6 # T3
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PC8
|
||||
|
||||
[heater_fan fan1]
|
||||
pin: PE5
|
||||
|
||||
#[heater_fan fan2]
|
||||
#pin: PE6
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
|
||||
########################################
|
||||
# TMC2208 configuration
|
||||
########################################
|
||||
|
||||
#[tmc2208 stepper_x]
|
||||
#uart_pin: PC13
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 stepper_y]
|
||||
#uart_pin: PE3
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 stepper_z]
|
||||
#uart_pin: PE1
|
||||
#microsteps: 16
|
||||
#run_current: 0.650
|
||||
#hold_current: 0.450
|
||||
#stealthchop_threshold: 30
|
||||
|
||||
#[tmc2208 extruder]
|
||||
#uart_pin: PD4
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
#[tmc2208 extruder1]
|
||||
#uart_pin: PD1
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
#[tmc2208 extruder2]
|
||||
#uart_pin: PD6
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
|
||||
########################################
|
||||
# TMC2130 configuration
|
||||
########################################
|
||||
|
||||
#[tmc2130 stepper_x]
|
||||
#cs_pin: PA15
|
||||
#spi_bus: spi3a
|
||||
##diag1_pin: PB10
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 stepper_y]
|
||||
#cs_pin: PB8
|
||||
#spi_bus: spi3a
|
||||
##diag1_pin: PE12
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 stepper_z]
|
||||
#cs_pin: PB9
|
||||
#spi_bus: spi3a
|
||||
##diag1_pin: PG8
|
||||
#microsteps: 16
|
||||
#run_current: 0.650
|
||||
#hold_current: 0.450
|
||||
#stealthchop_threshold: 30
|
||||
|
||||
#[tmc2130 extruder]
|
||||
#cs_pin: PB3
|
||||
#spi_bus: spi3a
|
||||
##diag1_pin: PE15
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
#[tmc2130 extruder1]
|
||||
#cs_pin: PG15
|
||||
#spi_bus: spi3a
|
||||
##diag1_pin: PE10
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
#[tmc2130 extruder2]
|
||||
#cs_pin: PG12
|
||||
#spi_bus: spi3a
|
||||
##diag1_pin: PG5
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
|
||||
########################################
|
||||
# EXP1 / EXP2 (display) pins
|
||||
########################################
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=PG4, EXP1_3=PD11, EXP1_5=PG2, EXP1_7=PG6, EXP1_9=<GND>,
|
||||
EXP1_2=PA8, EXP1_4=PD10, EXP1_6=PG3, EXP1_8=PG7, EXP1_10=<5V>,
|
||||
# EXP2 header
|
||||
EXP2_1=PB14, EXP2_3=PG10, EXP2_5=PF11, EXP2_7=PF12, EXP2_9=<GND>,
|
||||
EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=PF13
|
||||
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2"
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -0,0 +1,91 @@
|
||||
# This file contains common pin mappings for the BIGTREETECH SKR V1.1
|
||||
# board. To use this config, the firmware should be compiled for the
|
||||
# LPC1768.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: P0.4
|
||||
dir_pin: !P0.5
|
||||
enable_pin: !P4.28
|
||||
step_distance: .0025
|
||||
endstop_pin: P1.29
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: P2.1
|
||||
dir_pin: P2.2
|
||||
enable_pin: !P2.0
|
||||
step_distance: .0025
|
||||
endstop_pin: P1.27
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: P0.20
|
||||
dir_pin: P0.21
|
||||
enable_pin: !P0.19
|
||||
step_distance: .0125
|
||||
endstop_pin: !P1.25
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
#[stepper_z1]
|
||||
#step_pin: P0.1
|
||||
#dir_pin: P0.0
|
||||
#enable_pin: !P0.10
|
||||
#position_endstop: 0.5
|
||||
#position_max: 200
|
||||
|
||||
[extruder]
|
||||
step_pin: P0.11
|
||||
dir_pin: P2.13
|
||||
enable_pin: !P2.12
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: P2.7
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: P0.24
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: P2.5
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: P0.23
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: P2.3
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=P1.30, EXP1_3=P0.18, EXP1_5=P0.15, EXP1_7=<NC>, EXP1_9=<GND>,
|
||||
EXP1_2=P2.11, EXP1_4=P0.16, EXP1_6=<NC>, EXP1_8=<NC>, EXP1_10=<5V>,
|
||||
# EXP2 header
|
||||
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
|
||||
EXP2_2=P0.15, EXP2_4=P1.23, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
|
||||
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -0,0 +1,205 @@
|
||||
# This file contains common pin mappings for the BIGTREETECH SKR V1.3
|
||||
# board. To use this config, the firmware should be compiled for the
|
||||
# LPC1768.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: P2.2
|
||||
dir_pin: !P2.6
|
||||
enable_pin: !P2.1
|
||||
step_distance: .0125
|
||||
endstop_pin: P1.29 # P1.28 for X-max
|
||||
position_endstop: 0
|
||||
position_max: 320
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: P0.19
|
||||
dir_pin: !P0.20
|
||||
enable_pin: !P2.8
|
||||
step_distance: .0125
|
||||
endstop_pin: P1.27 # P1.26 for Y-max
|
||||
position_endstop: 0
|
||||
position_max: 300
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: P0.22
|
||||
dir_pin: P2.11
|
||||
enable_pin: !P0.21
|
||||
step_distance: .0025
|
||||
endstop_pin: P1.25 # P1.24 for Z-max
|
||||
position_endstop: 0.5
|
||||
position_max: 400
|
||||
|
||||
[extruder]
|
||||
step_pin: P2.13
|
||||
dir_pin: !P0.11
|
||||
enable_pin: !P2.12
|
||||
step_distance: .010526
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: P2.7
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: P0.24
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 260
|
||||
|
||||
#[extruder1]
|
||||
#step_pin: P0.1
|
||||
#dir_pin: P0.0
|
||||
#enable_pin: !P0.10
|
||||
#heater_pin: P2.4
|
||||
#sensor_pin: P0.25
|
||||
#...
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: P2.5
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: P0.23
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: P2.3
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 200
|
||||
max_accel: 2000
|
||||
max_z_velocity: 25
|
||||
max_z_accel: 100
|
||||
|
||||
|
||||
########################################
|
||||
# TMC2208 configuration
|
||||
########################################
|
||||
|
||||
# For TMC2208 UART
|
||||
# 1) Remove all of the jumpers below the stepper drivers
|
||||
# 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
|
||||
|
||||
#[tmc2208 stepper_x]
|
||||
#uart_pin: P1.17
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 stepper_y]
|
||||
#uart_pin: P1.15
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 stepper_z]
|
||||
#uart_pin: P1.10
|
||||
#microsteps: 16
|
||||
#run_current: 0.650
|
||||
#hold_current: 0.450
|
||||
#stealthchop_threshold: 30
|
||||
|
||||
#[tmc2208 extruder]
|
||||
#uart_pin: P1.8
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
#[tmc2208 extruder1]
|
||||
#uart_pin: P1.1
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
|
||||
########################################
|
||||
# TMC2130 configuration
|
||||
########################################
|
||||
|
||||
# For TMC SPI
|
||||
# 1) Place jumpers on all the red pin headers under the stepper drivers
|
||||
# 2) Remove jumpers from the red pin headers labeled XUART (XUART, YUART etc.)
|
||||
|
||||
#[tmc2130 stepper_x]
|
||||
#cs_pin: P1.17
|
||||
#spi_software_miso_pin: P0.5
|
||||
#spi_software_mosi_pin: P4.28
|
||||
#spi_software_sclk_pin: P0.4
|
||||
##diag1_pin: P1.29
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 stepper_y]
|
||||
#cs_pin: P1.15
|
||||
#spi_software_miso_pin: P0.5
|
||||
#spi_software_mosi_pin: P4.28
|
||||
#spi_software_sclk_pin: P0.4
|
||||
##diag1_pin: P1.27
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 stepper_z]
|
||||
#cs_pin: P1.10
|
||||
#spi_software_miso_pin: P0.5
|
||||
#spi_software_mosi_pin: P4.28
|
||||
#spi_software_sclk_pin: P0.4
|
||||
##diag1_pin: P1.25
|
||||
#microsteps: 16
|
||||
#run_current: 0.650
|
||||
#hold_current: 0.450
|
||||
#stealthchop_threshold: 30
|
||||
|
||||
#[tmc2130 extruder]
|
||||
#cs_pin: P1.8
|
||||
#spi_software_miso_pin: P0.5
|
||||
#spi_software_mosi_pin: P4.28
|
||||
#spi_software_sclk_pin: P0.4
|
||||
##diag1_pin: P1.28
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
#[tmc2130 extruder1]
|
||||
#cs_pin: P1.1
|
||||
#spi_software_miso_pin: P0.5
|
||||
#spi_software_mosi_pin: P4.28
|
||||
#spi_software_sclk_pin: P0.4
|
||||
##diag1_pin: P1.26
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 5
|
||||
|
||||
|
||||
########################################
|
||||
# EXP1 / EXP2 (display) pins
|
||||
########################################
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
|
||||
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
|
||||
# EXP2 header
|
||||
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
|
||||
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
|
||||
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -0,0 +1,371 @@
|
||||
# This file contains common pin mappings for Duet2 Eth/Wifi boards
|
||||
# that have the Duex expansion board. To use this config, the firmware
|
||||
# should be compiled for the SAM4E8E.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
## Drivers
|
||||
# Here are the pins for the 10 stepper drivers supported by a Duet2 board
|
||||
# | Drive | DIR pin | STEP pin | ENDSTOP pin | SPI EN pin |
|
||||
# |-------|----------|-----------|--------------|-------------|
|
||||
# | X | PD11 | PD6 | PC14 | PD14 |
|
||||
# | Y | PD12 | PD7 | PA2 | PC9 |
|
||||
# | Z | PD13 | PD8 | PD29 | PC10 |
|
||||
# | E0 | PA1 | PD5 | PD10 | PC17 |
|
||||
# | E1 | PD9 | PD4 | PC16 | PC25 |
|
||||
# | E2 | PD28 | PD2 | PE0* | PD23 |
|
||||
# | E3 | PD22 | PD1 | PE1* | PD24 |
|
||||
# | E4 | PD16 | PD0 | PE2* | PD25 |
|
||||
# | E5 | PD17 | PD3 | PE3* | PD26 |
|
||||
# | E6 | PC0 | PD27 | PA17* | PB14 |
|
||||
# Pins marked with asterisks (*) are only assigned to these functions
|
||||
# if no duex is connected. If a duex is connected, these endstops are
|
||||
# remapped to the SX1509 on the Duex (unfortunately they can't be used
|
||||
# as endstops in klipper, however one may use them as digital outs or
|
||||
# PWM outs). The SPI EN pins are required for the TMC2660 drivers (use
|
||||
# the SPI EN pin as 'cs_pin' in the respective config block). The
|
||||
# **enable pin for all steppers** is TMC_EN = !PC6.
|
||||
#
|
||||
## Fans
|
||||
# | FAN | PIN |
|
||||
# |------|-----------------------|
|
||||
# | FAN0 | PC23 |
|
||||
# | FAN1 | PC26 |
|
||||
# | FAN2 | PA0 |
|
||||
# | FAN3 | sx1509_duex:PIN_12* |
|
||||
# | FAN4 | sx1509_duex:PIN_7* |
|
||||
# | FAN5 | sx1509_duex:PIN_6* |
|
||||
# | FAN6 | sx1509_duex:PIN_5* |
|
||||
# | FAN7 | sx1509_duex:PIN_4* |
|
||||
# | FAN8 | sx1509_duex:PIN_15* |
|
||||
# Pins marked with (*) assume the following sx1509 config section:
|
||||
#[sx1509 duex]
|
||||
#i2c_address: 62
|
||||
#
|
||||
## Heaters and Thermistors
|
||||
# | Extruder Drive | HEAT pin | TEMP pin |
|
||||
# |----------------|-----------|-----------|
|
||||
# | BED | PA19 | PC13 |
|
||||
# | E0 | PA20 | PC15 |
|
||||
# | E1 | PA16 | PC12 |
|
||||
# | E2 | PC3 | PC29 |
|
||||
# | E3 | PC5 | PC30 |
|
||||
# | E4 | PC8 | PC31 |
|
||||
# | E5 | PC11 | PC27 |
|
||||
# | E6 | PA15 | PA18 |
|
||||
#
|
||||
## Misc pins
|
||||
# | Name | Pin |
|
||||
# |-------------|---------|
|
||||
# | ZProbe_IN | PC1 |
|
||||
# | PS_ON | PD15 |
|
||||
# | LED_ONBOARD | PC2 |
|
||||
# | SPI0_CS0 | PC24 |
|
||||
# | SPI0_CS1 | PB2 |
|
||||
# | SPI0_CS2 | PC18 |
|
||||
# | SPI0_CS3 | PC19 |
|
||||
# | SPI0_CS4 | PC20 |
|
||||
# | SPI0_CS5 | PA24 |
|
||||
# | SPI0_CS6 | PE1* |
|
||||
# | SPI0_CS7 | PE2* |
|
||||
# | SPI0_CS8 | PE3* |
|
||||
# | SX1509_IRQ | PA17* |
|
||||
# | SG_TST | PE0* |
|
||||
# | ENC_SW | PA7 |
|
||||
# | ENC_A | PA8 |
|
||||
# | ENC_B | PC7 |
|
||||
# | LCD_DB7 | PD18 |
|
||||
# | LCD_DB6 | PD19 |
|
||||
# | LCD_DB5 | PD20 |
|
||||
# | LCD_DB4 | PD21 |
|
||||
# | LCD_RS | PC28 |
|
||||
# | LCD_E | PA25 |
|
||||
# Pins marked with one asterisk (*) replace E2_STOP-E6_STOP if a duex is present
|
||||
# For the remaining pins check the schematics provided here: https://github.com/T3P3/Duet
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PD6
|
||||
dir_pin: PD11
|
||||
enable_pin: !PC6, tmc2660_stepper_x:virtual_enable
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC14
|
||||
position_endstop: 0
|
||||
position_max: 250
|
||||
|
||||
[tmc2660 stepper_x]
|
||||
cs_pin: PD14 # X_SPI_EN Required for communication
|
||||
spi_bus: usart1 # All TMC2660 drivers are connected to USART1
|
||||
microsteps: 16
|
||||
interpolate: True # 1/16 micro-steps interpolated to 1/256
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
idle_current_percent: 20
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PD7
|
||||
dir_pin: !PD12
|
||||
enable_pin: !PC6, tmc2660_stepper_y:virtual_enable
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA2
|
||||
position_endstop: 0
|
||||
position_max: 210
|
||||
|
||||
[tmc2660 stepper_y]
|
||||
cs_pin: PC9
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
idle_current_percent: 20
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PD8
|
||||
dir_pin: PD13
|
||||
enable_pin: !PC6, tmc2660_stepper_z:virtual_enable
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PD29
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
[tmc2660 stepper_z]
|
||||
cs_pin: PC10
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
#On drive E4
|
||||
[stepper_z1]
|
||||
step_pin: PD0
|
||||
dir_pin: PD16
|
||||
enable_pin: !PC6, tmc2660_stepper_z1:virtual_enable
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z1]
|
||||
cs_pin: PD25
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
#On drive E5
|
||||
[stepper_z2]
|
||||
step_pin: PD3
|
||||
dir_pin: !PD17
|
||||
enable_pin: !PC6, tmc2660_stepper_z2:virtual_enable
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z2]
|
||||
cs_pin: PD26
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
#On drive E6
|
||||
[stepper_z3]
|
||||
step_pin: PD27
|
||||
dir_pin: !PC0
|
||||
enable_pin: !PC6, tmc2660_stepper_z3:virtual_enable
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z3]
|
||||
cs_pin: PB14
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
#On drive E0
|
||||
[extruder0]
|
||||
step_pin: PD5
|
||||
dir_pin: PA1
|
||||
enable_pin: !PC6, tmc2660_extruder0:virtual_enable
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: !PA20
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC15
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder0]
|
||||
cs_pin: PC17
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
#On drive E1
|
||||
[extruder1]
|
||||
step_pin: PD4
|
||||
dir_pin: PD9
|
||||
enable_pin: !PC6, tmc2660_extruder1:virtual_enable
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: !PA16
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC12
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder1]
|
||||
cs_pin: PC25
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
# On drive E2
|
||||
[extruder2]
|
||||
step_pin: PD2
|
||||
dir_pin: !PD28
|
||||
enable_pin: !PC6, tmc2660_extruder2:virtual_enable
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: !PC3
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC29
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder2]
|
||||
cs_pin: PD23
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
# On drive E3
|
||||
[extruder3]
|
||||
step_pin: PD1
|
||||
dir_pin: !PD22
|
||||
enable_pin: !PC6, tmc2660_extruder3:virtual_enable
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: !PC5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC30
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder3]
|
||||
cs_pin: PD24
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: !PA19
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC13
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
# Fan0
|
||||
[fan]
|
||||
pin: PC23
|
||||
|
||||
# Fan1 controlled by extruder0
|
||||
[heater_fan nozzle_cooling_fan]
|
||||
pin: PC26
|
||||
heater: extruder0
|
||||
heater_temp: 45
|
||||
fan_speed: 1.0
|
||||
|
||||
# Fan2, controlled by E5_TEMP
|
||||
[temperature_fan chamber_fan]
|
||||
pin: PA0
|
||||
max_power: 1
|
||||
shutdown_speed: 1
|
||||
cycle_time: 0.01
|
||||
min_temp: 40
|
||||
max_temp: 120
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC27
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[sx1509 duex]
|
||||
i2c_address: 62 # Address is fixed on duex boards
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[static_digital_output onboard_led]
|
||||
pins: !PC2
|
||||
|
||||
[output_pin FAN3]
|
||||
pin: sx1509_duex:PIN_12
|
||||
pwm: True
|
||||
hardware_pwm: True # Only hardware PWM fans are supported
|
||||
|
||||
[output_pin FAN4]
|
||||
pin: sx1509_duex:PIN_7
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN5]
|
||||
pin: sx1509_duex:PIN_6
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN6]
|
||||
pin: sx1509_duex:PIN_5
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN7]
|
||||
pin: sx1509_duex:PIN_4
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN8]
|
||||
pin: sx1509_duex:PIN_15
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin GPIO1] # General purpose pin broken out on the duex
|
||||
pin: sx1509_duex:PIN_11
|
||||
pwm: False
|
||||
value: 1
|
||||
@@ -0,0 +1,148 @@
|
||||
# This file contains common pin mappings for the Duet2 Maestro. To use
|
||||
# this config, the firmware should be compiled for the sam4s8c.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PC20
|
||||
dir_pin: PC18
|
||||
enable_pin: !PA1, tmc2208_stepper_x:virtual_enable
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA24
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2208 stepper_x]
|
||||
uart_pin: PA9
|
||||
tx_pin: PA10
|
||||
select_pins: !PC14, !PC16, !PC17
|
||||
sense_resistor: 0.075
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PC2
|
||||
dir_pin: PA8
|
||||
enable_pin: !PA1, tmc2208_stepper_y:virtual_enable
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PB6
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2208 stepper_y]
|
||||
uart_pin: PA9
|
||||
tx_pin: PA10
|
||||
select_pins: PC14, !PC16, !PC17
|
||||
sense_resistor: 0.075
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PC28
|
||||
dir_pin: PB4
|
||||
enable_pin: !PA1, tmc2208_stepper_z:virtual_enable
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PC10
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
[tmc2208 stepper_z]
|
||||
uart_pin: PA9
|
||||
tx_pin: PA10
|
||||
select_pins: !PC14, PC16, !PC17
|
||||
sense_resistor: 0.075
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
stealthchop_threshold: 30
|
||||
|
||||
[extruder]
|
||||
step_pin: PC4
|
||||
dir_pin: PB7
|
||||
enable_pin: !PA1, tmc2208_extruder:virtual_enable
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: !PC1
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PB0
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2208 extruder]
|
||||
uart_pin: PA9
|
||||
tx_pin: PA10
|
||||
select_pins: PC14, PC16, !PC17
|
||||
sense_resistor: 0.075
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
stealthchop_threshold: 5
|
||||
|
||||
#[extruder1]
|
||||
#step_pin: PC5
|
||||
#dir_pin: PC6
|
||||
#enable_pin: !PA1
|
||||
#heater_pin: !PA16
|
||||
#sensor_pin: PC30
|
||||
#...
|
||||
#[tmc2208 extruder1]
|
||||
#select_pins: !PC14, !PC16, PC17
|
||||
#sense_resistor: 0.075
|
||||
#...
|
||||
|
||||
# External steppers
|
||||
# e2: step_pin=PC31 dir_pin=PA18 enable_pin=PC27 select_pins=PC14,!PC16,PC17
|
||||
# e3: step_pin=PC21 dir_pin=PC24 enable_pin=PC25 select_pins=!PC14,PC16,PC17
|
||||
# e0_stop: endstop_pin=PA25
|
||||
# e1_stop: endstop_pin=PC7
|
||||
# c_temp: sensor_pin=PB1
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: !PC0
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PA20
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PC23 # FAN0
|
||||
|
||||
#[heater_fan nozzle_cooling_fan]
|
||||
#pin: PC22 # FAN1
|
||||
|
||||
#[heater_fan board_cooling_fan]
|
||||
#pin: PC29 # FAN2
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[static_digital_output led]
|
||||
pins: !PC26
|
||||
|
||||
# EXP1 / EXP2 (display) pins
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=PA15, EXP1_3=PA6, EXP1_5=PA2, EXP1_7=<NC>, EXP1_9=<GND>,
|
||||
EXP1_2=PA7, EXP1_4=PC9, EXP1_6=<NC>, EXP1_8=<NC>, EXP1_10=<5V>,
|
||||
# EXP2 header
|
||||
EXP2_1=PA5, EXP2_3=PC3, EXP2_5=PB5, EXP2_7=<NC>, EXP2_9=<GND>,
|
||||
EXP2_2=PA2, EXP2_4=PB13, EXP2_6=PA6, EXP2_8=<RST>, EXP2_10=<NC>
|
||||
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "usart0"
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -1,109 +1,28 @@
|
||||
# This file contains common pin mappings for Duet2 boards. To use
|
||||
# this config, the firmware should be compiled for the SAM4E8E.
|
||||
# This file contains common pin mappings for Duet2 Eth/Wifi boards. To
|
||||
# use this config, the firmware should be compiled for the SAM4E8E.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
## Drivers
|
||||
# Here are the pins for the 10 stepper drivers supported by a Duet2 board
|
||||
# | Drive | DIR pin | STEP pin | ENDSTOP pin | SPI EN pin |
|
||||
# |-------|----------|-----------|--------------|-------------|
|
||||
# | X | PD11 | PD6 | PC14 | PD14 |
|
||||
# | Y | PD12 | PD7 | PA2 | PC9 |
|
||||
# | Z | PD13 | PD8 | PD29 | PC10 |
|
||||
# | E0 | PA1 | PD5 | PD10 | PC17 |
|
||||
# | E1 | PD9 | PD4 | PC16 | PC25 |
|
||||
# | E2 | PD28 | PD2 | PE0* | PD23 |
|
||||
# | E3 | PD22 | PD1 | PE1* | PD24 |
|
||||
# | E4 | PD16 | PD0 | PE2* | PD25 |
|
||||
# | E5 | PD17 | PD3 | PE3* | PD26 |
|
||||
# | E6 | PA25 | PD21 | PA17* | PC28 |
|
||||
# Pins marked with asterisks (*) are only assigned to these functions
|
||||
# if no duex is connected. If a duex is connected, these endstops are
|
||||
# remapped to the SX1509 on the Duex (unfortunately they can't be used
|
||||
# as endstops in klipper, however one may use them as digital outs or
|
||||
# PWM outs). The SPI EN pins are required for the TMC2660 drivers (use
|
||||
# the SPI EN pin as 'cs_pin' in the respective config block). The
|
||||
# **enable pin for all steppers** is TMC_EN = !PC6.
|
||||
#
|
||||
## Fans
|
||||
# | FAN | PIN |
|
||||
# |------|-----------------------|
|
||||
# | FAN0 | PC23 |
|
||||
# | FAN1 | PC26 |
|
||||
# | FAN2 | PA0 |
|
||||
# | FAN3 | sx1509_duex:PIN_12* |
|
||||
# | FAN4 | sx1509_duex:PIN_7* |
|
||||
# | FAN5 | sx1509_duex:PIN_6* |
|
||||
# | FAN6 | sx1509_duex:PIN_5* |
|
||||
# | FAN7 | sx1509_duex:PIN_4* |
|
||||
# | FAN8 | sx1509_duex:PIN_15* |
|
||||
# Pins marked with (*) assume the following sx1509 config section:
|
||||
#[sx1509 duex]
|
||||
#address: 0x3E
|
||||
#
|
||||
## Heaters and Thermistors
|
||||
# | Extruder Drive | HEAT pin | TEMP pin |
|
||||
# |----------------|-----------|-----------|
|
||||
# | BED | PA19 | PC13 |
|
||||
# | E0 | PA20 | PC15 |
|
||||
# | E1 | PA16 | PC12 |
|
||||
# | E2 | PC3 | PC29 |
|
||||
# | E3 | PC5 | PC30 |
|
||||
# | E4 | PC8 | PC31 |
|
||||
# | E5 | PC11 | PC27 |
|
||||
# | E6 | PA15 | PA18 |
|
||||
#
|
||||
## Misc pins
|
||||
# | Name | Pin |
|
||||
# |-------------|---------|
|
||||
# | ZProbe_IN | PC1 |
|
||||
# | PS_ON | PD15 |
|
||||
# | LED_ONBOARD | PC2 |
|
||||
# | SPI0_CS0 | PC24 |
|
||||
# | SPI0_CS1 | PB2 |
|
||||
# | SPI0_CS2 | PC18 |
|
||||
# | SPI0_CS3 | PC19 |
|
||||
# | SPI0_CS4 | PC20 |
|
||||
# | SPI0_CS5 | PA24 |
|
||||
# | SPI0_CS6 | PE1* |
|
||||
# | SPI0_CS7 | PE2* |
|
||||
# | SPI0_CS8 | PE3* |
|
||||
# | SX1509_IRQ | PA17* |
|
||||
# | SG_TST | PE0* |
|
||||
# | ENC_SW | PA7 |
|
||||
# | ENC_A | PA8 |
|
||||
# | ENC_B | PC7 |
|
||||
# | LCD_DB7 | PD18 |
|
||||
# | LCD_DB6 | PD19 |
|
||||
# | LCD_DB5 | PD20 |
|
||||
# | LCD_DB4 | PD21** |
|
||||
# | LCD_RS | PC28** |
|
||||
# | LCD_E | PA25** |
|
||||
# Pins marked with one asterisk (*) replace E2_STOP-E6_STOP if a duex is present
|
||||
# Pins marked with two asterisks (**) share pins with drive E6.
|
||||
# For the remaining pins check the schematics provided here: https://github.com/T3P3/Duet
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PD6
|
||||
dir_pin: PD11
|
||||
enable_pin: !PC6 # shared between all steppers
|
||||
enable_pin: !PC6, tmc2660_stepper_x:virtual_enable
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC14
|
||||
position_endstop: 0
|
||||
position_max: 250
|
||||
|
||||
[tmc2660 stepper_x]
|
||||
cs_pin: PD14 # X_SPI_EN Required for communication
|
||||
spi_bus: 1 # All TMC2660 drivers are connected to USART1, which is bus 1 on the sam4e port
|
||||
cs_pin: PD14
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True # 1/16 micro-steps interpolated to 1/256
|
||||
run_current: 1.000
|
||||
idle_current_percent: 20
|
||||
sense_resistor: 0.051
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PD7
|
||||
dir_pin: !PD12
|
||||
enable_pin: !PC6
|
||||
enable_pin: !PC6, tmc2660_stepper_y:virtual_enable
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA2
|
||||
position_endstop: 0
|
||||
@@ -111,79 +30,37 @@ position_max: 210
|
||||
|
||||
[tmc2660 stepper_y]
|
||||
cs_pin: PC9
|
||||
spi_bus: 1
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
idle_current_percent: 20
|
||||
sense_resistor: 0.051
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PD8
|
||||
dir_pin: PD13
|
||||
enable_pin: !PC6
|
||||
enable_pin: !PC6, tmc2660_stepper_z:virtual_enable
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PD29
|
||||
#endstop_pin: PD10 # E0 endstop
|
||||
#endstop_pin: PC16 # E1 endstop
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
[tmc2660 stepper_z]
|
||||
cs_pin: PC10
|
||||
spi_bus: 1
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
#On drive E4
|
||||
[stepper_z1]
|
||||
step_pin: PD0
|
||||
dir_pin: PD16
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z1]
|
||||
cs_pin: PD25
|
||||
spi_bus: 1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
|
||||
#On drive E5
|
||||
[stepper_z2]
|
||||
step_pin: PD3
|
||||
dir_pin: !PD17
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z2]
|
||||
cs_pin: PD26
|
||||
spi_bus: 1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
|
||||
#On drive E6
|
||||
[stepper_z3]
|
||||
step_pin: PD21
|
||||
dir_pin: !PA25
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z3]
|
||||
cs_pin: PC28
|
||||
spi_bus: 1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
|
||||
#On drive E0
|
||||
[extruder0]
|
||||
[extruder]
|
||||
step_pin: PD5
|
||||
dir_pin: PA1
|
||||
enable_pin: !PC6
|
||||
enable_pin: !PC6, tmc2660_extruder:virtual_enable
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PA20
|
||||
heater_pin: !PA20
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC15
|
||||
control: pid
|
||||
@@ -193,128 +70,45 @@ pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder0]
|
||||
[tmc2660 extruder]
|
||||
cs_pin: PC17
|
||||
spi_bus: 1
|
||||
spi_bus: usart1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
sense_resistor: 0.051
|
||||
|
||||
#On drive E1
|
||||
[extruder1]
|
||||
step_pin: PD4
|
||||
dir_pin: PD9
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PA16
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC12
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder1]
|
||||
cs_pin: PC25
|
||||
spi_bus: 1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
|
||||
# On drive E2
|
||||
[extruder2]
|
||||
step_pin: PD2
|
||||
dir_pin: !PD28
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PC3
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC29
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder2]
|
||||
cs_pin: PD23
|
||||
spi_bus: 1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
|
||||
# On drive E3
|
||||
[extruder3]
|
||||
step_pin: PD1
|
||||
dir_pin: !PD22
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PC5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC30
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2660 extruder3]
|
||||
cs_pin: PD24
|
||||
spi_bus: 1
|
||||
microsteps: 16
|
||||
interpolate: True
|
||||
run_current: 1.000
|
||||
#[extruder1]
|
||||
#step_pin: PD4
|
||||
#dir_pin: PD9
|
||||
#enable_pin: !PC6, tmc2660_extruder1:virtual_enable
|
||||
#heater_pin: !PA16
|
||||
#sensor_pin: PC12
|
||||
#...
|
||||
#[tmc2660 extruder1]
|
||||
#cs_pin: PC25
|
||||
#spi_bus: usart1
|
||||
#sense_resistor: 0.051
|
||||
#...
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PA19
|
||||
heater_pin: !PA19
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC13
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
# Fan0
|
||||
[fan]
|
||||
pin: PC23
|
||||
pin: PC23 # FAN0
|
||||
|
||||
# Fan1 controlled by extruder0
|
||||
[heater_fan nozzle_cooling_fan]
|
||||
pin: PC26
|
||||
heater: extruder0
|
||||
heater_temp: 45
|
||||
fan_speed: 1.0
|
||||
#[heater_fan nozzle_cooling_fan]
|
||||
#pin: PC26 # FAN1
|
||||
|
||||
# Fan2, controlled by E5_TEMP
|
||||
[temperature_fan chamber_fan]
|
||||
pin: PA0
|
||||
max_power: 1
|
||||
shutdown_speed: 1
|
||||
cycle_time: 0.01
|
||||
min_temp: 40
|
||||
max_temp: 120
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC27
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
#[heater_fan board_cooling_fan]
|
||||
#pin: PA0 # FAN2
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyACM0
|
||||
restart_method: command
|
||||
|
||||
[sx1509 duex]
|
||||
address: 0x3E # Address is fixed on duex boards
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
@@ -322,41 +116,3 @@ max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[static_digital_output onboard_led]
|
||||
pins: !PC2
|
||||
|
||||
[output_pin FAN3]
|
||||
pin: !sx1509_duex:PIN_12
|
||||
pwm: True
|
||||
hardware_pwm: True # Only hardware PWM fans are supported
|
||||
|
||||
[output_pin FAN4]
|
||||
pin: !sx1509_duex:PIN_7
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN5]
|
||||
pin: !sx1509_duex:PIN_6
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN6]
|
||||
pin: !sx1509_duex:PIN_5
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN7]
|
||||
pin: !sx1509_duex:PIN_4
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin FAN8]
|
||||
pin: !sx1509_duex:PIN_15
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
|
||||
[output_pin GPIO1] # General purpose pin broken out on the duex
|
||||
pin: sx1509_duex:PIN_11
|
||||
pwm: False
|
||||
value: 1
|
||||
@@ -0,0 +1,125 @@
|
||||
# This file contains common pin mappings for the Fysetc Cheetah v1.1
|
||||
# board. To use this config, the firmware should be compiled for the
|
||||
# STM32F103 with "No bootloader" and with "Use USB for communication"
|
||||
# disabled.
|
||||
|
||||
# The "make flash" command does not work on the Cheetah. Instead,
|
||||
# after running "make", run the following command to flash the board:
|
||||
# stm32flash -w out/klipper.bin -v -i rts,-dtr,dtr /dev/ttyUSB0
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PB8
|
||||
dir_pin: !PB9
|
||||
enable_pin: !PA8
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA1
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2209 stepper_x]
|
||||
uart_pin: PA3
|
||||
tx_pin: PA2
|
||||
uart_address: 0
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PB2
|
||||
dir_pin: !PB3
|
||||
enable_pin: !PB1
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PB4
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2209 stepper_y]
|
||||
uart_pin: PA3
|
||||
tx_pin: PA2
|
||||
uart_address: 1
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PC0
|
||||
dir_pin: PC1
|
||||
enable_pin: !PC2
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PA15
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
|
||||
[tmc2209 stepper_z]
|
||||
uart_pin: PA3
|
||||
tx_pin: PA2
|
||||
uart_address: 2
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 5
|
||||
|
||||
[extruder]
|
||||
step_pin: PC15
|
||||
dir_pin: !PC14
|
||||
enable_pin: !PC13
|
||||
step_distance: 0.010526
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PC6
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC4
|
||||
control: pid
|
||||
pid_kp: 21.527
|
||||
pid_ki: 1.063
|
||||
pid_kd: 108.982
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2209 extruder]
|
||||
uart_pin: PA3
|
||||
tx_pin: PA2
|
||||
uart_address: 3
|
||||
microsteps: 16
|
||||
run_current: 1.0
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 5
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PC7
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC5
|
||||
control: pid
|
||||
pid_kp: 54.027
|
||||
pid_ki: 0.770
|
||||
pid_kd: 948.182
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PC8
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=PC9, EXP1_3=PC11, EXP1_5=PC10, EXP1_7=PB12, EXP1_9=<GND>,
|
||||
EXP1_2=PC12, EXP1_4=PB14, EXP1_6=PB13, EXP1_8=PB15, EXP1_10=<5V>
|
||||
# Pins EXP1_4, EXP1_8, EXP1_6 are also MISO, MOSI, SCK of bus "spi2"
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -0,0 +1,121 @@
|
||||
# This file contains common pin mappings for the Fysetc Cheetah v1.2b
|
||||
# board. To use this config, the firmware should be compiled for the
|
||||
# STM32F103 with "No bootloader" and with "Use USB for communication"
|
||||
# disabled.
|
||||
|
||||
# The "make flash" command does not work on the Cheetah. Instead,
|
||||
# after running "make", run the following command to flash the board:
|
||||
# stm32flash -w out/klipper.bin -v -i rts,-dtr,dtr /dev/ttyUSB0
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PB8
|
||||
dir_pin: !PB9
|
||||
enable_pin: !PA8
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA1
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2208 stepper_x]
|
||||
uart_pin: PA12
|
||||
tx_pin: PA11
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PB2
|
||||
dir_pin: !PB3
|
||||
enable_pin: !PB1
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PB4
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[tmc2208 stepper_y]
|
||||
uart_pin: PB7
|
||||
tx_pin: PB6
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 250
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PC0
|
||||
dir_pin: PC1
|
||||
enable_pin: !PC2
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PA15
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
|
||||
[tmc2208 stepper_z]
|
||||
uart_pin: PB11
|
||||
tx_pin: PB10
|
||||
microsteps: 16
|
||||
run_current: 0.800
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 5
|
||||
|
||||
[extruder]
|
||||
step_pin: PC15
|
||||
dir_pin: !PC14
|
||||
enable_pin: !PC13
|
||||
step_distance: 0.010526
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PC6
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC4
|
||||
control: pid
|
||||
pid_kp: 21.527
|
||||
pid_ki: 1.063
|
||||
pid_kd: 108.982
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[tmc2208 extruder]
|
||||
uart_pin: PA3
|
||||
tx_pin: PA2
|
||||
microsteps: 16
|
||||
run_current: 1.0
|
||||
hold_current: 0.500
|
||||
stealthchop_threshold: 5
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PC7
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PC5
|
||||
control: pid
|
||||
pid_kp: 54.027
|
||||
pid_ki: 0.770
|
||||
pid_kd: 948.182
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PC8
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=PC9, EXP1_3=PC11, EXP1_5=PC10, EXP1_7=PB12, EXP1_9=<GND>,
|
||||
EXP1_2=PC12, EXP1_4=PB14, EXP1_6=PB13, EXP1_8=PB15, EXP1_10=<5V>
|
||||
# Pins EXP1_4, EXP1_8, EXP1_6 are also MISO, MOSI, SCK of bus "spi2"
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -0,0 +1,306 @@
|
||||
# This file contains common pin mappings for a Fysetc F6 board.
|
||||
# To use this config, the firmware should be compiled for the AVR atmega2560.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PF0
|
||||
dir_pin: PF1
|
||||
enable_pin: !PD7
|
||||
step_distance: .0125
|
||||
endstop_pin: PK1 # PK2 for X-max
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PF6
|
||||
dir_pin: PF7
|
||||
enable_pin: !PF2
|
||||
step_distance: .0125
|
||||
endstop_pin: PJ1 # PJ0 for Y-max
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PL6
|
||||
dir_pin: PL1
|
||||
enable_pin: !PF4
|
||||
step_distance: .0025
|
||||
endstop_pin: PB6 # PE4 for Z-max
|
||||
position_endstop: 0
|
||||
position_max: 400
|
||||
|
||||
[extruder]
|
||||
step_pin: PA4
|
||||
dir_pin: !PA6
|
||||
enable_pin: !PA2
|
||||
step_distance: .01
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PE3
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PK4
|
||||
control: pid
|
||||
pid_Kp: 22
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 260
|
||||
|
||||
#[extruder1]
|
||||
#step_pin: PC1
|
||||
#dir_pin: !PC3
|
||||
#enable_pin: !PC7
|
||||
#heater_pin: PH3
|
||||
#sensor_pin: PK5
|
||||
|
||||
#[extruder2]
|
||||
#step_pin: PF5
|
||||
#dir_pin: !PF3
|
||||
#enable_pin: !PG1
|
||||
#heater_pin: PH4
|
||||
#sensor_pin: PK6
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PH5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PK7
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
#fan for printed model FAN0
|
||||
[fan]
|
||||
pin: PL5
|
||||
|
||||
#fan for hotend FAN1
|
||||
#[heater_fan my_nozzle_fan]
|
||||
#pin: PL4
|
||||
#shutdown_speed: 1
|
||||
|
||||
#fan for control board FAN2
|
||||
#[heater_fan my_control_fan]
|
||||
#pin: PL3
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
#Prevents communication issues with SPI drivers
|
||||
[static_digital_output disable_sdcard]
|
||||
pins: PB0
|
||||
|
||||
########################################
|
||||
# TMC UART configuration
|
||||
########################################
|
||||
|
||||
# For TMC UART
|
||||
# 1) Remove all jumpers below the stepper drivers.
|
||||
# 2) Place jumper on the left and middle pin of the three pin header.
|
||||
|
||||
#[tmc2208 stepper_x]
|
||||
#uart_pin: PG3
|
||||
#tx_pin: PJ2
|
||||
#microsteps: 16
|
||||
#run_current: 0.8
|
||||
#hold_current: 0.5
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 stepper_y]
|
||||
#uart_pin: PJ3
|
||||
#tx_pin: PJ4
|
||||
#microsteps: 16
|
||||
#run_current: 0.8
|
||||
#hold_current: 0.5
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 stepper_z]
|
||||
#uart_pin: PE2
|
||||
#tx_pin: PE6
|
||||
#microsteps: 16
|
||||
#run_current: 0.8
|
||||
#hold_current: 0.5
|
||||
#stealthchop_threshold: 100
|
||||
|
||||
#[tmc2208 extruder]
|
||||
#uart_pin: PJ5
|
||||
#tx_pin: PJ6
|
||||
#microsteps: 16
|
||||
#run_current: 0.8
|
||||
#hold_current: 0.5
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 extruder1]
|
||||
#uart_pin: PE7
|
||||
#tx_pin: PD4
|
||||
#microsteps: 16
|
||||
#run_current: 0.8
|
||||
#hold_current: 0.5
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2208 extruder2]
|
||||
#uart_pin: PA1
|
||||
#tx_pin: PD5
|
||||
#microsteps: 16
|
||||
#run_current: 0.8
|
||||
#hold_current: 0.5
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
########################################
|
||||
# TMC SPI configuration
|
||||
########################################
|
||||
|
||||
# For TMC SPI
|
||||
# 1) Remove all jumpers below the stepper drivers.
|
||||
# 2) Place jumper on the middle and right pin of the small three pin header.
|
||||
# 3) Place jumpers on the four small two pin headers.
|
||||
|
||||
# For TMC Sensorless homing / DIAG1
|
||||
# 1) Place jumper on the small two pin header near the endstop.
|
||||
|
||||
#[tmc2130 stepper_x]
|
||||
#cs_pin: PG4
|
||||
#diag1_pin: PK1
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 stepper_y]
|
||||
#cs_pin: PG2
|
||||
#diag1_pin: PJ1
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 stepper_z]
|
||||
#cs_pin: PJ6
|
||||
#diag1_pin: PB6
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 extruder]
|
||||
#cs_pin: PL2
|
||||
#diag1_pin: PE4
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 extruder1]
|
||||
#cs_pin: PC5
|
||||
#diag1_pin: PJ0
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
#[tmc2130 extruder2]
|
||||
#cs_pin: PL7
|
||||
#diag1_pin: PK2
|
||||
#microsteps: 16
|
||||
#run_current: 0.800
|
||||
#hold_current: 0.500
|
||||
#stealthchop_threshold: 250
|
||||
|
||||
########################################
|
||||
# EXP1 / EXP2 (display) pins
|
||||
########################################
|
||||
|
||||
# These must be turned 180° when compared to the default RAMPS layout.
|
||||
# The aliases below are 180° turned from what Fysetc considers pin 1,
|
||||
# but visually correspond to the plugs on the board.
|
||||
|
||||
[board_pins]
|
||||
aliases:
|
||||
# EXP1 header
|
||||
EXP1_1=PC0, EXP1_2=PC2,
|
||||
EXP1_3=PH0, EXP1_4=PH1,
|
||||
EXP1_5=PA1, EXP1_6=PA3, # Slot in the socket on this side
|
||||
EXP1_7=PA5, EXP1_8=PA7,
|
||||
EXP1_9=<GND>, EXP1_10=<5V>,
|
||||
|
||||
# EXP2 header
|
||||
EXP2_1=PB3, EXP2_2=PB1,
|
||||
EXP2_3=PC6, EXP2_4=PB0,
|
||||
EXP2_5=PC4, EXP2_6=PB2, # Slot in the socket on this side
|
||||
EXP2_7=PL0, EXP2_8=<RST>,
|
||||
EXP2_9=<GND>, EXP2_10=<5V> # or PG0 via jumper
|
||||
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
|
||||
########################################
|
||||
# Servos
|
||||
########################################
|
||||
|
||||
# See the example-extras.cfg file for more information.
|
||||
# All Servo pins support hardware PWM.
|
||||
|
||||
#[servo my_servo1]
|
||||
#pin: PB7
|
||||
|
||||
#[servo my_servo2]
|
||||
#pin: PB5
|
||||
|
||||
#[servo my_servo3]
|
||||
#pin: PB4
|
||||
|
||||
#[servo my_servo4]
|
||||
#pin: PG5
|
||||
|
||||
########################################
|
||||
# RGB header
|
||||
########################################
|
||||
|
||||
# See the example-extras.cfg file for more information.
|
||||
# All RGB pins support hardware PWM.
|
||||
|
||||
#[output_pin blue]
|
||||
#pin: PH6
|
||||
|
||||
#[output_pin red]
|
||||
#pin: PE5
|
||||
|
||||
#[output_pin green]
|
||||
#pin: PG5
|
||||
|
||||
########################################
|
||||
# AUX-1 header
|
||||
########################################
|
||||
|
||||
# Various analog and digital pins
|
||||
# PK0 (analog), PK3 (analog), <GND>, <5V>
|
||||
# PE0 (RXD0) , PE1 (TXD0) , <GND>, <5V>
|
||||
|
||||
########################################
|
||||
# SD header
|
||||
########################################
|
||||
|
||||
# Various digital / SPI pins
|
||||
# PL0 , PB2, PB0, RST
|
||||
# <5V>, PB3, PB1, <GND>
|
||||
|
||||
########################################
|
||||
# UART header
|
||||
########################################
|
||||
|
||||
# Various digital / UART pins
|
||||
# <5V>
|
||||
# <GND>
|
||||
# PD2
|
||||
# PD3
|
||||
|
||||
########################################
|
||||
# I2C header
|
||||
########################################
|
||||
|
||||
# SCL, SDA, <5V>, <GND>
|
||||
@@ -0,0 +1,88 @@
|
||||
# This file contains common pin mappings for the Geeetech GT2560
|
||||
# board. GT2560 board uses a firmware compiled for the AVR
|
||||
# atmega2560.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: ar25
|
||||
dir_pin: ar23
|
||||
enable_pin: !ar27
|
||||
step_distance: .0125
|
||||
endstop_pin: ^ar22
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 30
|
||||
|
||||
[stepper_y]
|
||||
step_pin: ar31
|
||||
dir_pin: ar33
|
||||
enable_pin: !ar29
|
||||
step_distance: .0125
|
||||
endstop_pin: ^ar26
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 30
|
||||
|
||||
[stepper_z]
|
||||
step_pin: ar37
|
||||
dir_pin: !ar39
|
||||
enable_pin: !ar35
|
||||
step_distance: .0025
|
||||
endstop_pin: ^ar30
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
position_min: 0.0
|
||||
|
||||
[extruder]
|
||||
step_pin: ar43
|
||||
dir_pin: ar45
|
||||
enable_pin: !ar41
|
||||
step_distance: .0104789
|
||||
nozzle_diameter: 0.4
|
||||
filament_diameter: 1.750
|
||||
heater_pin: ar2
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: analog8
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
control: pid
|
||||
pid_kp: 29.800
|
||||
pid_ki: 1.774
|
||||
pid_kd: 125.159
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: ar4
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: analog10
|
||||
min_temp: 0
|
||||
max_temp: 120
|
||||
control: pid
|
||||
pid_kp: 63.041
|
||||
pid_ki: 2.898
|
||||
pid_kd: 342.787
|
||||
|
||||
[fan]
|
||||
pin: ar7
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyUSB0
|
||||
pin_map: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 200
|
||||
max_accel: 1500
|
||||
max_z_velocity: 20
|
||||
max_z_accel: 500
|
||||
|
||||
[display]
|
||||
lcd_type: hd44780
|
||||
rs_pin: ar20
|
||||
e_pin: ar17
|
||||
d4_pin: ar16
|
||||
d5_pin: ar21
|
||||
d6_pin: ar5
|
||||
d7_pin: ar6
|
||||
encoder_pins: ^ar42, ^ar40
|
||||
click_pin: ^!ar19
|
||||
@@ -0,0 +1,80 @@
|
||||
# This file contains common pin mappings for Minitronics v1.0
|
||||
# boards. To use this config, the firmware should be compiled for the
|
||||
# AVR atmega1280.
|
||||
|
||||
# The "make flash" command does not work on the Minitronics v1.0
|
||||
# because the board actually has an atmega1281 chip. Use the following
|
||||
# command to flash the board:
|
||||
# avrdude -carduino -patmega1281 -P/dev/ttyUSB0 -b57600 -D -Uout/klipper.elf.hex
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PF2
|
||||
dir_pin: PF1
|
||||
enable_pin: !PF3
|
||||
step_distance: .0125
|
||||
endstop_pin: ^!PE3
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PA1
|
||||
dir_pin: PA2
|
||||
enable_pin: !PA0
|
||||
step_distance: .0125
|
||||
endstop_pin: ^!PE4
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PA4
|
||||
dir_pin: !PA5
|
||||
enable_pin: !PA3
|
||||
step_distance: .0025
|
||||
endstop_pin: ^!PB4
|
||||
position_endstop: 0.5
|
||||
position_max: 200
|
||||
|
||||
[extruder]
|
||||
step_pin: PA7
|
||||
dir_pin: PA6
|
||||
enable_pin: !PG2
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PB5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PF7
|
||||
control: pid
|
||||
pid_Kp: 22.2
|
||||
pid_Ki: 1.08
|
||||
pid_Kd: 114
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PE5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PF6
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PB7
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyUSB0
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[static_digital_output yellow_led]
|
||||
pins: PF0
|
||||
@@ -0,0 +1,117 @@
|
||||
# This file contains common pin mappings for Printrboard G2 boards.
|
||||
# To use this config, the firmware should be compiled for the SAM3x8c.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PB15
|
||||
dir_pin: !PA16
|
||||
enable_pin: !PB16
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA11
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PA29
|
||||
dir_pin: !PB1
|
||||
enable_pin: !PB0
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PB26
|
||||
position_endstop: 150
|
||||
position_max: 150
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PA21
|
||||
dir_pin: PA26
|
||||
enable_pin: !PA25
|
||||
step_distance: .0025
|
||||
endstop_pin: ^!PA10
|
||||
position_endstop: 0
|
||||
position_min: -2
|
||||
position_max: 200
|
||||
|
||||
[output_pin motor_x_pwm]
|
||||
pin: PB17
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
scale: 2.25
|
||||
cycle_time: .000004
|
||||
value: 0.8
|
||||
|
||||
[output_pin motor_y_pwm]
|
||||
pin: PB19
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
scale: 2.25
|
||||
cycle_time: .000004
|
||||
value: 0.8
|
||||
|
||||
[output_pin motor_z_pwm]
|
||||
pin: PB18
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
scale: 2.25
|
||||
cycle_time: .000004
|
||||
value: 0.8
|
||||
|
||||
[output_pin motor_e_pwm]
|
||||
pin: PA2
|
||||
pwm: True
|
||||
hardware_pwm: True
|
||||
scale: 2.25
|
||||
cycle_time: .000004
|
||||
value: 0.5
|
||||
|
||||
[output_pin heater_enable]
|
||||
pin: PA7
|
||||
pwm: True
|
||||
cycle_time: 0.050
|
||||
value: 0.1
|
||||
|
||||
[thermistor G2]
|
||||
temperature1: 20
|
||||
resistance1: 140000
|
||||
temperature2: 195
|
||||
resistance2: 593
|
||||
temperature3: 255
|
||||
resistance3: 189
|
||||
|
||||
[extruder]
|
||||
step_pin: PB14
|
||||
dir_pin: PB23
|
||||
enable_pin: !PB22
|
||||
step_distance: .008
|
||||
nozzle_diameter: 0.300
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PA5
|
||||
sensor_pin: PA23
|
||||
sensor_type: G2
|
||||
inline_resistor: 4700
|
||||
control: pid
|
||||
pid_kp: 29.852
|
||||
pid_ki: 2.843
|
||||
pid_kd: 78
|
||||
min_temp: 0
|
||||
max_temp: 290
|
||||
|
||||
[fan]
|
||||
pin: PB27
|
||||
|
||||
[heater_fan nozzle_cooling_fan]
|
||||
pin: PA6
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 400
|
||||
max_accel: 2500
|
||||
max_z_velocity: 15
|
||||
max_z_accel: 300
|
||||
|
||||
[static_digital_output step_config]
|
||||
pins: PA19, PB20, PA27, PB10
|
||||
@@ -74,3 +74,11 @@ max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
# Use the following on a Printrboard RevF to control stepper current.
|
||||
#[mcp4728 stepper_current_dac]
|
||||
#scale: 2.327
|
||||
#channel_a: 1.2 # Extruder
|
||||
#channel_b: 1.2 # stepper_z
|
||||
#channel_c: 1.0 # stepper_y
|
||||
#channel_d: 1.0 # stepper_x
|
||||
@@ -100,6 +100,8 @@ max_z_accel: 100
|
||||
#d5_pin: ar45
|
||||
#d6_pin: ar46
|
||||
#d7_pin: ar47
|
||||
#encoder_pins: ^ar52, ^ar50
|
||||
#click_pin: ^!ar48
|
||||
|
||||
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
|
||||
#[display]
|
||||
|
||||
@@ -108,19 +108,15 @@ pins:
|
||||
[static_digital_output yellow_led]
|
||||
pins: !PB7
|
||||
|
||||
# "RepRapDiscount 2004 Smart Controller" type displays
|
||||
#[display]
|
||||
#lcd_type: hd44780
|
||||
#rs_pin: PG4
|
||||
#e_pin: PG3
|
||||
#d4_pin: PJ2
|
||||
#d5_pin: PJ3
|
||||
#d6_pin: PJ7
|
||||
#d7_pin: PJ4
|
||||
# Common EXP1 / EXP2 (display) pins
|
||||
[board_pins]
|
||||
aliases:
|
||||
# Common EXP1/EXP2 headers found on RAMBo v1.4
|
||||
EXP1_1=PE6, EXP1_3=PG3, EXP1_5=PJ2, EXP1_7=PJ7, EXP1_9=<GND>,
|
||||
EXP1_2=PE2, EXP1_4=PG4, EXP1_6=PJ3, EXP1_8=PJ4, EXP1_10=<5V>,
|
||||
# EXP2 header
|
||||
EXP2_1=PB3, EXP2_3=PJ5, EXP2_5=PJ6, EXP2_7=PD4, EXP2_9=<GND>,
|
||||
EXP2_2=PB1, EXP2_4=PB0, EXP2_6=PB2, EXP2_8=PE7, EXP2_10=PH2
|
||||
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi"
|
||||
|
||||
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
|
||||
#[display]
|
||||
#lcd_type: st7920
|
||||
#cs_pin: PG4
|
||||
#sclk_pin: PJ2
|
||||
#sid_pin: PG3
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -83,23 +83,16 @@ max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
# "RepRapDiscount 2004 Smart Controller" type displays
|
||||
#[display]
|
||||
#lcd_type: hd44780
|
||||
#rs_pin: ar16
|
||||
#e_pin: ar17
|
||||
#d4_pin: ar23
|
||||
#d5_pin: ar25
|
||||
#d6_pin: ar27
|
||||
#d7_pin: ar29
|
||||
#encoder_pins: ^ar31, ^ar33
|
||||
#click_pin: ^!ar35
|
||||
# Common EXP1 / EXP2 (display) pins
|
||||
[board_pins]
|
||||
aliases:
|
||||
# Common EXP1 header found on many "all-in-one" ramps clones
|
||||
EXP1_1=ar37, EXP1_3=ar17, EXP1_5=ar23, EXP1_7=ar27, EXP1_9=<GND>,
|
||||
EXP1_2=ar35, EXP1_4=ar16, EXP1_6=ar25, EXP1_8=ar29, EXP1_10=<5V>,
|
||||
# EXP2 header
|
||||
EXP2_1=ar50, EXP2_3=ar31, EXP2_5=ar33, EXP2_7=ar49, EXP2_9=<GND>,
|
||||
EXP2_2=ar52, EXP2_4=ar53, EXP2_6=ar51, EXP2_8=ar41, EXP2_10=<RST>
|
||||
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi"
|
||||
# Note, some boards wire: EXP2_8=<RST>, EXP2_10=ar41
|
||||
|
||||
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
|
||||
#[display]
|
||||
#lcd_type: st7920
|
||||
#cs_pin: ar16
|
||||
#sclk_pin: ar23
|
||||
#sid_pin: ar17
|
||||
#encoder_pins: ^ar31, ^ar33
|
||||
#click_pin: ^!ar35
|
||||
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||
@@ -1,10 +1,5 @@
|
||||
# This file contains common pin mappings for Re-Arm. To use this
|
||||
# config, the firmware should be compiled for the LPC176x.
|
||||
|
||||
# The "make flash" command does not work on the Re-Arm. Instead,
|
||||
# after running "make", copy the generated "out/klipper.bin" file to a
|
||||
# file named "firmware.bin" on an SD card and then restart the Re-Arm
|
||||
# with that SD card.
|
||||
# config, the firmware should be compiled for the LPC1768.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
|
||||
@@ -38,12 +38,6 @@ host_mcu: host
|
||||
# This parameter controls the CFG6_ENN line on all stepper
|
||||
# motors. True sets the enable lines to "open". The default is
|
||||
# False.
|
||||
#servo0_enable: False
|
||||
# This parameter controls whether end_stop_X_2 is used for endstops
|
||||
# (via P9_11) or for servo_0 (via P9_14). The default is False.
|
||||
#servo1_enable: False
|
||||
# This parameter controls whether end_stop_Y_2 is used for endstops
|
||||
# (via P9_28) or for servo_1 (via P9_16). The default is False.
|
||||
stepper_x_microstep_mode: spread16
|
||||
# This parameter controls the CFG1 and CFG2 pins of the given
|
||||
# stepper motor driver. Available options are: disable, 1, 2,
|
||||
@@ -132,3 +126,11 @@ max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: replicape:power_fan0
|
||||
|
||||
# The alternative servo pins channels on the endstops x2 and y2 can be used
|
||||
# via the special relicape pins servo0 (P9_14) and servo1 (P9_16).
|
||||
#[servo servo_x2]
|
||||
#pin: replicape:servo0
|
||||
# PWM output pin controlling the servo. This parameter must be
|
||||
# provided.
|
||||
#...
|
||||
@@ -54,17 +54,17 @@ max_temp: 250
|
||||
|
||||
#[extruder1]
|
||||
#step_pin: ar26
|
||||
#dir_pin: ar3
|
||||
#dir_pin: ar25
|
||||
#enable_pin: !ar27
|
||||
#heater_pin: ar9
|
||||
#heater_pin: ar3
|
||||
#sensor_pin: analog14
|
||||
#...
|
||||
|
||||
#[extruder2]
|
||||
#step_pin: ar29
|
||||
#dir_pin: ar6
|
||||
#dir_pin: ar28
|
||||
#enable_pin: !ar39
|
||||
#heater_pin: ar9
|
||||
#heater_pin: ar6
|
||||
#sensor_pin: analog13
|
||||
#...
|
||||
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
# This file contains common pin mappings for Smoothieboard. To use
|
||||
# this config, the firmware should be compiled for the LPC176x.
|
||||
|
||||
# The "make flash" command does not work on the Smoothieboard.
|
||||
# Instead, after running "make", copy the generated "out/klipper.bin"
|
||||
# file to a file named "firmware.bin" on an SD card and then restart
|
||||
# the Smoothieboard with that SD card.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
@@ -90,7 +85,7 @@ max_z_accel: 100
|
||||
pins: P1.18, P1.19, P1.20, P1.21, P4.28
|
||||
|
||||
[mcp4451 stepper_digipot1]
|
||||
i2c_address: 88
|
||||
i2c_address: 44
|
||||
# Scale the config so that wiper values can be specified in amps.
|
||||
scale: 2.25
|
||||
# wiper 0 is X (aka alpha), 1 is Y, 2 is Z, 3 is E0
|
||||
@@ -100,7 +95,7 @@ wiper_2: 1.0
|
||||
wiper_3: 1.0
|
||||
|
||||
[mcp4451 stepper_digipot2]
|
||||
i2c_address: 90
|
||||
i2c_address: 45
|
||||
scale: 2.25
|
||||
# wiper 0 is E1
|
||||
wiper_0: 1.0
|
||||
|
||||
@@ -1,222 +0,0 @@
|
||||
# This file is an example configuration for the Voron 2 CoreXY printer
|
||||
# running on two RAMPS boards. This file was created by "Maglin".
|
||||
# X/Y/E steppers/endstops/thermisters/heaters are on one MCU/RAMPS
|
||||
# board while Z steppers/mechanical switch/endstop_pin are on the
|
||||
# second MCU/RAMPS labeled z.
|
||||
|
||||
# This file is only an example - be sure to review and update it
|
||||
# according to the specifics of your printer. See the example.cfg and
|
||||
# example-extras.cfg files for a description of available parameters.
|
||||
|
||||
[mcu]
|
||||
# mcu for X/Y/E steppers main MCU
|
||||
serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0
|
||||
pin_map: arduino
|
||||
|
||||
[mcu z]
|
||||
# mcu for the Z steppers
|
||||
serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.2:1.0-port0
|
||||
pin_map: arduino
|
||||
|
||||
[stepper_x]
|
||||
# use preceding ! to invert logic and ^ to activate internal 5V pullup
|
||||
# this is for all pin definitions. Not all pins have interal pullups
|
||||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: 0.0125
|
||||
endstop_pin: ^ar2
|
||||
position_min: 0
|
||||
position_endstop: 248
|
||||
position_max: 248
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: 0.0125
|
||||
endstop_pin: ^ar15
|
||||
position_min: -5
|
||||
position_endstop: 245
|
||||
position_max: 245
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
# X stepper pins on MCU Z
|
||||
step_pin: z:ar54
|
||||
dir_pin: z:ar55
|
||||
enable_pin: !z:ar38
|
||||
step_distance: 0.00625
|
||||
# probe:z_virtual_endstop is a virtual pin definition only available if
|
||||
# a probe section is defined
|
||||
#endstop_pin: probe:z_virtual_endstop
|
||||
# mechanical switch on mcu Z X min endstop pin
|
||||
endstop_pin: ^z:ar3
|
||||
position_endstop: -0.376
|
||||
position_min: -5
|
||||
position_max: 245
|
||||
homing_speed: 12
|
||||
|
||||
[stepper_z1]
|
||||
# Y stepper pins on MCU Z
|
||||
step_pin: z:ar60
|
||||
dir_pin: !z:ar61
|
||||
enable_pin: !z:ar56
|
||||
step_distance: 0.00625
|
||||
|
||||
[stepper_z2]
|
||||
# Z stepper pins on MCU Z
|
||||
step_pin: z:ar46
|
||||
dir_pin: z:ar48
|
||||
enable_pin: !z:ar62
|
||||
step_distance: 0.00625
|
||||
|
||||
[stepper_z3]
|
||||
# E0 stepper pins on MCU Z
|
||||
step_pin: z:ar26
|
||||
dir_pin: !z:ar28
|
||||
enable_pin: !z:ar24
|
||||
step_distance: 0.00625
|
||||
|
||||
# extended G-Code command Z_TILT_ADJUST can be used to level gantry
|
||||
[z_tilt]
|
||||
# belt locations from origin 0,0
|
||||
z_positions:
|
||||
-56,-17
|
||||
-56,322
|
||||
311,322
|
||||
311,-17
|
||||
# probing locations for gantry leveling
|
||||
points:
|
||||
50,50
|
||||
50,195
|
||||
195,195
|
||||
195,50
|
||||
# travel speed between probe points
|
||||
speed: 150
|
||||
# Move Z to this position for safe probing
|
||||
horizontal_move_z: 15
|
||||
|
||||
# this is required for gantry leveling and replaces your G28 command
|
||||
# with the gcode used here. Used to home X/Y/Z with mechanical switches
|
||||
[homing_override]
|
||||
set_position_z: 0
|
||||
gcode:
|
||||
G90
|
||||
G0 Z15 F600
|
||||
G28 X0 Y0
|
||||
G0 X248 Y225 F3000
|
||||
G28 Z
|
||||
G0 Z15 F6000
|
||||
|
||||
# macro to level the gantry. use G32 in the terminal to call
|
||||
[gcode_macro g32]
|
||||
gcode:
|
||||
Z_TILT_ADJUST
|
||||
Z_TILT_ADJUST
|
||||
Z_TILT_ADJUST
|
||||
G28
|
||||
G0 X125 Y125 Z125 F3600
|
||||
|
||||
# Use print_start for you slicer starting script
|
||||
[gcode_macro print_start]
|
||||
gcode:
|
||||
G1 X0 Y15 Z0.3 F7000
|
||||
G92 E0
|
||||
G1 E14 F600
|
||||
G92 E0
|
||||
G1 X60.0 E9.0 F1000.0
|
||||
G1 X100.0 E12.5 F1000.0
|
||||
G1 E12 F1000.0
|
||||
G92 E-0.5
|
||||
|
||||
# Use print_end for you slicer ending script
|
||||
[gcode_macro print_end]
|
||||
gcode:
|
||||
M104 S0
|
||||
M140 S0
|
||||
M107
|
||||
G92 E0
|
||||
G91
|
||||
G1 Z10 E-10 F3000
|
||||
G90
|
||||
G0 X125 Y245 F1000
|
||||
|
||||
[extruder]
|
||||
# on E0 stepper pins of main MCU
|
||||
step_pin: ar26
|
||||
dir_pin: ar28
|
||||
enable_pin: !ar24
|
||||
step_distance: 0.003339
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
max_extrude_only_distance: 100.0
|
||||
heater_pin: ar10
|
||||
max_power: 1.0
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: analog13
|
||||
control: pid
|
||||
pid_Kp: 21.759
|
||||
pid_Ki: 1.107
|
||||
pid_Kd: 106.889
|
||||
min_temp: 0
|
||||
max_temp: 300
|
||||
|
||||
# thermally controlled hotend fan
|
||||
[heater_fan my_nozzle_fan]
|
||||
# Located on Z MCU on fan D9
|
||||
pin: z:ar9
|
||||
|
||||
[probe]
|
||||
# Z_Min pins on MCU Z (must be on same MCU as steppers)
|
||||
pin: ^!z:ar18
|
||||
z_offset: 1.15
|
||||
speed: 2.0
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: ar8
|
||||
# NTC 100K MGB18-104F39050L32 is for Kenovo thermistors
|
||||
sensor_type: NTC 100K MGB18-104F39050L32
|
||||
sensor_pin: analog14
|
||||
# pid gives you better control over bed heat
|
||||
control: pid
|
||||
pid_Kp: 63.832
|
||||
pid_Ki: 3.404
|
||||
pid_Kd: 299.213
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
# print cooling fan
|
||||
[fan]
|
||||
# On z MCU on extruder heater pin D10
|
||||
pin: z:ar10
|
||||
|
||||
# "RepRapDiscount 2004 Smart Controller" type displays
|
||||
#[display]
|
||||
#lcd_type: hd44780
|
||||
#rs_pin: ar16
|
||||
#e_pin: ar17
|
||||
#d4_pin: ar23
|
||||
#d5_pin: ar25
|
||||
#d6_pin: ar27
|
||||
#d7_pin: ar29
|
||||
|
||||
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
|
||||
[display]
|
||||
lcd_type: st7920
|
||||
cs_pin: ar16
|
||||
sclk_pin: ar23
|
||||
sid_pin: ar17
|
||||
|
||||
[printer]
|
||||
# settings below are the max and can't be commanded over in gcode
|
||||
kinematics: corexy
|
||||
max_velocity: 500
|
||||
max_accel: 3000
|
||||
max_z_velocity: 100
|
||||
max_z_accel: 50
|
||||
|
||||
[idle_timeout]
|
||||
# high motor off time so I don't have to relevel gantry often
|
||||
timeout: 6000
|
||||
@@ -0,0 +1,299 @@
|
||||
# VORON2 250mm config
|
||||
|
||||
# This is a base printer.cfg file for the VORON2 printer and matches the manual/build guide exactly
|
||||
# for controllers used (dual RAMPS) and pin layout for all connected components.
|
||||
# Created by "Boff" with help from the VORON community.
|
||||
|
||||
# For other build sizes, controllers, or non-standard pin connections, please see
|
||||
# https://github.com/mzbotreprap/VORON/tree/master/Firmware/Klipper/Voron_2.1/Klipper/Configurations
|
||||
# for other example Klipper configs created by the VORON community.
|
||||
|
||||
# This file is only an example - be sure to review and update it
|
||||
# according to the specifics of your printer. See the example.cfg and
|
||||
# example-extras.cfg files for a description of available Klipper parameters.
|
||||
|
||||
# AND PLEASE READ THROUGH THE KLIPPER DOCUMENTATION FIRST!
|
||||
# https://github.com/KevinOConnor/klipper/tree/master/docs
|
||||
|
||||
# *** THINGS TO CHANGE/CHECK: ***
|
||||
# Arduino paths [mcu] section
|
||||
# Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
|
||||
# FSR switch (z endstop) location [homing_override] section
|
||||
# FSR switch (z endstop) offset for Z0 [stepper_z] section
|
||||
# Probe points [quad_gantry_level] section
|
||||
# Min & Max gantry corner postions [quad_gantry_level] section
|
||||
# PID tune [extruder] and [heater_bed] sections
|
||||
# Fine tune E steps [extruder] section
|
||||
|
||||
[mcu]
|
||||
# Mcu for X/Y/E steppers
|
||||
serial: /dev/serial/by-id/**INSERT_YOUR_ARDUINO_DEFINITION_HERE**
|
||||
# Obtain definition by "ls -l /dev/serial/by-id/"
|
||||
pin_map: arduino
|
||||
restart_method: arduino
|
||||
|
||||
[mcu z]
|
||||
# Mcu for Z steppers
|
||||
serial: /dev/serial/by-id/**INSERT_YOUR_ARDUINO_DEFINITION_HERE**
|
||||
# Obtain definition by "ls -l /dev/serial/by-id/"
|
||||
pin_map: arduino
|
||||
restart_method: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: corexy
|
||||
max_velocity: 350
|
||||
max_accel: 3000
|
||||
max_z_velocity: 50
|
||||
max_z_accel: 350
|
||||
|
||||
[stepper_x]
|
||||
# B Stepper
|
||||
step_pin: ar54
|
||||
dir_pin: !ar55
|
||||
enable_pin: !ar38
|
||||
# X on mcu_xye
|
||||
step_distance: 0.0125
|
||||
# 80 steps per mm - 1.8 deg - 1/16 microstepping
|
||||
endstop_pin: ^ar2
|
||||
# X_MAX on mcu_xye
|
||||
position_min: 0
|
||||
position_endstop: 250
|
||||
position_max: 250
|
||||
homing_speed: 100
|
||||
homing_retract_dist: 5
|
||||
|
||||
[stepper_y]
|
||||
# A Stepper
|
||||
step_pin: ar60
|
||||
dir_pin: !ar61
|
||||
enable_pin: !ar56
|
||||
# Y on mcu_xye
|
||||
step_distance: 0.0125
|
||||
# 80 steps per mm - 1.8 deg - 1/16 microstepping
|
||||
endstop_pin: ^ar15
|
||||
# Y_MAX on mcu_xye
|
||||
position_min: 0
|
||||
position_endstop: 250
|
||||
position_max: 250
|
||||
homing_speed: 100
|
||||
homing_retract_dist: 5
|
||||
|
||||
[stepper_z]
|
||||
# Z0 Stepper - Front Left
|
||||
step_pin: z:ar54
|
||||
dir_pin: !z:ar55
|
||||
enable_pin: !z:ar38
|
||||
# X on mcu_z
|
||||
step_distance: 0.00250
|
||||
# 400 steps per mm - 1.8 deg - 1/16 microstepping
|
||||
endstop_pin: ^!z:ar18
|
||||
# Z_MIN on mcu_z
|
||||
position_endstop: -0.2
|
||||
# Offset (in mm) for nozzle to bed off z switch
|
||||
position_max: 250
|
||||
position_min: -2
|
||||
# Set to -2 to allow room for squaring gantry with quad_gantry_level
|
||||
homing_speed: 15.0
|
||||
second_homing_speed: 3.0
|
||||
homing_retract_dist: 3.0
|
||||
|
||||
[stepper_z1]
|
||||
# Z1 Stepper - Rear Left
|
||||
step_pin: z:ar60
|
||||
dir_pin: z:ar61
|
||||
enable_pin: !z:ar56
|
||||
# Y on mcu_z
|
||||
step_distance: 0.00250
|
||||
# 400 steps per mm - 1.8 deg - 1/16 microstepping
|
||||
|
||||
[stepper_z2]
|
||||
# Z2 Stepper - Rear Right
|
||||
step_pin: z:ar46
|
||||
dir_pin: !z:ar48
|
||||
enable_pin: !z:ar62
|
||||
# Z on mcu_z
|
||||
step_distance: 0.00250
|
||||
# 400 steps per mm - 1.8 deg - 1/16 microstepping
|
||||
|
||||
[stepper_z3]
|
||||
# Z3 Stepper - Front Right
|
||||
step_pin: z:ar26
|
||||
dir_pin: z:ar28
|
||||
enable_pin: !z:ar24
|
||||
# E0 on mcu_z
|
||||
step_distance: 0.00250
|
||||
# 400 steps per mm - 1.8 deg - 1/16 microstepping
|
||||
|
||||
[extruder]
|
||||
step_pin: ar26
|
||||
dir_pin: ar28
|
||||
enable_pin: !ar24
|
||||
# E0 on mcu_xye
|
||||
step_distance: 0.00180180
|
||||
# 555 steps per mm - 1.8 deg - 1/16 microstepping (Mobius2)
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
max_extrude_only_distance: 780.0
|
||||
# This is set high to allow the load/unload filament macros to run
|
||||
heater_pin: ar10
|
||||
# D10 on mcu_xye
|
||||
max_power: 1.0
|
||||
sensor_type: NTC 100K beta 3950
|
||||
sensor_pin: analog13
|
||||
# T0 on mcu_xye
|
||||
smooth_time: 3.0
|
||||
control: pid
|
||||
pid_Kp: 16.430
|
||||
pid_Ki: 0.755
|
||||
pid_Kd: 89.337
|
||||
min_extrude_temp: 170
|
||||
min_temp: 0
|
||||
max_temp: 270
|
||||
|
||||
[probe]
|
||||
# Inductive Probe
|
||||
pin: ^z:ar19
|
||||
# Z_MAX on mcu_z
|
||||
x_offset: 0.0
|
||||
y_offset: 25.0
|
||||
z_offset: 0.00
|
||||
speed: 2.0
|
||||
samples: 4
|
||||
# Number of times to probe a point
|
||||
sample_retract_dist: 6.0
|
||||
# How far to retract (in mm) from the probe point for multi-probe samples
|
||||
|
||||
[fan]
|
||||
# Print cooling fan
|
||||
pin: ar9
|
||||
# D9 on mcu_xye
|
||||
kick_start_time: 0.500
|
||||
|
||||
[heater_fan hotend_fan]
|
||||
# Hotend fan
|
||||
pin: z:ar9
|
||||
# D9 on mcu_z
|
||||
kick_start_time: 0.500
|
||||
heater: extruder
|
||||
heater_temp: 50.0
|
||||
|
||||
[heater_fan controller_fan]
|
||||
# Controller fan
|
||||
pin: z:ar10
|
||||
# D10 on mcu_z
|
||||
kick_start_time: 0.500
|
||||
heater: heater_bed
|
||||
heater_temp: 45.0
|
||||
|
||||
[heater_fan exhaust_fan]
|
||||
# Exhaust fan
|
||||
pin: z:ar8
|
||||
# D8 on mcu_z
|
||||
kick_start_time: 0.500
|
||||
heater: heater_bed
|
||||
heater_temp: 60.0
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: z:ar11
|
||||
# D11 (servo) on mcu_z
|
||||
sensor_type: NTC 100K MGB18-104F39050L32
|
||||
sensor_pin: z:analog15
|
||||
# T2 on mcu_z
|
||||
smooth_time: 3.0
|
||||
max_power: 0.75
|
||||
control: pid
|
||||
pid_Kp: 47.690
|
||||
pid_Ki: 1.556
|
||||
pid_Kd: 365.338
|
||||
min_temp: 0
|
||||
max_temp: 110
|
||||
|
||||
[homing_override]
|
||||
axes: z
|
||||
set_position_z: 0
|
||||
gcode:
|
||||
G90
|
||||
G0 Z5 F600
|
||||
G28 X Y
|
||||
G0 X179 Y249.5 F3600
|
||||
# XY Location of the FSR Switch
|
||||
G28 Z
|
||||
G0 Z10 F1800
|
||||
G0 X125 Y125 Z20 F3600
|
||||
|
||||
[quad_gantry_level]
|
||||
# Use QUAD_GANTRY_LEVEL to level a gantry.
|
||||
gantry_corners:
|
||||
-55,-7
|
||||
305, 320
|
||||
# Min & Max gantry corners - measure from nozzle at MIN (0,0) and MAX (250,250) to respective belt positions
|
||||
points:
|
||||
25,0
|
||||
25,200
|
||||
225,200
|
||||
225,0
|
||||
# Probe points
|
||||
speed: 200
|
||||
horizontal_move_z: 6
|
||||
|
||||
[display]
|
||||
# RepRapDiscount 128x64 Full Graphic Smart Controller
|
||||
lcd_type: st7920
|
||||
cs_pin: z:ar16
|
||||
sclk_pin: z:ar23
|
||||
sid_pin: z:ar17
|
||||
# LCD connector on mcu_z
|
||||
menu_timeout: 40
|
||||
encoder_pins: ^z:ar33, ^z:ar31
|
||||
click_pin: ^!z:ar35
|
||||
kill_pin: ^!z:ar41
|
||||
|
||||
|
||||
### Macros ###
|
||||
|
||||
[gcode_macro G32]
|
||||
gcode:
|
||||
G28
|
||||
QUAD_GANTRY_LEVEL
|
||||
QUAD_GANTRY_LEVEL
|
||||
G0 X125 Y125 Z20 F6000
|
||||
|
||||
[gcode_macro PRINT_START]
|
||||
# Use PRINT_START for the slicer starting script - PLEASE CUSTOMISE THE SCRIPT FOR YOUR SLICER OF CHOICE
|
||||
gcode:
|
||||
M117 Homing... ; display message
|
||||
G28 ; home all axes
|
||||
G1 Z20 F3000 ; move nozzle away from bed
|
||||
M117 Preheat (Print) ; display message
|
||||
M104 S0 ; turn off hotend while waiting for bed to get to temp
|
||||
|
||||
[gcode_macro PRINT_END]
|
||||
# Use PRINT_END for the slicer ending script - PLEASE CUSTOMISE THE SCRIPT FOR YOUR SLICER OF CHOICE
|
||||
gcode:
|
||||
M400 ; wait for buffer to clear
|
||||
G92 E0 ; zero the extruder
|
||||
G1 E-4.0 F3600 ; retract
|
||||
G91 ; relative positioning
|
||||
G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
|
||||
M104 S0 ; turn off hotend
|
||||
M140 S0 ; turn off bed
|
||||
M106 S0 ; turn off fan
|
||||
G1 Z20 F3000 ; move nozzle up 20mm
|
||||
G90 ; absolute positioning
|
||||
G0 X125 Y245 F3600 ; park nozzle at rear
|
||||
M117 Finished! ; display message
|
||||
|
||||
[gcode_macro UNLOAD_FILAMENT]
|
||||
gcode:
|
||||
M83
|
||||
G1 E10 F300
|
||||
G1 E-780 F1800
|
||||
M82
|
||||
|
||||
[gcode_macro LOAD_FILAMENT]
|
||||
gcode:
|
||||
M83
|
||||
G1 E750 F1800
|
||||
G1 E30 F300
|
||||
G1 E15 F150
|
||||
M82
|
||||
@@ -0,0 +1,151 @@
|
||||
# ZAV3D MAX config. To use this config, the firmware should be
|
||||
# compiled for the AVR atmega2560.
|
||||
|
||||
# This is a base printer.cfg file for the ZAV3D Max printer and
|
||||
# matches the manual/build guide exactly for controllers used (MKS
|
||||
# MINI-B V1.0) and pin layout for all connected components.
|
||||
# Created by "Nurmukhamed Artykaly"
|
||||
|
||||
# This file is only an example - be sure to review and update it
|
||||
# according to the specifics of your printer. See the example.cfg and
|
||||
# example-extras.cfg files for a description of available Klipper parameters.
|
||||
|
||||
# AND PLEASE READ THROUGH THE KLIPPER DOCUMENTATION FIRST!
|
||||
# https://www.klipper3d.org/Overview.html
|
||||
|
||||
# *** THINGS TO CHANGE/CHECK: ***
|
||||
# Arduino paths [mcu] section
|
||||
# Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
|
||||
# FSR switch (z endstop) location [homing_override] section
|
||||
# FSR switch (z endstop) offset for Z0 [stepper_z] section
|
||||
# Probe points [quad_gantry_level] section
|
||||
# Min & Max gantry corner postions [quad_gantry_level] section
|
||||
# PID tune [extruder] and [heater_bed] sections
|
||||
# Fine tune E steps [extruder] section
|
||||
|
||||
|
||||
[stepper_x]
|
||||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: .01
|
||||
endstop_pin: ^ar3
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
# The stepper_y section is used to describe the Y axis as well as the
|
||||
# stepper controlling the X-Y movement.
|
||||
[stepper_y]
|
||||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: .01
|
||||
endstop_pin: ^ar14
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 50
|
||||
|
||||
## Configuration with Z Endstop, without Probe tool like BLTOUCH or others.
|
||||
#[stepper_z]
|
||||
#step_pin: ar46
|
||||
#dir_pin: ar48
|
||||
#enable_pin: !ar62
|
||||
#step_distance: .0025
|
||||
## I used Z_MAX_ENDSTOP
|
||||
#endstop_pin: ^ar19
|
||||
## More about z-calibration is here https://vk.com/topic-107680682_34101598
|
||||
#position_endstop: 235
|
||||
#position_max: 235
|
||||
#homing_positive_dir: true
|
||||
|
||||
## Configuration for Bltouch probe tool.
|
||||
## Read more about BLTOUCH here https://www.klipper3d.org/BLTouch.html
|
||||
[stepper_z]
|
||||
step_pin: ar46
|
||||
dir_pin: ar48
|
||||
enable_pin: !ar62
|
||||
step_distance: .0025
|
||||
position_min: -3
|
||||
position_max: 230
|
||||
endstop_pin: probe:z_virtual_endstop
|
||||
|
||||
## Configuration with PID Calibration.
|
||||
## Read more here https://www.klipper3d.org/Config_checks.html
|
||||
[extruder]
|
||||
step_pin: ar26
|
||||
dir_pin: !ar28
|
||||
enable_pin: !ar24
|
||||
step_distance: .004242
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: ar10
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: analog13
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
control: pid
|
||||
pid_kp: 26.596
|
||||
pid_ki: 1.166
|
||||
pid_kd: 151.598
|
||||
|
||||
## Configuration with PID Calibration.
|
||||
## Read more here https://www.klipper3d.org/Config_checks.html
|
||||
[heater_bed]
|
||||
heater_pin: ar8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: analog14
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
control: pid
|
||||
pid_kp: 73.517
|
||||
pid_ki: 1.822
|
||||
pid_kd: 741.600
|
||||
|
||||
[fan]
|
||||
pin: ar9
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyACM0
|
||||
pin_map: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: corexy
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 25
|
||||
max_z_accel: 30
|
||||
|
||||
[bltouch]
|
||||
sensor_pin: ^ar18
|
||||
control_pin: ar7
|
||||
x_offset: 39
|
||||
y_offset: 11
|
||||
z_offset: 0.9
|
||||
pin_up_touch_mode_reports_triggered: false
|
||||
samples: 2
|
||||
sample_retract_dist: 3.0
|
||||
|
||||
[bed_mesh]
|
||||
speed: 100
|
||||
horizontal_move_z: 5
|
||||
min_point: 30,30
|
||||
max_point: 150,150
|
||||
probe_count: 3,3
|
||||
|
||||
[homing_override]
|
||||
set_position_z: 6
|
||||
axes: z
|
||||
gcode:
|
||||
G90
|
||||
G1 Z10 F6000
|
||||
G28 X Y
|
||||
G1 X100 Y100 F6000
|
||||
G28 Z0
|
||||
G1 X100 Y100 Z10a
|
||||
|
||||
[gcode_macro G29]
|
||||
gcode:
|
||||
G28
|
||||
G1 Z10 F600
|
||||
BED_MESH_CALIBRATE
|
||||
@@ -86,3 +86,13 @@ d4_pin: PD2
|
||||
d5_pin: PD3
|
||||
d6_pin: PC0
|
||||
d7_pin: PC1
|
||||
up_pin: PA1
|
||||
analog_range_up_pin: 9000, 13000
|
||||
down_pin: PA1
|
||||
analog_range_down_pin: 800, 1300
|
||||
click_pin: PA1
|
||||
analog_range_click_pin: 2000, 2500
|
||||
back_pin: PA1
|
||||
analog_range_back_pin: 4500, 5000
|
||||
#kill_pin: PA1
|
||||
#analog_range_kill_pin: 400, 600
|
||||
@@ -0,0 +1,127 @@
|
||||
# Klipper firmware config file for Anycubic 4Max. To use this config,
|
||||
# the firmware should be compiled for the AVR atmega2560.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: .0125
|
||||
endstop_pin: ^!ar3
|
||||
position_min: -2
|
||||
position_endstop: -2
|
||||
position_max: 205
|
||||
homing_speed: 60.0
|
||||
|
||||
[stepper_y]
|
||||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: .0125
|
||||
endstop_pin: ^!ar14
|
||||
position_endstop: 0
|
||||
position_max: 215
|
||||
homing_speed: 60.0
|
||||
|
||||
[stepper_z]
|
||||
step_pin: ar46
|
||||
dir_pin: ar48
|
||||
enable_pin: !ar62
|
||||
step_distance: .0025
|
||||
endstop_pin: ^!ar18
|
||||
position_endstop: 0.5
|
||||
position_max: 305
|
||||
homing_speed: 8.0
|
||||
|
||||
[extruder]
|
||||
step_pin: ar26
|
||||
dir_pin: ar28
|
||||
enable_pin: !ar24
|
||||
step_distance: 0.010354
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
max_extrude_only_distance: 2000
|
||||
heater_pin: ar10
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: analog13
|
||||
control: pid
|
||||
pid_kp: 27.725
|
||||
pid_ki: 1.224
|
||||
pid_kd: 156.991
|
||||
min_temp: 0
|
||||
max_temp: 300
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: ar8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: analog14
|
||||
control: pid
|
||||
pid_kp: 73.735
|
||||
pid_ki: 1.437
|
||||
pid_kd: 945.653
|
||||
min_temp: 0
|
||||
max_temp: 110
|
||||
|
||||
[fan]
|
||||
pin: ar9
|
||||
kick_start_time: 1.0
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
|
||||
pin_map: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 1200
|
||||
max_accel: 1500
|
||||
max_z_velocity: 40
|
||||
max_z_accel: 60
|
||||
|
||||
[heater_fan extruder_fan]
|
||||
pin: ar44
|
||||
|
||||
[heater_fan stepstick_fan]
|
||||
pin: ar7
|
||||
kick_start_time: 1.0
|
||||
|
||||
[display]
|
||||
lcd_type: st7920
|
||||
cs_pin: ar16
|
||||
sclk_pin: ar23
|
||||
sid_pin: ar17
|
||||
encoder_pins: ^ar31, ^ar33
|
||||
click_pin: ^!ar35
|
||||
kill_pin: ^!ar41
|
||||
|
||||
[filament_switch_sensor e0_sensor]
|
||||
switch_pin: ar19
|
||||
|
||||
[gcode_macro START_PRINT]
|
||||
gcode:
|
||||
M117 Starting...
|
||||
G90 ; absolute positioning
|
||||
M107 ; start with the fan off
|
||||
G28 ; Home
|
||||
G0 X5 Y5 F4500 ; Go to front
|
||||
G0 Z0.3 ; Drop to bed
|
||||
G92 E0 ; zero the extruded length
|
||||
G1 Y40 E15 F500 ; Extrude 15mm of filament in a 4cm line
|
||||
G92 E0 ; zero the extruded length
|
||||
G1 Y80 F4000 ; Quickly wipe away from the filament line
|
||||
G1 Z1 ; Raise and begin printing.
|
||||
M117 Printing...
|
||||
|
||||
[gcode_macro END_PRINT]
|
||||
gcode:
|
||||
M117 End printing.
|
||||
G91 ; relative positioning
|
||||
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle to release some of the pressure
|
||||
G1 Z+5 E-2 F1000 ;move Z up a bit and extract a bit more
|
||||
G90 ; absolute positioning
|
||||
G1 X0 F2000 ; move X to min endstops so the head is out of the way
|
||||
G1 Y200 F2000 ; Move Y to the back
|
||||
m104 S0 ; turn hotend heating off
|
||||
M140 S0 ; turn bed heating off
|
||||
M107 ; turn fan off
|
||||
M84 ; steppers off
|
||||
@@ -59,7 +59,7 @@ max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PD4
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: PA6
|
||||
control: pid
|
||||
pid_Kp: 426.68
|
||||
|
||||
@@ -59,7 +59,7 @@ max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PD4
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: PA6
|
||||
control: pid
|
||||
pid_Kp: 426.68
|
||||
|
||||
@@ -29,7 +29,7 @@ dir_pin: !ar48
|
||||
enable_pin: !ar62
|
||||
step_distance: .0025
|
||||
endstop_pin: ^ar18
|
||||
position_endstop: 0.5
|
||||
position_endstop: 0
|
||||
position_max: 400
|
||||
|
||||
[extruder]
|
||||
@@ -51,7 +51,7 @@ max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: ar8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_type: ATC Semitec 104GT-2
|
||||
sensor_pin: analog14
|
||||
control: pid
|
||||
pid_Kp: 690.34
|
||||
|
||||
@@ -29,7 +29,7 @@ dir_pin: !PL1
|
||||
enable_pin: !PK0
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PD3
|
||||
position_endstop: 0.5
|
||||
position_endstop: 0
|
||||
position_max: 250
|
||||
|
||||
[extruder]
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
# This file contains common pin mappings for the 2019 Creality
|
||||
# Ender 5. To use this config, the firmware should be compiled for the
|
||||
# AVR atmega1284p.
|
||||
|
||||
# Note, a number of Melzi boards are shipped with a bootloader that
|
||||
# requires the following command to flash the board:
|
||||
# avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
|
||||
# If the above command does not work and "make flash" does not work
|
||||
# then one may need to flash a bootloader to the board - see the
|
||||
# Klipper docs/Bootloaders.md file for more information.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PD7
|
||||
dir_pin: PC5
|
||||
enable_pin: !PD6
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC2
|
||||
position_endstop: 0
|
||||
position_max: 235
|
||||
homing_speed: 30
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PC6
|
||||
dir_pin: PC7
|
||||
enable_pin: !PD6
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC3
|
||||
position_endstop: 0
|
||||
position_max: 235
|
||||
homing_speed: 30
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PB3
|
||||
dir_pin: !PB2
|
||||
enable_pin: !PA5
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PC4
|
||||
position_endstop: 0.0
|
||||
position_max: 300
|
||||
|
||||
[extruder]
|
||||
max_extrude_only_distance: 100.0
|
||||
step_pin: PB1
|
||||
dir_pin: !PB0
|
||||
enable_pin: !PD6
|
||||
step_distance: 0.010526
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PD5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PA7
|
||||
control: pid
|
||||
# tuned for stock hardware with 200 degree Celsius target
|
||||
pid_Kp: 21.527
|
||||
pid_Ki: 1.063
|
||||
pid_Kd: 108.982
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PD4
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PA6
|
||||
control: pid
|
||||
# tuned for stock hardware with 50 degree Celsius target
|
||||
pid_Kp: 54.027
|
||||
pid_Ki: 0.770
|
||||
pid_Kd: 948.182
|
||||
min_temp: 0
|
||||
max_temp: 130
|
||||
|
||||
[fan]
|
||||
pin: PB4
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[display]
|
||||
lcd_type: st7920
|
||||
cs_pin: PA3
|
||||
sclk_pin: PA1
|
||||
sid_pin: PC1
|
||||
encoder_pins: ^PD2, ^PD3
|
||||
click_pin: ^!PC0
|
||||
@@ -0,0 +1,124 @@
|
||||
# Support for Tevo Flash. To use this config, the firmware should be
|
||||
# compiled for the AVR atmega2560.
|
||||
|
||||
# Note, this config has only been tested on a modified Tevo Flash
|
||||
# (using a Bondtech BMG extruder). If using a stock printer it may be
|
||||
# necessary to update the extruder step_distance parameter.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: ar54
|
||||
dir_pin: !ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: .012491
|
||||
endstop_pin: !ar3
|
||||
position_endstop: -13
|
||||
position_min: -13
|
||||
position_max: 235
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_y]
|
||||
step_pin: ar60
|
||||
dir_pin: ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: .012441
|
||||
endstop_pin: !ar14
|
||||
position_endstop: -3
|
||||
position_min: -3
|
||||
position_max: 235
|
||||
homing_speed: 50
|
||||
|
||||
[stepper_z]
|
||||
step_pin: ar46
|
||||
dir_pin: ar48
|
||||
enable_pin: !ar62
|
||||
step_distance: .002520
|
||||
position_max: 250
|
||||
endstop_pin: probe:z_virtual_endstop
|
||||
position_min: -2
|
||||
|
||||
[stepper_z1]
|
||||
step_pin: ar36
|
||||
dir_pin: ar34
|
||||
enable_pin: !ar30
|
||||
step_distance: .002520
|
||||
|
||||
[extruder]
|
||||
step_pin: ar26
|
||||
dir_pin: ar28
|
||||
enable_pin: !ar24
|
||||
step_distance: .002401
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
heater_pin: ar10
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: analog13
|
||||
control: pid
|
||||
pid_Kp: 18.547
|
||||
pid_Ki: 0.788
|
||||
pid_Kd: 109.193
|
||||
min_temp: 0
|
||||
max_temp: 250
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: ar8
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: analog14
|
||||
control: pid
|
||||
pid_Kp: 38.824
|
||||
pid_Ki: 0.539
|
||||
pid_Kd: 698.838
|
||||
min_temp: 0
|
||||
max_temp: 70
|
||||
|
||||
[heater_fan my_nozzle_fan]
|
||||
pin: ar7
|
||||
|
||||
[fan]
|
||||
pin: ar9
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyUSB0
|
||||
pin_map: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 1000
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[display]
|
||||
lcd_type: uc1701
|
||||
cs_pin: ar25
|
||||
a0_pin: ar27
|
||||
encoder_pins: ^!ar31, ^!ar33
|
||||
click_pin: ^!ar35
|
||||
kill_pin: ar64
|
||||
|
||||
[bltouch]
|
||||
sensor_pin: ar18
|
||||
control_pin: ar11
|
||||
x_offset: 0
|
||||
y_offset: 18
|
||||
z_offset: 1.64
|
||||
samples: 3
|
||||
sample_retract_dist: 5
|
||||
|
||||
# The homing_override section modifies the default G28 behavior
|
||||
[homing_override]
|
||||
set_position_z: 0
|
||||
axes: z
|
||||
gcode:
|
||||
G90
|
||||
G1 Z5 F600
|
||||
G28 X0 Y0
|
||||
G1 X118 Y118 F3600
|
||||
G28 Z0
|
||||
|
||||
# Mesh Bed Leveling.
|
||||
[bed_mesh]
|
||||
min_point: 5,0
|
||||
max_point: 230,210
|
||||
probe_count: 9,9
|
||||
@@ -88,7 +88,5 @@ lcd_type: st7920
|
||||
cs_pin: PA1
|
||||
sclk_pin: PC0
|
||||
sid_pin: PA3
|
||||
|
||||
# buttons are:
|
||||
# PD2, PD3: encoder
|
||||
# PA5: click
|
||||
encoder_pins: ^PD2, ^PD3
|
||||
click_pin: ^!PA5
|
||||
@@ -100,5 +100,8 @@ cycle_time: .000030
|
||||
hardware_pwm: True
|
||||
static_value: 1.0
|
||||
|
||||
# N.B. No support for the Display as yet. SSD1309 OLED graphical
|
||||
# display connected with i2C.
|
||||
[display]
|
||||
lcd_type: ssd1306
|
||||
reset_pin: PE3
|
||||
encoder_pins: ^PG1, ^PG0
|
||||
click_pin: ^!PD2
|
||||
@@ -0,0 +1,81 @@
|
||||
# This file contains pin mappings for the Wanhao Duplicator i3 Plus
|
||||
# Mark II. To use this config, the firmware should be compiled for the
|
||||
# AVR atmega2560.
|
||||
|
||||
# See the example.cfg file for a description of available parameters.
|
||||
|
||||
[stepper_x]
|
||||
step_pin: PF7
|
||||
dir_pin: !PK0
|
||||
enable_pin: !PF6
|
||||
step_distance: .0125
|
||||
endstop_pin: ^!PF0
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 30.0
|
||||
|
||||
[stepper_y]
|
||||
step_pin: PK2
|
||||
dir_pin: !PK3
|
||||
enable_pin: !PE4
|
||||
step_distance: .0125
|
||||
endstop_pin: ^!PA2
|
||||
position_endstop: 0
|
||||
position_max: 200
|
||||
homing_speed: 30.0
|
||||
|
||||
[stepper_z]
|
||||
step_pin: PK5
|
||||
dir_pin: PK7
|
||||
enable_pin: !PK4
|
||||
step_distance: .0025
|
||||
endstop_pin: probe:z_virtual_endstop
|
||||
position_max: 180
|
||||
position_min: -0.5
|
||||
|
||||
[extruder]
|
||||
step_pin: PF4
|
||||
dir_pin: PF5
|
||||
enable_pin: !PF3
|
||||
step_distance: 0.010417
|
||||
nozzle_diameter: 0.300
|
||||
filament_diameter: 1.750
|
||||
heater_pin: PG5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PF1
|
||||
control: pid
|
||||
pid_Kp: 20.982
|
||||
pid_Ki: 0.725
|
||||
pid_Kd: 151.861
|
||||
min_temp: 0
|
||||
max_temp: 260
|
||||
|
||||
[heater_bed]
|
||||
heater_pin: PE5
|
||||
sensor_type: EPCOS 100K B57560G104F
|
||||
sensor_pin: PK6
|
||||
control: watermark
|
||||
min_temp: 0
|
||||
max_temp: 110
|
||||
|
||||
[fan]
|
||||
pin: PE3
|
||||
|
||||
[probe]
|
||||
pin: !PH3
|
||||
z_offset: 1.0
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
|
||||
[printer]
|
||||
kinematics: cartesian
|
||||
max_velocity: 300
|
||||
max_accel: 800
|
||||
max_z_velocity: 5
|
||||
max_z_accel: 100
|
||||
|
||||
[bed_mesh]
|
||||
min_point: 20,20
|
||||
max_point: 190,130
|
||||
probe_count: 4,4
|
||||
@@ -0,0 +1,143 @@
|
||||
# This file provides example configuration for common "RepRap" style
|
||||
# LCD displays that use EXP1/EXP2 plugs.
|
||||
|
||||
# To configure a display from this file, make sure the main
|
||||
# printer.cfg file has a [board_pins] config section defining pin
|
||||
# aliases for the EXP1/EXP2 plugs, find the appropriate LCD type in
|
||||
# this file, and then copy-and-paste that section into printer.cfg.
|
||||
|
||||
# See the "example-extras.cfg" file for description of config parameters.
|
||||
|
||||
|
||||
######################################################################
|
||||
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
|
||||
######################################################################
|
||||
|
||||
[display]
|
||||
lcd_type: st7920
|
||||
cs_pin: EXP1_4
|
||||
sclk_pin: EXP1_5
|
||||
sid_pin: EXP1_3
|
||||
encoder_pins: ^EXP2_3, ^EXP2_5
|
||||
click_pin: ^!EXP1_2
|
||||
#kill_pin: ^!EXP2_8
|
||||
|
||||
[output_pin beeper]
|
||||
pin: EXP1_1
|
||||
|
||||
|
||||
######################################################################
|
||||
# "RepRapDiscount 2004 Smart Controller" type displays
|
||||
######################################################################
|
||||
|
||||
[display]
|
||||
lcd_type: hd44780
|
||||
rs_pin: EXP1_4
|
||||
e_pin: EXP1_3
|
||||
d4_pin: EXP1_5
|
||||
d5_pin: EXP1_6
|
||||
d6_pin: EXP1_7
|
||||
d7_pin: EXP1_8
|
||||
encoder_pins: ^EXP2_3, ^EXP2_5
|
||||
click_pin: ^!EXP1_2
|
||||
#kill_pin: ^!EXP2_8
|
||||
|
||||
[output_pin beeper]
|
||||
pin: EXP1_1
|
||||
|
||||
|
||||
######################################################################
|
||||
# 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
|
||||
######################################################################
|
||||
|
||||
[display]
|
||||
lcd_type: st7920
|
||||
cs_pin: EXP1_7
|
||||
sclk_pin: EXP1_6
|
||||
sid_pin: EXP1_8
|
||||
encoder_pins: ^EXP1_5, ^EXP1_3
|
||||
click_pin: ^!EXP1_2
|
||||
|
||||
[output_pin beeper]
|
||||
pin: EXP1_1
|
||||
|
||||
|
||||
######################################################################
|
||||
# MKS Mini 12864 LCD
|
||||
######################################################################
|
||||
|
||||
# Make sure that the EXP1 and EXP2 are rotated correctly on the
|
||||
# display board. The cutouts on the connectors should be towards the
|
||||
# center of the PCB. See:
|
||||
# https://reprap.org/wiki/MKS_MINI_12864#Physical_Interface
|
||||
# If they are wrong, the connector housing can be pried off carefully
|
||||
# with a small screwdriver and relocated the correct way.
|
||||
|
||||
[display]
|
||||
lcd_type: uc1701
|
||||
cs_pin: EXP1_6
|
||||
a0_pin: EXP1_7
|
||||
contrast: 40
|
||||
encoder_pins: ^EXP2_3, ^EXP2_5
|
||||
click_pin: ^!EXP1_2
|
||||
## Some micro-controller boards may require an spi bus to be specified:
|
||||
#spi_bus: spi
|
||||
## Alternatively, some micro-controller boards may work with software spi:
|
||||
#spi_software_miso_pin: EXP2_1
|
||||
#spi_software_mosi_pin: EXP2_6
|
||||
#spi_software_sclk_pin: EXP2_2
|
||||
|
||||
[output_pin beeper]
|
||||
pin: EXP1_1
|
||||
|
||||
|
||||
######################################################################
|
||||
# Fysetc Mini 12864Panel v2.1 (with neopixel backlight leds)
|
||||
######################################################################
|
||||
|
||||
[display]
|
||||
lcd_type: st7567
|
||||
cs_pin: EXP1_3
|
||||
a0_pin: EXP1_4
|
||||
rs_pin: EXP1_5
|
||||
contrast: 63
|
||||
encoder_pins: ^EXP2_3, ^EXP2_5
|
||||
click_pin: ^!EXP1_2
|
||||
## Some micro-controller boards may require an spi bus to be specified:
|
||||
#spi_bus: spi
|
||||
## Alternatively, some micro-controller boards may work with software spi:
|
||||
#spi_software_miso_pin: EXP2_1
|
||||
#spi_software_mosi_pin: EXP2_6
|
||||
#spi_software_sclk_pin: EXP2_2
|
||||
|
||||
[output_pin beeper]
|
||||
pin: EXP1_1
|
||||
|
||||
[neopixel fysetc_mini12864]
|
||||
pin: EXP1_6
|
||||
chain_count: 3
|
||||
color_order_GRB: False
|
||||
initial_RED: 0.4
|
||||
initial_GREEN: 0.4
|
||||
initial_BLUE: 0.4
|
||||
|
||||
|
||||
######################################################################
|
||||
# Plug pin locations
|
||||
######################################################################
|
||||
|
||||
# Some micro-controller boards and displays use inconsistent labeling
|
||||
# for the EXP1 and EXP2 headers. The following diagram shows the
|
||||
# correct location of pin 1 along with ground and power pins on the
|
||||
# EXP1 and EXP2 plugs:
|
||||
#
|
||||
# EXP1: EXP2:
|
||||
# +-----------------+ +-----------------+
|
||||
# | o o o o 5V | | o o o o o |
|
||||
# | 1 o o o GND | | 1 o o o GND |
|
||||
# +------ ------+ +------ ------+
|
||||
#
|
||||
# Some boards may have the cutout in the wrong location. If so, it may
|
||||
# be possible to carefully pry the plastic header off of the pins with
|
||||
# a small screwdriver, then correct the orientation and reapply the
|
||||
# plastic header.
|
||||
@@ -1,36 +1,117 @@
|
||||
# This file provides examples of Klipper G-Code macros. The snippets
|
||||
# in this file may be copied into the main printer.cfg file.
|
||||
# in this file may be copied into the main printer.cfg file and
|
||||
# customized.
|
||||
#
|
||||
# See the "example.cfg" file for description of common config parameters.
|
||||
|
||||
|
||||
# M300 : Play tone, Beeper support, as commonly found on usual LCD displays
|
||||
# i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount 12864 Full Graphic
|
||||
# This defines a custom I/O pin and a custom GCODE macro
|
||||
# Usage: M300 [P<ms>] [S<Hz>] P is the tone duration, S the tone frequency.
|
||||
# as it is based on a PWM duty cycle, the frequency won't be pitch perfect.
|
||||
#
|
||||
#[output_pin BEEPER_pin]
|
||||
#pin: ar37
|
||||
######################################################################
|
||||
# Start Print and End Print
|
||||
######################################################################
|
||||
|
||||
# Replace the slicer's custom start and end g-code scripts with
|
||||
# START_PRINT and END_PRINT.
|
||||
|
||||
[gcode_macro START_PRINT]
|
||||
default_parameter_BED_TEMP: 60
|
||||
default_parameter_EXTRUDER_TEMP: 190
|
||||
gcode:
|
||||
# Start bed heating
|
||||
M140 S{BED_TEMP}
|
||||
# Use absolute coordinates
|
||||
G90
|
||||
# Reset the G-Code Z offset (adjust Z offset if needed)
|
||||
SET_GCODE_OFFSET Z=0.0
|
||||
# Home the printer
|
||||
G28
|
||||
# Move the nozzle near the bed
|
||||
G1 Z5 F3000
|
||||
# Move the nozzle very close to the bed
|
||||
G1 Z0.15 F300
|
||||
# Wait for bed to reach temperature
|
||||
M190 S{BED_TEMP}
|
||||
# Set and wait for nozzle to reach temperature
|
||||
M109 S{EXTRUDER_TEMP}
|
||||
|
||||
[gcode_macro END_PRINT]
|
||||
gcode:
|
||||
# Turn off bed, extruder, and fan
|
||||
M140 S0
|
||||
M104 S0
|
||||
M106 S0
|
||||
# Move nozzle away from print while retracting
|
||||
G91
|
||||
G1 X-2 Y-2 E-3 F300
|
||||
# Raise nozzle by 10mm
|
||||
G1 Z10 F3000
|
||||
G90
|
||||
# Disable steppers
|
||||
M84
|
||||
|
||||
|
||||
######################################################################
|
||||
# Beeper
|
||||
######################################################################
|
||||
|
||||
# M300 : Play tone. Beeper support, as commonly found on usual LCD
|
||||
# displays (i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount
|
||||
# 12864 Full Graphic). This defines a custom I/O pin and a custom
|
||||
# GCODE macro. Usage:
|
||||
# M300 [P<ms>] [S<Hz>]
|
||||
# P is the tone duration, S the tone frequency.
|
||||
# The frequency won't be pitch perfect.
|
||||
|
||||
[output_pin BEEPER_pin]
|
||||
pin: ar37
|
||||
# Beeper pin. This parameter must be provided.
|
||||
# ar37 is the default RAMPS/MKS pin.
|
||||
#pwm: True
|
||||
pwm: True
|
||||
# A piezo beeper needs a PWM signal, a DC buzzer doesn't.
|
||||
#value: 0
|
||||
value: 0
|
||||
# Silent at power on, set to 1 if active low.
|
||||
#shutdown_value: 0
|
||||
shutdown_value: 0
|
||||
# Disable at emergency shutdown (no PWM would be available anyway).
|
||||
#cycle_time: 0.001
|
||||
cycle_time: 0.001
|
||||
# PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
|
||||
#scale: 1000
|
||||
scale: 1000
|
||||
# PWM parameter will be in the range of (0-1000 Hz).
|
||||
# Although not pitch perfect.
|
||||
#
|
||||
#[gcode_macro M300]
|
||||
#default_parameter_S=1000
|
||||
# Allows for a default 1kHz tone if S is omitted
|
||||
#default_parameter_P=100
|
||||
# Allows for a default 10ms duration is P is omitted
|
||||
#gcode: SET_PIN PIN=BEEPER_pin VALUE={S}
|
||||
# G4 P{P}
|
||||
# SET_PIN PIN=BEEPER_pin VALUE=0
|
||||
|
||||
[gcode_macro M300]
|
||||
default_parameter_S: 1000
|
||||
# Use a default 1kHz tone if S is omitted.
|
||||
default_parameter_P: 100
|
||||
# Use a 10ms duration is P is omitted.
|
||||
gcode:
|
||||
SET_PIN PIN=BEEPER_pin VALUE={S}
|
||||
G4 P{P}
|
||||
SET_PIN PIN=BEEPER_pin VALUE=0
|
||||
|
||||
|
||||
######################################################################
|
||||
# Filament Change
|
||||
######################################################################
|
||||
|
||||
# M600: Filament Change. This macro will pause the printer, move the
|
||||
# tool to the change position, and retract the filament 50mm. Adjust
|
||||
# the retraction settings for your own extruder. After filament has
|
||||
# been changed, the print can be resumed from its previous position
|
||||
# with the "RESUME" gcode.
|
||||
|
||||
[pause_resume]
|
||||
|
||||
[gcode_macro M600]
|
||||
default_parameter_X: 50
|
||||
default_parameter_Y: 0
|
||||
default_parameter_Z: 10
|
||||
gcode:
|
||||
SAVE_GCODE_STATE NAME=M600_state
|
||||
PAUSE
|
||||
G91
|
||||
G1 E-.8 F2700
|
||||
G1 Z{Z}
|
||||
G90
|
||||
G1 X{X} Y{Y} F3000
|
||||
G91
|
||||
G1 E-50 F1000
|
||||
RESTORE_GCODE_STATE NAME=M600_state
|
||||
@@ -22,11 +22,11 @@ position_min: -2 # The Z carriage may need to travel below the Z=0
|
||||
|
||||
# The homing_override section modifies the default G28 behavior
|
||||
[homing_override]
|
||||
set_position_z: 5
|
||||
set_position_z: 0
|
||||
axes: z
|
||||
gcode:
|
||||
; G90 ; Uncomment these 2 lines to blindly lift the Z 2mm at start
|
||||
; G1 Z7 F600
|
||||
G90
|
||||
; G1 Z2 F600 ; Uncomment to blindly lift the Z 2mm at start
|
||||
G28 X0 Y0
|
||||
G1 X100 Y100 F3600
|
||||
G28 Z0
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
Connecting BL-Touch
|
||||
===================
|
||||
|
||||
A **warning** before you start: Avoid touching the BL-Touch pin with
|
||||
your bare fingers, since it is quite sensitive to finger grease. And
|
||||
if you do touch it, be very gentle, in order to not bend or push
|
||||
anything.
|
||||
|
||||
Hook up the BL-Touch "servo" connector to a `control_pin` according to
|
||||
the BL-Touch documentation or your MCU documentation. Using the
|
||||
original wiring, the yellow wire from the triple is the `control_pin`
|
||||
and the white wire from the pair is the `sensor_pin`. You need to
|
||||
configure these pins according to your wiring. For example:
|
||||
|
||||
```
|
||||
[bltouch]
|
||||
sensor_pin: P1.24
|
||||
control_pin: P1.26
|
||||
```
|
||||
|
||||
If the BL-Touch will be used to home the Z axis then set `endstop_pin:
|
||||
probe:z_virtual_endstop` in the `[stepper_z]` config section and add a
|
||||
`[homing_override]` config section to raise the z-axis, home the
|
||||
x/y-axis, move to the center of the bed, and home the z-axis. For
|
||||
example:
|
||||
|
||||
```
|
||||
[homing_override]
|
||||
gcode:
|
||||
G90 ; Use absolute position mode
|
||||
G1 Z10 ; Move up 10mm
|
||||
G28 X Y
|
||||
G1 X166 Y120 F6000 ; Change the X and Y coordinates to the center of your print bed
|
||||
G28 Z
|
||||
set_position_z: 0.0
|
||||
```
|
||||
|
||||
It's important that the initial Z upwards movement in the
|
||||
homing_override is high enough that the probe doesn't hit anything
|
||||
even if the probe pin happens to be in its lowest state.
|
||||
|
||||
Initial tests
|
||||
=============
|
||||
|
||||
Before moving on, verify that the BL-Touch is mounted at the correct
|
||||
height, the pin should be roughly 2 mm above the nozzle when retracted
|
||||
|
||||
When you turn on the printer, the BL-Touch probe should perform a
|
||||
self-test and move the pin up and down a couple of times. Once the
|
||||
self-test is completed, the pin should be retracted and the red LED on
|
||||
the probe should be lit. If there are any errors, for example the
|
||||
probe is flashing red or the pin is down instead of up, please turn
|
||||
off the printer and check the wiring and configuration.
|
||||
|
||||
If the above is looking good, it's time to test that the probe
|
||||
responds to commands from the firmware. First run `BLTOUCH_DEBUG
|
||||
COMMAND=pin_down` in your printer terminal. Verify that the pin moves
|
||||
down, and that the red LED on the probe turns off. If not, check your
|
||||
wiring and configuration again. Next issue a `BLTOUCH_DEBUG
|
||||
COMMAND=pin_up`, verify that the pin moves up, and that the red light
|
||||
turns on again. If it's flashing then there's some problem.
|
||||
|
||||
Now, it's time to test homing with a twist. Instead of letting the
|
||||
probe pin touch the print bed, let it touch the nail on your
|
||||
finger. So issue a `G28`, wait until it starts to move down, and stop
|
||||
the movement by very gently touching the pin with your nail. You
|
||||
probably have to do it twice, since the default configuration makes it
|
||||
probe twice. But be prepared to turn off the printer, to avoid damage,
|
||||
if it doesn't stop when you touch the pin.
|
||||
|
||||
If that was successful, do another `G28` but this time let it touch
|
||||
the bed as it should.
|
||||
|
||||
Calibrating the BL-Touch offsets
|
||||
================================
|
||||
|
||||
Follow the directions in the [Probe Calibrate](Probe_Calibrate.md)
|
||||
guide to set the x_offset, y_offset, and z_offset config parameters.
|
||||
|
||||
It's a good idea to verify that the Z offset is close to 1mm. If not,
|
||||
then you probably want to move the probe up or down to fix this. You
|
||||
want it to trigger well before the nozzle hits the bed, so that
|
||||
possible stuck filament or a warped bed doesn't affect any probing
|
||||
action. But at the same time, you want the retracted position to be as
|
||||
far above the nozzle as possible to avoid it touching printed parts.
|
||||
If an adjustment is made to the probe position, then rerun the probe
|
||||
calibration steps.
|
||||
|
||||
BL-Touch gone bad
|
||||
=================
|
||||
|
||||
Once the BL-Touch is in inconsistent state, it starts blinking
|
||||
red. You can force it to leave that state by issuing:
|
||||
|
||||
BLTOUCH_DEBUG COMMAND=reset
|
||||
|
||||
This may happen if its calibration is interrupted by the probe being
|
||||
blocked from being extracted.
|
||||
|
||||
However, the BL-Touch may also not be able to calibrate itself
|
||||
anymore. This happens if the screw on its top is in the wrong position
|
||||
or the magnetic core inside the probe pin has moved. If it has moved
|
||||
up so that it sticks to the screw, it may not be able to lower its pin
|
||||
anymore. With this behavior you need to open the screw and use a
|
||||
ball-point pen to push it gently back into place. Re-Insert the pin
|
||||
into the BL-Touch so that it falls into the extracted
|
||||
position. Carefully readjust the headless screw into place. You need
|
||||
to find the right position so it is able to lower and raise the pin
|
||||
and the red light turns on and of. Use the `reset`, `pin_up` and
|
||||
`pin_down` commands to achieve this.
|
||||
|
||||
Troubleshooting
|
||||
===============
|
||||
|
||||
* If you are sure the wiring of the BL-Touch is correct and every
|
||||
attempt to probe with the BL-Touch reports "BLTouch failed to verify
|
||||
sensor state" then it may be necessary to add
|
||||
`pin_up_touch_mode_reports_triggered: False` to the bltouch config
|
||||
section. The BL-Touch v3 and many clones require this setting.
|
||||
|
||||
* A BL-Touch v3 may not work correctly when its signal wire is
|
||||
connected to the Z end-stop pin on some printer boards. The symptoms
|
||||
of this problem are: the BL-Touch probe deploys, the printer
|
||||
descends, the probe contacts a surface, the BL-Touch raises the
|
||||
probe, the BL-Touch does not successfully notify the
|
||||
micro-controller, and the printer continues to descend. The Z
|
||||
end-stop pin on some printer boards have a capacitor to filter the
|
||||
signal which the BL-Touch v3 may not support. The simplest solution
|
||||
is to connect the BL-Touch v3 sensor wire to an available pin on the
|
||||
printer board that is not associated with an end-stop (and thus is
|
||||
unlikely to have a capacitor). An alternative solution is to
|
||||
physically alter the printer board to disable the given end-stop
|
||||
capacitor or to add a hardware "pull up resistor" to the BL-Touch v3
|
||||
sensor wire.
|
||||
@@ -0,0 +1,215 @@
|
||||
Bed leveling (sometimes also referred to as "bed tramming") is
|
||||
critical to getting high quality prints. If a bed is not properly
|
||||
"leveled" it can lead to poor bed adhesion, "warping", and subtle
|
||||
problems throughout the print. This document serves as a guide to
|
||||
performing bed leveling in Klipper.
|
||||
|
||||
It's important to understand the goal of bed leveling. If the printer
|
||||
is commanded to a position `X0 Y0 Z10` during a print, then the goal
|
||||
is for the printer's nozzle to be exactly 10mm from the printer's
|
||||
bed. Further, should the printer then be commanded to a position of
|
||||
`X50 Z10` the goal is for the nozzle to maintain an exact distance of
|
||||
10mm from the bed during that entire horizontal move.
|
||||
|
||||
In order to get good quality prints the printer should be calibrated
|
||||
so that Z distances are accurate to within about 25 microns (.025mm).
|
||||
This is a small distance - significantly smaller than the width of a
|
||||
typical human hair. This scale can not be measured "by eye". Subtle
|
||||
effects (such as heat expansion) impact measurements at this scale.
|
||||
The secret to getting high accuracy is to use a repeatable process and
|
||||
to use a leveling method that leverages the high accuracy of the
|
||||
printer's own motion system.
|
||||
|
||||
# Choose the appropriate calibration mechanism
|
||||
|
||||
Different types of printers use different methods for performing bed
|
||||
leveling. All of them ultimately depend on the "paper test" (described
|
||||
below). However, the actual process for a particular type of printer
|
||||
is described in other documents.
|
||||
|
||||
Prior to running any of these calibration tools, be sure to run the
|
||||
checks described in the [config check document](Config_checks.md). It
|
||||
is necessary to verify basic printer motion before performing bed
|
||||
leveling.
|
||||
|
||||
For printers with an "automatic Z probe" be sure to calibrate the
|
||||
probe following the directions in the
|
||||
[Probe Calibrate](Probe_Calibrate.md) document. For delta printers,
|
||||
see the [Delta Calibrate](Delta_Calibrate.md) document. For printers
|
||||
with bed screws and traditional Z endstops, see the
|
||||
[Manual Level](Manual_Level.md) document.
|
||||
|
||||
During calibration it may be necessary to set the printer's Z
|
||||
`position_min` to a negative number (eg, `position_min = -2`). The
|
||||
printer enforces boundary checks even during calibration
|
||||
routines. Setting a negative number allows the printer to move below
|
||||
the nominal position of the bed, which may help when trying to
|
||||
determine the actual bed position.
|
||||
|
||||
# The "paper test"
|
||||
|
||||
The primary bed calibration mechanism is the "paper test". It involves
|
||||
placing a regular piece of "copy machine paper" between the printer's
|
||||
bed and nozzle, and then commanding the nozzle to different Z heights
|
||||
until one feels a small amount of friction when pushing the paper back
|
||||
and forth.
|
||||
|
||||
It is important to understand the "paper test" even if one has an
|
||||
"automatic Z probe". The probe itself often needs to be calibrated to
|
||||
get good results. That probe calibration is done using this "paper
|
||||
test".
|
||||
|
||||
In order to perform the paper test, cut a small rectangular piece of
|
||||
paper using a pair of scissors (eg, 5x3 cm). The paper generally has a
|
||||
width of around 100 microns (0.100mm). (The exact width of the paper
|
||||
isn't crucial.)
|
||||
|
||||
The first step of the paper test is to inspect the printer's nozzle
|
||||
and bed. Make sure there is no plastic (or other debris) on the nozzle
|
||||
or bed.
|
||||
|
||||
**Inspect the nozzle and bed to ensure no plastic is present!**
|
||||
|
||||
If one always prints on a particular tape or printing surface then one
|
||||
may perform the paper test with that tape/surface in place. However,
|
||||
note that tape itself has a width and different tapes (or any other
|
||||
printing surface) will impact Z measurements. Be sure to rerun the
|
||||
paper test to measure each type of surface that is in use.
|
||||
|
||||
If there is plastic on the nozzle then heat up the extruder and use a
|
||||
metal tweezers to remove that plastic. Wait for the extruder to fully
|
||||
cool to room temperature before continuing with the paper test. While
|
||||
the nozzle is cooling, use the metal tweezers to remove any plastic
|
||||
that may ooze out.
|
||||
|
||||
**Always perform the paper test when both nozzle and bed are at room
|
||||
temperature!**
|
||||
|
||||
When the nozzle is heated, its position (relative to the bed) changes
|
||||
due to thermal expansion. This thermal expansion is typically around a
|
||||
100 microns, which is about the same width as a typical piece of
|
||||
printer paper. The exact amount of thermal expansion isn't crucial,
|
||||
just as the exact width of the paper isn't crucial. Start with the
|
||||
assumption that the two are equal (see below for a method of
|
||||
determining the difference between the two widths).
|
||||
|
||||
It may seem odd to calibrate the distance at room temperature when the
|
||||
goal is to have a consistent distance when heated. However, if one
|
||||
calibrates when the nozzle is heated, it tends to impart small amounts
|
||||
of molten plastic on to the paper, which changes the amount of
|
||||
friction felt. That makes it harder to get a good calibration.
|
||||
Calibrating while the bed/nozzle is hot also greatly increases the
|
||||
risk of burning oneself. The amount of thermal expansion is stable, so
|
||||
it is easily accounted for later in the calibration process.
|
||||
|
||||
**Use an automated tool to determine precise Z heights!**
|
||||
|
||||
Klipper has several helper scripts available (eg, MANUAL_PROBE,
|
||||
Z_ENDSTOP_CALIBRATE, PROBE_CALIBRATE, DELTA_CALIBRATE). See the
|
||||
documents
|
||||
[described above](#choose-the-appropriate-calibration-mechanism) to
|
||||
choose one of them.
|
||||
|
||||
Run the appropriate command in the OctoPrint terminal window. The
|
||||
script will prompt for user interaction in the OctoPrint terminal
|
||||
output. It will look something like:
|
||||
```
|
||||
Recv: // Starting manual Z probe. Use TESTZ to adjust position.
|
||||
Recv: // Finish with ACCEPT or ABORT command.
|
||||
Recv: // Z position: ?????? --> 5.000 <-- ??????
|
||||
```
|
||||
|
||||
The current height of the nozzle (as the printer currently understands
|
||||
it) is shown between the "--> <--". The number to the right is the
|
||||
height of the last probe attempt just greater than the current height,
|
||||
and to the left is the last probe attempt less than the current height
|
||||
(or ?????? if no attempt has been made).
|
||||
|
||||
Place the paper between the nozzle and bed. It can be useful to fold a
|
||||
corner of the paper so that it is easier to grab. (Try not to push
|
||||
down on the bed when moving the paper back and forth.)
|
||||
|
||||

|
||||
|
||||
Use the TESTZ command to request the nozzle to move closer to the
|
||||
paper. For example:
|
||||
```
|
||||
TESTZ Z=-.1
|
||||
```
|
||||
|
||||
The TESTZ command will move the nozzle a relative distance from the
|
||||
nozzle's current position. (So, `Z=-.1` requests the nozzle to move
|
||||
closer to the bed by .1mm.) After the nozzle stops moving, push the
|
||||
paper back and forth to check if the nozzle is in contact with the
|
||||
paper and to feel the amount of friction. Continue issuing TESTZ
|
||||
commands until one feels a small amount of friction when testing with
|
||||
the paper.
|
||||
|
||||
If too much friction is found then one can use a positive Z value to
|
||||
move the nozzle up. It is also possible to use `TESTZ Z=+` or `TESTZ
|
||||
Z=-` to "bisect" the last position - that is to move to a position
|
||||
half way between two positions. For example, if one received the
|
||||
following prompt from a TESTZ command:
|
||||
```
|
||||
Recv: // Z position: 0.130 --> 0.230 <-- 0.280
|
||||
```
|
||||
Then a `TESTZ Z=-` would move the nozzle to a Z position of 0.180
|
||||
(half way between 0.130 and 0.230). One can use this feature to help
|
||||
rapidly narrow down to a consistent friction. It is also possible to
|
||||
use `Z=++` and `Z=--` to return directly to a past measurement - for
|
||||
example, after the above prompt a `TESTZ Z=--` command would move the
|
||||
nozzle to a Z position of 0.130.
|
||||
|
||||
After finding a small amount of friction run the ACCEPT command:
|
||||
```
|
||||
ACCEPT
|
||||
```
|
||||
This will accept the given Z height and proceed with the given
|
||||
calibration tool.
|
||||
|
||||
The exact amount of friction felt isn't crucial, just as the amount of
|
||||
thermal expansion and exact width of the paper isn't crucial. Just try
|
||||
to obtain the same amount of friction each time one runs the test.
|
||||
|
||||
If something goes wrong during the test, one can use the `ABORT`
|
||||
command to exit the calibration tool.
|
||||
|
||||
# Determining Thermal Expansion
|
||||
|
||||
After successfully performing bed leveling, one may go on to calculate
|
||||
a more precise value for the combined impact of "thermal expansion",
|
||||
"width of the paper", and "amount of friction felt during the paper
|
||||
test".
|
||||
|
||||
This type of calculation is generally not needed as most users find
|
||||
the simple "paper test" provides good results.
|
||||
|
||||
The easiest way to make this calculation is to print a test object
|
||||
that has straight walls on all sides. The large hollow square found in
|
||||
[docs/prints/square.stl](prints/square.stl) can be used for this.
|
||||
When slicing the object, make sure the slicer uses the same layer
|
||||
height and extrusion widths for the first level that it does for all
|
||||
subsequent layers. Use a coarse layer height (the layer height should
|
||||
be around 75% of the nozzle diameter) and do not use a brim or raft.
|
||||
|
||||
Print the test object, wait for it to cool, and remove it from the
|
||||
bed. Inspect the lowest layer of the object. (It may also be useful to
|
||||
run a finger or nail along the bottom edge.) If one finds the bottom
|
||||
layer bulges out slightly along all sides of the object then it
|
||||
indicates the nozzle was slightly closer to the bed then it should
|
||||
be. One can issue a `SET_GCODE_OFFSET Z=+.010` command to increase the
|
||||
height. In subsequent prints one can inspect for this behavior and
|
||||
make further adjustment as needed. Adjustments of this type are
|
||||
typically in 10s of microns (.010mm).
|
||||
|
||||
If the bottom layer consistently appears narrower than subsequent
|
||||
layers then one can use the SET_GCODE_OFFSET command to make a
|
||||
negative Z adjustment. If one is unsure, then one can decrease the Z
|
||||
adjustment until the bottom layer of prints exhibit a small bulge, and
|
||||
then back-off until it disappears.
|
||||
|
||||
The easiest way to apply the desired Z adjustment is to create a
|
||||
START_PRINT g-code macro, arrange for the slicer to call that macro
|
||||
during the start of each print, and add a SET_GCODE_OFFSET command to
|
||||
that macro. See the [slicers](Slicers.md) document for further
|
||||
details.
|
||||
@@ -0,0 +1,404 @@
|
||||
This document describes Klipper benchmarks.
|
||||
|
||||
Micro-controller Benchmarks
|
||||
===========================
|
||||
|
||||
This section describes the mechanism used to generate the Klipper
|
||||
micro-controller step rate benchmarks.
|
||||
|
||||
The primary goal of the benchmarks is to provide a consistent
|
||||
mechanism for measuring the impact of coding changes within the
|
||||
software. A secondary goal is to provide high-level metrics for
|
||||
comparing the performance between chips and between software
|
||||
platforms.
|
||||
|
||||
The step rate benchmark is designed to find the maximum stepping rate
|
||||
that the hardware and software can reach. This benchmark stepping rate
|
||||
is not achievable in day-to-day use as Klipper needs to perform other
|
||||
tasks (eg, mcu/host communication, temperature reading, endstop
|
||||
checking) in any real-world usage.
|
||||
|
||||
In general, the pins for the benchmark tests are chosen to flash LEDs
|
||||
or other innocuous pins. **Always verify that it is safe to drive the
|
||||
configured pins prior to running a benchmark.** It is not recommended
|
||||
to drive an actual stepper during a benchmark.
|
||||
|
||||
## Step rate benchmark test ##
|
||||
|
||||
The test is performed using the console.py tool (described in
|
||||
[Debugging.md](Debugging.md)). The micro-controller is configured for
|
||||
the particular hardware platform (see below) and then the following is
|
||||
cut-and-paste into the console.py terminal window:
|
||||
```
|
||||
SET start_clock {clock+freq}
|
||||
SET ticks 1000
|
||||
|
||||
reset_step_clock oid=0 clock={start_clock}
|
||||
set_next_step_dir oid=0 dir=0
|
||||
queue_step oid=0 interval={ticks} count=60000 add=0
|
||||
set_next_step_dir oid=0 dir=1
|
||||
queue_step oid=0 interval=3000 count=1 add=0
|
||||
|
||||
reset_step_clock oid=1 clock={start_clock}
|
||||
set_next_step_dir oid=1 dir=0
|
||||
queue_step oid=1 interval={ticks} count=60000 add=0
|
||||
set_next_step_dir oid=1 dir=1
|
||||
queue_step oid=1 interval=3000 count=1 add=0
|
||||
|
||||
reset_step_clock oid=2 clock={start_clock}
|
||||
set_next_step_dir oid=2 dir=0
|
||||
queue_step oid=2 interval={ticks} count=60000 add=0
|
||||
set_next_step_dir oid=2 dir=1
|
||||
queue_step oid=2 interval=3000 count=1 add=0
|
||||
```
|
||||
|
||||
The above tests three steppers simultaneously stepping. If running the
|
||||
above results in a "Rescheduled timer in the past" or "Stepper too far
|
||||
in past" error then it indicates the `ticks` parameter is too low (it
|
||||
results in a stepping rate that is too fast). The goal is to find the
|
||||
lowest setting of the ticks parameter that reliably results in a
|
||||
successful completion of the test. It should be possible to bisect the
|
||||
ticks parameter until a stable value is found.
|
||||
|
||||
On a failure, one can copy-and-paste the following to clear the error
|
||||
in preparation for the next test:
|
||||
```
|
||||
clear_shutdown
|
||||
```
|
||||
|
||||
To obtain the single stepper and dual stepper benchmarks, the same
|
||||
configuration sequence is used, but only the first block (for the
|
||||
single stepper case) or first two blocks (for the dual stepper case)
|
||||
of the above test is cut-and-paste into the console.py window.
|
||||
|
||||
To produce the benchmarks found in the Features.md document, the total
|
||||
number of steps per second is calculated by multiplying the number of
|
||||
active steppers with the nominal mcu frequency and dividing by the
|
||||
final ticks parameter. The results are rounded to the nearest K. For
|
||||
example, with three active steppers:
|
||||
```
|
||||
ECHO Test result is: {"%.0fK" % (3. * freq / ticks / 1000.)}
|
||||
```
|
||||
|
||||
Benchmarks may be run with the micro-controller code compiled using a
|
||||
"step pulse duration" of zero (the tables below report this as "no
|
||||
delay"). This configuration is believed to be valid in real-world
|
||||
usage when one is solely using Trinamic stepper drivers. The results
|
||||
of these benchmarks are not reported in the Features.md document.
|
||||
|
||||
### AVR step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on AVR chips:
|
||||
```
|
||||
PINS arduino
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=ar29 dir_pin=ar28 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=ar27 dir_pin=ar26 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=ar23 dir_pin=ar22 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `01d2183f` with gcc version `avr-gcc
|
||||
(GCC) 5.4.0`. Both the 16Mhz and 20Mhz tests were run using simulavr
|
||||
configured for an atmega644p (previous tests have confirmed simulavr
|
||||
results match tests on both a 16Mhz at90usb and a 16Mhz atmega2560).
|
||||
|
||||
| avr | ticks |
|
||||
| ---------------- | ----- |
|
||||
| 1 stepper | 104 |
|
||||
| 2 stepper | 296 |
|
||||
| 3 stepper | 472 |
|
||||
|
||||
### Arduino Due step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the Due:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PB27 dir_pin=PA21 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PB26 dir_pin=PC30 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA21 dir_pin=PC30 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `8d4a5c16` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0`.
|
||||
|
||||
| sam3x8e | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 388 |
|
||||
| 2 stepper | 405 |
|
||||
| 3 stepper | 576 |
|
||||
| 1 stepper (no delay) | 77 |
|
||||
| 3 stepper (no delay) | 299 |
|
||||
|
||||
### Duet Maestro step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the Duet Maestro:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PC26 dir_pin=PC18 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PC26 dir_pin=PA8 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PC26 dir_pin=PB4 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `8d4a5c16` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0`.
|
||||
|
||||
| sam4s8c | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 527 |
|
||||
| 2 stepper | 535 |
|
||||
| 3 stepper | 638 |
|
||||
| 1 stepper (no delay) | 70 |
|
||||
| 3 stepper (no delay) | 254 |
|
||||
|
||||
### Duet Wifi step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the Duet Wifi:
|
||||
```
|
||||
allocate_oids count=4
|
||||
config_stepper oid=0 step_pin=PD6 dir_pin=PD11 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PD7 dir_pin=PD12 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PD8 dir_pin=PD13 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=3 step_pin=PD5 dir_pin=PA1 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
|
||||
```
|
||||
|
||||
The test was last run on commit `59a60d68` with gcc version
|
||||
`arm-none-eabi-gcc 7.3.1 20180622 (release)
|
||||
[ARM/embedded-7-branch revision 261907]`.
|
||||
|
||||
| sam4e8e | ticks |
|
||||
| ---------------- | ----- |
|
||||
| 1 stepper | 519 |
|
||||
| 2 stepper | 520 |
|
||||
| 3 stepper | 525 |
|
||||
| 4 stepper | 703 |
|
||||
|
||||
### Beaglebone PRU step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the PRU:
|
||||
```
|
||||
PINS beaglebone
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=P8_13 dir_pin=P8_12 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=P8_15 dir_pin=P8_14 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=P8_19 dir_pin=P8_18 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `b161a69e` with gcc version `pru-gcc
|
||||
(GCC) 8.0.0 20170530 (experimental)`.
|
||||
|
||||
| pru | ticks |
|
||||
| ---------------- | ----- |
|
||||
| 1 stepper | 861 |
|
||||
| 2 stepper | 853 |
|
||||
| 3 stepper | 883 |
|
||||
|
||||
### STM32F042 step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the STM32F042:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PA0 dir_pin=PA1 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PA2 dir_pin=PA3 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA6 dir_pin=PA7 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `c105adc8` with gcc version
|
||||
`arm-none-eabi-gcc (GNU Tools 7-2018-q3-update) 7.3.1`.
|
||||
|
||||
| stm32f042 | ticks |
|
||||
| ---------------- | ----- |
|
||||
| 1 stepper | 308 |
|
||||
| 2 stepper | 638 |
|
||||
| 3 stepper | 1021 |
|
||||
|
||||
### STM32F103 step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the STM32F103:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PC13 dir_pin=PB5 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PB3 dir_pin=PB6 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA4 dir_pin=PB7 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `8d4a5c16` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0`.
|
||||
|
||||
| stm32f103 | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 347 |
|
||||
| 2 stepper | 372 |
|
||||
| 3 stepper | 600 |
|
||||
| 1 stepper (no delay) | 71 |
|
||||
| 3 stepper (no delay) | 288 |
|
||||
|
||||
### STM32F4 step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the STM32F4:
|
||||
```
|
||||
allocate_oids count=4
|
||||
config_stepper oid=0 step_pin=PA5 dir_pin=PB5 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PB2 dir_pin=PB6 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PB3 dir_pin=PB7 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=3 step_pin=PB3 dir_pin=PB8 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `8d4a5c16` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0`. The STM32F407 results
|
||||
were obtained by running an STM32F407 binary on an STM32F446 (and thus
|
||||
using a 168Mhz clock).
|
||||
|
||||
| stm32f446 | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 757 |
|
||||
| 2 stepper | 761 |
|
||||
| 3 stepper | 757 |
|
||||
| 4 stepper | 767 |
|
||||
| 1 stepper (no delay) | 51 |
|
||||
| 3 stepper (no delay) | 226 |
|
||||
|
||||
| stm32f407 | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 709 |
|
||||
| 2 stepper | 714 |
|
||||
| 3 stepper | 709 |
|
||||
| 4 stepper | 729 |
|
||||
| 1 stepper (no delay) | 52 |
|
||||
| 3 stepper (no delay) | 226 |
|
||||
|
||||
### LPC176x step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the LPC176x:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=P1.20 dir_pin=P1.18 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=P1.21 dir_pin=P1.18 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=P1.23 dir_pin=P1.18 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `8d4a5c16` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0`. The 120Mhz LPC1769
|
||||
results were obtained by overclocking an LPC1768 to 120Mhz.
|
||||
|
||||
| lpc1768 | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 448 |
|
||||
| 2 stepper | 450 |
|
||||
| 3 stepper | 523 |
|
||||
| 1 stepper (no delay) | 56 |
|
||||
| 3 stepper (no delay) | 240 |
|
||||
|
||||
| lpc1769 | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 525 |
|
||||
| 2 stepper | 526 |
|
||||
| 3 stepper | 545 |
|
||||
| 1 stepper (no delay) | 56 |
|
||||
| 3 stepper (no delay) | 240 |
|
||||
|
||||
### SAMD21 step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the SAMD21:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PA27 dir_pin=PA20 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PB3 dir_pin=PA21 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA17 dir_pin=PA21 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `8d4a5c16` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0` on a SAMD21G18
|
||||
micro-controller.
|
||||
|
||||
| samd21 | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 277 |
|
||||
| 2 stepper | 410 |
|
||||
| 3 stepper | 664 |
|
||||
| 1 stepper (no delay) | 83 |
|
||||
| 3 stepper (no delay) | 321 |
|
||||
|
||||
### SAMD51 step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the SAMD51:
|
||||
```
|
||||
allocate_oids count=4
|
||||
config_stepper oid=0 step_pin=PA22 dir_pin=PA20 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PA22 dir_pin=PA21 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA22 dir_pin=PA19 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=3 step_pin=PA22 dir_pin=PA18 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `8d4a5c16` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0` on a SAMD51G19A
|
||||
micro-controller.
|
||||
|
||||
| samd51 | ticks |
|
||||
| -------------------- | ----- |
|
||||
| 1 stepper | 516 |
|
||||
| 2 stepper | 520 |
|
||||
| 3 stepper | 519 |
|
||||
| 4 stepper | 655 |
|
||||
| 1 stepper (no delay) | 41 |
|
||||
| 3 stepper (no delay) | 197 |
|
||||
|
||||
## Command dispatch benchmark ##
|
||||
|
||||
The command dispatch benchmark tests how many "dummy" commands the
|
||||
micro-controller can process. It is primarily a test of the hardware
|
||||
communication mechanism. The test is run using the console.py tool
|
||||
(described in [Debugging.md](Debugging.md)). The following is
|
||||
cut-and-paste into the console.py terminal window:
|
||||
```
|
||||
DELAY {clock + 2*freq} get_uptime
|
||||
FLOOD 100000 0.0 end_group
|
||||
get_uptime
|
||||
```
|
||||
|
||||
When the test completes, determine the difference between the clocks
|
||||
reported in the two "uptime" response messages. The total number of
|
||||
commands per second is then `100000 * mcu_frequency / clock_diff`.
|
||||
|
||||
Note that this test may saturate the USB/CPU capacity of a Raspberry
|
||||
Pi. The benchmarks below are with console.py running on a desktop
|
||||
class machine with the device connected via a high-speed hub.
|
||||
|
||||
| MCU | Rate | Build | Build compiler |
|
||||
| ------------------- | ---- | -------- | ------------------- |
|
||||
| pru (shared memory) | 5K | b161a69e | pru-gcc (GCC) 8.0.0 20170530 (experimental) |
|
||||
| stm32f042 (CAN) | 18K | c105adc8 | arm-none-eabi-gcc (GNU Tools 7-2018-q3-update) 7.3.1 |
|
||||
| atmega2560 (serial) | 23K | b161a69e | avr-gcc (GCC) 4.8.1 |
|
||||
| sam3x8e (serial) | 23K | b161a69e | arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0 |
|
||||
| at90usb1286 (USB) | 75K | 01d2183f | avr-gcc (GCC) 5.4.0 |
|
||||
| samd21 (USB) | 223K | 01d2183f | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
| stm32f103 (USB) | 355K | 01d2183f | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
| sam3x8e (USB) | 418K | 01d2183f | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
| lpc1768 (USB) | 534K | 01d2183f | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
| lpc1769 (USB) | 628K | 01d2183f | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
| sam4s8c (USB) | 650K | 8d4a5c16 | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
| samd51 (USB) | 864K | 01d2183f | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
| stm32f446 (USB) | 870K | 01d2183f | arm-none-eabi-gcc (Fedora 7.4.0-1.fc30) 7.4.0 |
|
||||
|
||||
Host Benchmarks
|
||||
===============
|
||||
|
||||
It is possible to run timing tests on the host software using the
|
||||
"batch mode" processing mechanism (described in
|
||||
[Debugging.md](Debugging.md)). This is typically done by choosing a
|
||||
large and complex G-Code file and timing how long it takes for the
|
||||
host software to process it. For example:
|
||||
```
|
||||
time ~/klippy-env/bin/python ./klippy/klippy.py config/example.cfg -i something_complex.gcode -o /dev/null -d out/klipper.dict
|
||||
```
|
||||
@@ -29,7 +29,7 @@ AVR micro-controllers
|
||||
In general, the Arduino project is a good reference for bootloaders
|
||||
and flashing procedures on the 8-bit Atmel Atmega micro-controllers.
|
||||
In particular, the "boards.txt" file:
|
||||
https://github.com/arduino/Arduino/blob/1.8.5/hardware/arduino/avr/boards.txt
|
||||
[https://github.com/arduino/Arduino/blob/1.8.5/hardware/arduino/avr/boards.txt](https://github.com/arduino/Arduino/blob/1.8.5/hardware/arduino/avr/boards.txt)
|
||||
is a useful reference.
|
||||
|
||||
To flash a bootloader itself, the AVR chips require an external
|
||||
@@ -115,8 +115,9 @@ device.
|
||||
|
||||
The Teensy++ device from pjrc.com comes with a proprietary bootloader.
|
||||
It requires a custom flashing tool from
|
||||
https://github.com/PaulStoffregen/teensy_loader_cli . One can flash an
|
||||
application with it using something like:
|
||||
[https://github.com/PaulStoffregen/teensy_loader_cli](https://github.com/PaulStoffregen/teensy_loader_cli).
|
||||
One can flash an application with it using something like:
|
||||
|
||||
```
|
||||
teensy_loader_cli --mcu=at90usb1286 out/klipper.elf.hex -v
|
||||
```
|
||||
@@ -153,8 +154,10 @@ Due, this sequence can be accomplished by setting a baud rate of 1200
|
||||
on the "programming usb port" (the USB port closest to the power
|
||||
supply).
|
||||
|
||||
The code at https://github.com/shumatech/BOSSA can be used to program
|
||||
the SAM3. It is recommended to use version 1.9 or later.
|
||||
The code at
|
||||
[https://github.com/shumatech/BOSSA](https://github.com/shumatech/BOSSA)
|
||||
can be used to program the SAM3. It is recommended to use version 1.9
|
||||
or later.
|
||||
|
||||
To flash an application use something like:
|
||||
```
|
||||
@@ -172,8 +175,10 @@ serial port or from USB.
|
||||
To enable the ROM, the "erase" pin is held high during a reset, which
|
||||
erases the flash contents, and causes the ROM to run.
|
||||
|
||||
The code at https://github.com/shumatech/BOSSA can be used to program
|
||||
the SAM4. It is necessary to use version `1.8.0` or higher.
|
||||
The code at
|
||||
[https://github.com/shumatech/BOSSA](https://github.com/shumatech/BOSSA)
|
||||
can be used to program the SAM4. It is necessary to use version
|
||||
`1.8.0` or higher.
|
||||
|
||||
To flash an application use something like:
|
||||
```
|
||||
@@ -185,31 +190,71 @@ SAMD21 micro-controllers (Arduino Zero)
|
||||
|
||||
The SAMD21 bootloader is flashed via the ARM Serial Wire Debug (SWD)
|
||||
interface. This is commonly done with a dedicated SWD hardware dongle.
|
||||
Alternatively, it appears one can use a Raspberry Pi with OpenOCD as a
|
||||
programmer (see:
|
||||
https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi
|
||||
).
|
||||
Alternatively, one can use a
|
||||
[Raspberry Pi with OpenOCD](#running-openocd-on-the-raspberry-pi).
|
||||
|
||||
Unfortunately, there are two common bootloaders deployed on the
|
||||
SAMD21. One comes standard with the "Arduino Zero" and the other comes
|
||||
standard with the "Arduino M0".
|
||||
To flash a bootloader with OpenOCD use a chip config similar to:
|
||||
```
|
||||
set CHIPNAME at91samd21g18
|
||||
source [find target/at91samdXX.cfg]
|
||||
```
|
||||
Obtain a bootloader - for example:
|
||||
```
|
||||
wget 'https://github.com/arduino/ArduinoCore-samd/raw/1.8.3/bootloaders/zero/samd21_sam_ba.bin'
|
||||
```
|
||||
Flash with OpenOCD commands similar to:
|
||||
```
|
||||
at91samd bootloader 0
|
||||
program samd21_sam_ba.bin verify
|
||||
```
|
||||
|
||||
The Arduino Zero uses an 8KiB bootloader (the application must be
|
||||
compiled with a start address of 8KiB). One can enter the bootloader
|
||||
The most common bootloader on the SAMD21 is the one found on the
|
||||
"Arduino Zero". It uses an 8KiB bootloader (the application must be
|
||||
compiled with a start address of 8KiB). One can enter this bootloader
|
||||
by double clicking the reset button. To flash an application use
|
||||
something like:
|
||||
```
|
||||
bossac -U -p "$(FLASH_DEVICE)" --offset=0x2000 -w out/klipper.bin -v -b -R
|
||||
bossac -U -p /dev/ttyACM0 --offset=0x2000 -w out/klipper.bin -v -b -R
|
||||
```
|
||||
|
||||
The Arduino M0 uses a 16KiB bootloader (the application must be
|
||||
compiled with a start address of 16KiB). To flash an application,
|
||||
reset the micro-controller and run the flash command within the first
|
||||
few seconds of boot - something like:
|
||||
In contrast, the "Arduino M0" uses a 16KiB bootloader (the application
|
||||
must be compiled with a start address of 16KiB). To flash an
|
||||
application on this bootloader, reset the micro-controller and run the
|
||||
flash command within the first few seconds of boot - something like:
|
||||
```
|
||||
avrdude -c stk500v2 -p atmega2560 -P /dev/ttyACM0 -u -Uflash:w:out/klipper.elf.hex:i
|
||||
```
|
||||
|
||||
SAMD51 micro-controllers (Adafruit Metro-M4 and similar)
|
||||
========================================================
|
||||
|
||||
Like the SAMD21, the SAMD51 bootloader is flashed via the ARM Serial
|
||||
Wire Debug (SWD) interface. To flash a bootloader with
|
||||
[OpenOCD on a Raspberry Pi](#running-openocd-on-the-raspberry-pi) use
|
||||
a chip config similar to:
|
||||
```
|
||||
set CHIPNAME at91samd51g19
|
||||
source [find target/atsame5x.cfg]
|
||||
```
|
||||
Obtain a bootloader - several bootloaders are available from
|
||||
[https://github.com/adafruit/uf2-samdx1/releases/latest](https://github.com/adafruit/uf2-samdx1/releases/latest). For example:
|
||||
```
|
||||
wget 'https://github.com/adafruit/uf2-samdx1/releases/download/v3.7.0/bootloader-itsybitsy_m4-v3.7.0.bin'
|
||||
```
|
||||
Flash with OpenOCD commands similar to:
|
||||
```
|
||||
at91samd bootloader 0
|
||||
program bootloader-itsybitsy_m4-v3.7.0.bin verify
|
||||
at91samd bootloader 16384
|
||||
```
|
||||
|
||||
The SAMD51 uses a 16KiB bootloader (the application must be compiled
|
||||
with a start address of 16KiB). To flash an application use something
|
||||
like:
|
||||
```
|
||||
bossac -U -p /dev/ttyACM0 --offset=0x4000 -w out/klipper.bin -v -b -R
|
||||
```
|
||||
|
||||
STM32F103 micro-controllers (Blue Pill devices)
|
||||
===============================================
|
||||
|
||||
@@ -225,8 +270,8 @@ stm32flash -w out/klipper.bin -v -g 0 /dev/ttyAMA0
|
||||
Note that if one is using a Raspberry Pi for the 3.3V serial, the
|
||||
stm32flash protocol uses a serial parity mode which the Raspberry Pi's
|
||||
"miniuart" does not support. See
|
||||
https://www.raspberrypi.org/documentation/configuration/uart.md for
|
||||
details on enabling the full uart on the Raspberry Pi GPIO pins.
|
||||
[https://www.raspberrypi.org/documentation/configuration/uart.md](https://www.raspberrypi.org/documentation/configuration/uart.md)
|
||||
for details on enabling the full uart on the Raspberry Pi GPIO pins.
|
||||
|
||||
After flashing, set both "boot 0" and "boot 1" back to low so that
|
||||
future resets boot from flash.
|
||||
@@ -234,7 +279,7 @@ future resets boot from flash.
|
||||
## STM32F103 with stm32duino bootloader ##
|
||||
|
||||
The "stm32duino" project has a USB capable bootloader - see:
|
||||
https://github.com/rogerclarkmelbourne/STM32duino-bootloader
|
||||
[https://github.com/rogerclarkmelbourne/STM32duino-bootloader](https://github.com/rogerclarkmelbourne/STM32duino-bootloader)
|
||||
|
||||
This bootloader can be flashed via 3.3V serial with something like:
|
||||
```
|
||||
@@ -260,13 +305,136 @@ LPC176x micro-controllers (Smoothieboards)
|
||||
==========================================
|
||||
|
||||
This document does not describe the method to flash a bootloader
|
||||
itself - see: http://smoothieware.org/flashing-the-bootloader for
|
||||
further information on that topic.
|
||||
itself - see:
|
||||
[http://smoothieware.org/flashing-the-bootloader](http://smoothieware.org/flashing-the-bootloader)
|
||||
for further information on that topic.
|
||||
|
||||
It is common for Smoothieboards to come with a bootloader from:
|
||||
https://github.com/triffid/LPC17xx-DFU-Bootloader . When using this
|
||||
bootloader the application must be compiled with a start address of
|
||||
16KiB. The easiest way to flash an application with this bootloader is
|
||||
to copy the application file (eg, `out/klipper.bin`) to a file named
|
||||
`firmware.bin` on an SD card, and then to reboot the micro-controller
|
||||
with that SD card.
|
||||
[https://github.com/triffid/LPC17xx-DFU-Bootloader](https://github.com/triffid/LPC17xx-DFU-Bootloader).
|
||||
When using this bootloader the application must be compiled with a
|
||||
start address of 16KiB. The easiest way to flash an application with
|
||||
this bootloader is to copy the application file (eg,
|
||||
`out/klipper.bin`) to a file named `firmware.bin` on an SD card, and
|
||||
then to reboot the micro-controller with that SD card.
|
||||
|
||||
Running OpenOCD on the Raspberry PI
|
||||
===================================
|
||||
|
||||
OpenOCD is a software package that can perform low-level chip flashing
|
||||
and debugging. It can use the GPIO pins on a Raspberry Pi to
|
||||
communicate with a variety of ARM chips.
|
||||
|
||||
This section describes how one can install and launch OpenOCD. It is
|
||||
derived from the instructions at:
|
||||
[https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi](https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi)
|
||||
|
||||
Begin by downloading and compiling the software (each step may take
|
||||
several minutes and the "make" step may take 30+ minutes):
|
||||
|
||||
```
|
||||
sudo apt-get update
|
||||
sudo apt-get install autoconf libtool telnet
|
||||
mkdir ~/openocd
|
||||
cd ~/openocd/
|
||||
git clone http://openocd.zylin.com/openocd
|
||||
cd openocd
|
||||
./bootstrap
|
||||
./configure --enable-sysfsgpio --enable-bcm2835gpio --prefix=/home/pi/openocd/install
|
||||
make
|
||||
make install
|
||||
```
|
||||
|
||||
## Configure OpenOCD
|
||||
|
||||
Create an OpenOCD config file:
|
||||
|
||||
```
|
||||
nano ~/openocd/openocd.cfg
|
||||
```
|
||||
|
||||
Use a config similar to the following:
|
||||
|
||||
```
|
||||
# Uses RPi pins: GPIO25 for SWDCLK, GPIO24 for SWDIO, GPIO18 for nRST
|
||||
source [find interface/raspberrypi2-native.cfg]
|
||||
bcm2835gpio_swd_nums 25 24
|
||||
bcm2835gpio_srst_num 18
|
||||
transport select swd
|
||||
|
||||
# Set the chip (at91samd51j19 in this example)
|
||||
set CHIPNAME at91samd51j19
|
||||
source [find target/atsame5x.cfg]
|
||||
|
||||
# Set the adapter speed
|
||||
adapter_khz 40
|
||||
adapter_nsrst_delay 100
|
||||
adapter_nsrst_assert_width 100
|
||||
|
||||
init
|
||||
targets
|
||||
reset halt
|
||||
```
|
||||
|
||||
## Wire the Raspberry Pi to the target chip
|
||||
|
||||
Poweroff both the the Raspberry Pi and the target chip before wiring!
|
||||
Verify the target chip uses 3.3V prior to connecting to a Raspberry
|
||||
Pi!
|
||||
|
||||
Connect GND, SWDCLK, SWDIO, and RST on the target chip to GND, GPIO25,
|
||||
GPIO24, and GPIO18 respectively on the Raspberry Pi.
|
||||
|
||||
Then power up the Raspberry Pi and provide power to the target chip.
|
||||
|
||||
## Run OpenOCD
|
||||
|
||||
Run OpenOCD:
|
||||
|
||||
```
|
||||
cd ~/openocd/
|
||||
sudo ~/openocd/install/bin/openocd -f ~/openocd/openocd.cfg
|
||||
```
|
||||
|
||||
The above should cause OpenOCD to emit some text messages and then
|
||||
wait (it should not immediately return to the Unix shell prompt). If
|
||||
OpenOCD exits on its own or if it continues to emit text messages then
|
||||
double check the wiring.
|
||||
|
||||
Once OpenOCD is running and is stable, one can send it commands via
|
||||
telnet. Open another ssh session and run the following:
|
||||
|
||||
```
|
||||
telnet 127.0.0.1 4444
|
||||
```
|
||||
|
||||
(One can exit telnet by pressing ctrl+] and then running the "quit"
|
||||
command.)
|
||||
|
||||
## OpenOCD and gdb
|
||||
|
||||
It is possible to use OpenOCD with gdb to debug Klipper. The following
|
||||
commands assume one is running gdb on a desktop class machine.
|
||||
|
||||
Add the following to the OpenOCD config file:
|
||||
|
||||
```
|
||||
bindto 0.0.0.0
|
||||
gdb_port 44444
|
||||
```
|
||||
|
||||
Restart OpenOCD on the Raspberry Pi and then run the following Unix
|
||||
command on the desktop machine:
|
||||
|
||||
```
|
||||
cd /path/to/klipper/
|
||||
gdb out/klipper.elf
|
||||
```
|
||||
|
||||
Within gdb run:
|
||||
|
||||
```
|
||||
target remote octopi:44444
|
||||
```
|
||||
|
||||
(Replace "octopi" with the host name of the Raspberry Pi.) Once gdb is
|
||||
running it is possible to set breakpoints and to inspect registers.
|
||||
@@ -0,0 +1 @@
|
||||
www.klipper3d.org
|
||||
@@ -5,17 +5,16 @@ Directory Layout
|
||||
================
|
||||
|
||||
The **src/** directory contains the C source for the micro-controller
|
||||
code. The **src/avr/** directory contains specific code for Atmel
|
||||
ATmega micro-controllers. The **src/sam3x8e/** directory contains code
|
||||
specific to the Arduino Due style ARM micro-controllers. The
|
||||
**src/pru/** directory contains code specific to the Beaglebone's
|
||||
on-board PRU micro-controller. The **src/simulator/** contains code
|
||||
stubs that allow the micro-controller to be test compiled on other
|
||||
architectures. The **src/generic/** directory contains helper code
|
||||
that may be useful across different host architectures. The build
|
||||
arranges for includes of "board/somefile.h" to first look in the
|
||||
current architecture directory (eg, src/avr/somefile.h) and then in
|
||||
the generic directory (eg, src/generic/somefile.h).
|
||||
code. The **src/avr/**, **src/sam3/**, **src/samd21/**,
|
||||
**src/lpc176x/**, **src/stm32f1/**, **src/pru/**, and **src/linux/**
|
||||
directories contain architecture specific micro-controller code. The
|
||||
**src/simulator/** contains code stubs that allow the micro-controller
|
||||
to be test compiled on other architectures. The **src/generic/**
|
||||
directory contains helper code that may be useful across different
|
||||
architectures. The build arranges for includes of "board/somefile.h"
|
||||
to first look in the current architecture directory (eg,
|
||||
src/avr/somefile.h) and then in the generic directory (eg,
|
||||
src/generic/somefile.h).
|
||||
|
||||
The **klippy/** directory contains the host software. Most of the host
|
||||
software is written in Python, however the **klippy/chelper/**
|
||||
@@ -263,16 +262,26 @@ The following may also be useful:
|
||||
will have been instantiated. The "gcode" and "pins" modules will
|
||||
always be available, but for other modules it is a good idea to
|
||||
defer the lookup.
|
||||
* Define a `printer_state()` method if the code needs to be called
|
||||
during printer setup and/or shutdown. This method is called twice
|
||||
during setup (with "connect" and then "ready") and may also be
|
||||
called at run-time (with "shutdown" or "disconnect"). It is common
|
||||
to perform "printer object" lookup during the "connect" and "ready"
|
||||
phases.
|
||||
* Register event handlers using the `printer.register_event_handler()`
|
||||
method if the code needs to be called during "events" raised by
|
||||
other printer objects. Each event name is a string, and by
|
||||
convention it is the name of the main source module that raises the
|
||||
event along with a short name for the action that is occurring (eg,
|
||||
"klippy:connect"). The parameters passed to each event handler are
|
||||
specific to the given event (as are exception handling and execution
|
||||
context). Two common startup events are:
|
||||
* klippy:connect - This event is generated after all printer objects
|
||||
are instantiated. It is commonly used to lookup other printer
|
||||
objects, to verify config settings, and to perform an initial
|
||||
"handshake" with printer hardware.
|
||||
* klippy:ready - This event is generated after all connect handlers
|
||||
have completed successfully. It indicates the printer is
|
||||
transitioning to a state ready to handle normal operations. Do not
|
||||
raise an error in this callback.
|
||||
* If there is an error in the user's config, be sure to raise it
|
||||
during the `load_config()` or `printer_state("connect")` phases. Use
|
||||
either `raise config.error("my error")` or `raise
|
||||
printer.config_error("my error")` to report the error.
|
||||
during the `load_config()` or "connect event" phases. Use either
|
||||
`raise config.error("my error")` or `raise printer.config_error("my
|
||||
error")` to report the error.
|
||||
* Use the "pins" module to configure a pin on a micro-controller. This
|
||||
is typically done with something similar to
|
||||
`printer.lookup_object("pins").setup_pin("pwm",
|
||||
@@ -287,8 +296,8 @@ The following may also be useful:
|
||||
printer object returned from the `load_config()` function. This is
|
||||
important as otherwise the RESTART command may not perform as
|
||||
expected. Also, for similar reasons, if any external files (or
|
||||
sockets) are opened then be sure to close them from the
|
||||
`printer_state("disconnect")` callback.
|
||||
sockets) are opened then be sure to register a "klippy:disconnect"
|
||||
event handler and close them from that callback.
|
||||
* Avoid accessing the internal member variables (or calling methods
|
||||
that start with an underscore) of other printer objects. Observing
|
||||
this convention makes it easier to manage future changes.
|
||||
@@ -415,7 +424,7 @@ software:
|
||||
to convert from a "print time" to the main micro-controller's
|
||||
hardware clock by multiplying the print time by the mcu's statically
|
||||
configured frequency rate. The high-level host code uses print times
|
||||
to calculates almost all physical actions (eg, head movement, heater
|
||||
to calculate almost all physical actions (eg, head movement, heater
|
||||
changes, etc.). Within the host code, print times are generally
|
||||
stored in variables named *print_time* or *move_time*.
|
||||
* MCU clock. This is the hardware clock counter on each
|
||||
|
||||
@@ -0,0 +1,249 @@
|
||||
This document provides information on implementing G-Code command
|
||||
sequences in gcode_macro (and similar) config sections.
|
||||
|
||||
### Formatting of G-Code in the config
|
||||
|
||||
Indentation is important when defining a macro in the config file. To
|
||||
specify a multi-line G-Code sequence it is important for each line to
|
||||
have proper indentation. For example:
|
||||
|
||||
```
|
||||
[gcode_macro blink_led]
|
||||
gcode:
|
||||
SET_PIN PIN=my_led VALUE=1
|
||||
G4 P2000
|
||||
SET_PIN PIN=my_led VALUE=0
|
||||
```
|
||||
|
||||
Note how the `gcode:` config option always starts at the beginning of
|
||||
the line and subsequent lines in the G-Code macro never start at the
|
||||
beginning.
|
||||
|
||||
### Save/Restore state for G-Code moves
|
||||
|
||||
Unfortunately, the G-Code command language can be challenging to use.
|
||||
The standard mechanism to move the toolhead is via the `G1` command
|
||||
(the `G0` command is an alias for `G1` and it can be used
|
||||
interchangeably with it). However, this command relies on the "G-Code
|
||||
parsing state" setup by `M82`, `M83`, `G90`, `G91`, `G92`, and
|
||||
previous `G1` commands. When creating a G-Code macro it is a good
|
||||
idea to always explicitly set the G-Code parsing state prior to
|
||||
issuing a `G1` command. (Otherwise, there is a risk the `G1` command
|
||||
will make an undesirable request.)
|
||||
|
||||
A common way to accomplish that is to wrap the `G1` moves in
|
||||
`SAVE_GCODE_STATE`, `G91`, and `RESTORE_GCODE_STATE`. For example:
|
||||
|
||||
```
|
||||
[gcode_macro MOVE_UP]
|
||||
gcode:
|
||||
SAVE_GCODE_STATE NAME=my_move_up_state
|
||||
G91
|
||||
G1 Z10 F300
|
||||
RESTORE_GCODE_STATE NAME=my_move_up_state
|
||||
```
|
||||
|
||||
The `G91` command places the G-Code parsing state into "relative move
|
||||
mode" and the `RESTORE_GCODE_STATE` command restores the state to what
|
||||
it was prior to entering the macro. Be sure to specify an explicit
|
||||
speed (via the `F` parameter) on the first `G1` command.
|
||||
|
||||
### Template expansion
|
||||
<!-- {% raw %} -->
|
||||
|
||||
The gcode_macro `gcode:` config section is evaluated using the Jinja2
|
||||
template language. One can evaluate expressions at run-time by
|
||||
wrapping them in `{ }` characters or use conditional statements
|
||||
wrapped in `{% %}`. See the
|
||||
[Jinja2 documentation](http://jinja.pocoo.org/docs/2.10/templates/)
|
||||
for further information on the syntax.
|
||||
|
||||
This is most often used to inspect parameters passed to the macro when
|
||||
it is called. These parameters are available via the `params`
|
||||
pseudo-variable. For example, if the macro:
|
||||
|
||||
```
|
||||
[gcode_macro SET_PERCENT]
|
||||
gcode:
|
||||
M117 Now at { params.VALUE|float * 100 }%
|
||||
```
|
||||
|
||||
were invoked as `SET_PERCENT VALUE=.2` it would evaluate to `M117 Now
|
||||
at 20%`. Note that parameter names are always in upper-case when
|
||||
evaluated in the macro and are always passed as strings. If performing
|
||||
math then they must be explicitly converted to integers or floats.
|
||||
|
||||
An example of a complex macro:
|
||||
```
|
||||
[gcode_macro clean_nozzle]
|
||||
gcode:
|
||||
SAVE_GCODE_STATE NAME=clean_nozzle_state
|
||||
G90
|
||||
G0 Z15 F300
|
||||
{% for wipe in range(8) %}
|
||||
{% for coordinate in [(275,4),(235,4)] %}
|
||||
G0 X{coordinate[0]} Y{coordinate[1] + 0.25 * wipe} Z9.7 F12000
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
RESTORE_GCODE_STATE NAME=clean_nozzle_state
|
||||
```
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
#### The "printer" Variable
|
||||
|
||||
It is possible to inspect (and alter) the current state of the printer
|
||||
via the `printer` pseudo-variable. For example:
|
||||
|
||||
```
|
||||
[gcode_macro slow_fan]
|
||||
gcode:
|
||||
M106 S{ printer.fan.speed * 0.9 * 255}
|
||||
```
|
||||
|
||||
Important! Macros are first evaluated in entirety and only then are
|
||||
the resulting commands executed. If a macro issues a command that
|
||||
alters the state of the printer, the results of that state change will
|
||||
not be visible during the evaluation of the macro. This can also
|
||||
result in subtle behavior when a macro generates commands that call
|
||||
other macros, as the called macro is evaluated when it is invoked
|
||||
(which is after the entire evaluation of the calling macro).
|
||||
|
||||
By convention, the name immediately following `printer` is the name of
|
||||
a config section. So, for example, `printer.fan` refers to the fan
|
||||
object created by the `[fan]` config section. There are some
|
||||
exceptions to this rule - notably the `gcode` and `toolhead` objects.
|
||||
If the config section contains spaces in it, then one can access it
|
||||
via the `[ ]` accessor - for example:
|
||||
`printer["generic_heater my_chamber_heater"].temperature`.
|
||||
|
||||
Some printer objects allow one to alter the state of the printer. By
|
||||
convention, these objects use an `action_` prefix. For example,
|
||||
`printer.gcode.action_emergency_stop()` would cause the printer to go
|
||||
into a shutdown state. These actions are taken at the time that the
|
||||
macro is evaluated, which may be a significant amount of time before
|
||||
the generated commands are executed.
|
||||
|
||||
The following are common printer attributes:
|
||||
- `printer.fan.speed`: The fan speed as a float between 0.0 and 1.0.
|
||||
- `printer.gcode.action_respond_info(msg)`: Write the given `msg` to
|
||||
the /tmp/printer pseudo-terminal. Each line of `msg` will be sent
|
||||
with a "// " prefix.
|
||||
- `printer.gcode.action_respond_error(msg)`: Write the given `msg` to
|
||||
the /tmp/printer pseudo-terminal. The first line of `msg` will be
|
||||
sent with a "!! " prefix and subsequent lines will have a "// "
|
||||
prefix.
|
||||
- `printer.gcode.action_emergency_stop(msg)`: Transition the printer
|
||||
to a shutdown state. The `msg` parameter is optional, it may be
|
||||
useful to describe the reason for the shutdown.
|
||||
- `printer.gcode.gcode_position`: The current position of the toolhead
|
||||
relative to the current G-Code origin. It is possible to access the
|
||||
x, y, z, and e components of this position (eg,
|
||||
`printer.gcode.gcode_position.x`).
|
||||
- `printer["gcode_macro <macro_name>"].<variable>`: The current value
|
||||
of a gcode_macro variable.
|
||||
- `printer.<heater>.temperature`: The last reported temperature (in
|
||||
Celsius as a float) for the given heater. Available heaters are:
|
||||
`heater_bed` and `heater_generic <config_name>`.
|
||||
- `printer.<heater>.target`: The current target temperature (in
|
||||
Celsius as a float) for the given heater.
|
||||
- `printer.pause_resume.is_paused`: Returns true if a PAUSE command
|
||||
has been executed without a corresponding RESUME.
|
||||
- `printer.toolhead.position`: The last commanded position of the
|
||||
toolhead relative to the coordinate system specified in the config
|
||||
file. It is possible to access the x, y, z, and e components of this
|
||||
position (eg, `printer.toolhead.position.x`).
|
||||
|
||||
The above list is subject to change - if using an attribute be sure to
|
||||
review the [Config Changes document](Config_Changes.md) when upgrading
|
||||
the Klipper software. The above list is not exhaustive. Other
|
||||
attributes may be available (via `get_status()` methods defined in the
|
||||
software). However, undocumented attributes may change without notice
|
||||
in future Klipper releases.
|
||||
|
||||
### Variables
|
||||
|
||||
The SET_GCODE_VARIABLE command may be useful for saving state between
|
||||
macro calls. For example:
|
||||
|
||||
```
|
||||
[gcode_macro start_probe]
|
||||
variable_bed_temp: 0
|
||||
gcode:
|
||||
# Save target temperature to bed_temp variable
|
||||
SET_GCODE_VARIABLE MACRO=start_probe VARIABLE=bed_temp VALUE={printer.heater_bed.target}
|
||||
# Disable bed heater
|
||||
M140
|
||||
# Perform probe
|
||||
PROBE
|
||||
# Call finish_probe macro at completion of probe
|
||||
finish_probe
|
||||
|
||||
[gcode_macro finish_probe]
|
||||
gcode:
|
||||
# Restore temperature
|
||||
M140 S{printer["gcode_macro start_probe"].bed_temp}
|
||||
```
|
||||
|
||||
Be sure to take the timing of macro evaluation and command execution
|
||||
into account when using SET_GCODE_VARIABLE.
|
||||
|
||||
### Delayed Gcodes
|
||||
|
||||
The [delayed_gcode] configuration option can be used to execute a delayed
|
||||
gcode sequence:
|
||||
|
||||
```
|
||||
[delayed_gcode clear_display]
|
||||
gcode:
|
||||
M117
|
||||
|
||||
[gcode_macro load_filament]
|
||||
gcode:
|
||||
G91
|
||||
G1 E50
|
||||
G90
|
||||
M400
|
||||
M117 Load Complete!
|
||||
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
|
||||
```
|
||||
|
||||
When the `load_filament` macro above executes, it will display a
|
||||
"Load Complete!" message after the extrusion is finished. The
|
||||
last line of gcode enables the "clear_display" delayed_gcode, set
|
||||
to execute in 10 seconds.
|
||||
|
||||
The `initial_duration` config option can be set to execute the
|
||||
delayed_gcode on printer startup. The countdown begins when the
|
||||
printer enters the "ready" state. For example, the below delayed_gcode
|
||||
will execute 5 seconds after the printer is ready, initializing
|
||||
the display with a "Welcome!" message:
|
||||
|
||||
```
|
||||
[delayed_gcode welcome]
|
||||
initial_duration: 5.
|
||||
gcode:
|
||||
M117 Welcome!
|
||||
```
|
||||
|
||||
Its possible for a delayed gcode to repeat by updating itself in
|
||||
the gcode option:
|
||||
|
||||
```
|
||||
[delayed_gcode report_temp]
|
||||
initial_duration: 2.
|
||||
gcode:
|
||||
{printer.gcode.action_respond_info(
|
||||
"Extruder Temp: %.1f" %
|
||||
(printer.extruder0.temperature))}
|
||||
UPDATE_DELAYED_GCODE ID=report_temp DURATION=2
|
||||
|
||||
```
|
||||
|
||||
The above delayed_gcode will send "// Extruder Temp: [ex0_temp]" to
|
||||
Octoprint every 2 seconds. This can be canceled with the following
|
||||
gcode:
|
||||
|
||||
|
||||
```
|
||||
UPDATE_DELAYED_GCODE ID=report_temp DURATION=0
|
||||
```
|
||||
@@ -0,0 +1,96 @@
|
||||
This document covers recent software changes to the config file that
|
||||
are not backwards compatible. It is a good idea to review this
|
||||
document when upgrading the Klipper software.
|
||||
|
||||
All dates in this document are approximate.
|
||||
|
||||
# Changes
|
||||
|
||||
20191003: The move_to_previous option in [safe_z_homing] now defaults
|
||||
to False. (It was effectively False prior to 20190918.)
|
||||
|
||||
20190918: The zhop option in [safe_z_homing] is always re-applied
|
||||
after Z axis homing completed. This might need users to update custom
|
||||
scripts based on this module.
|
||||
|
||||
20190806: The SET_NEOPIXEL command has been renamed to SET_LED.
|
||||
|
||||
20190726: The mcp4728 digital-to-analog code has changed. The default
|
||||
i2c_address is now 0x60 and the voltage reference is now relative to
|
||||
the mcp4728's internal 2.048 volt reference.
|
||||
|
||||
20190710: The z_hop option was removed from the [firmware_retract]
|
||||
config section. The z_hop support was incomplete and could cause
|
||||
incorrect behavior with several common slicers.
|
||||
|
||||
20190710: The optional parameters of the PROBE_ACCURACY command have
|
||||
changed. It may be necessary to update any macros or scripts that use
|
||||
that command.
|
||||
|
||||
20190628: All configuration options have been removed from the
|
||||
[skew_correction] section. Configuration for skew_correction
|
||||
is now done via the SET_SKEW gcode. See skew_correction.md
|
||||
for recommended usage.
|
||||
|
||||
20190607: The "variable_X" parameters of gcode_macro (along with the
|
||||
VALUE parameter of SET_GCODE_VARIABLE) are now parsed as Python
|
||||
literals. If a value needs to be assigned a string then wrap the value
|
||||
in quotes so that it is evaluated as a string.
|
||||
|
||||
20190606: The "samples", "samples_result", and "sample_retract_dist"
|
||||
config options have been moved to the "probe" config section. These
|
||||
options are no longer supported in the "delta_calibrate", "bed_tilt",
|
||||
"bed_mesh", "screws_tilt_adjust", "z_tilt", or "quad_gantry_level"
|
||||
config sections.
|
||||
|
||||
20190528: The magic "status" variable in gcode_macro template
|
||||
evaluation has been renamed to "printer".
|
||||
|
||||
20190520: The SET_GCODE_OFFSET command has changed; update any g-code
|
||||
macros accordingly. The command will no longer apply the requested
|
||||
offset to the next G1 command. The old behavior may be approximated by
|
||||
using the new "MOVE=1" parameter.
|
||||
|
||||
20190404: The Python host software packages were updated. Users will
|
||||
need to rerun the ~/klipper/scripts/install-octopi.sh script (or
|
||||
otherwise upgrade the python dependencies if not using a standard
|
||||
OctoPi installation).
|
||||
|
||||
20190404: The i2c_bus and spi_bus parameters (in various config
|
||||
sections) now take a bus name instead of a number.
|
||||
|
||||
20190404: The sx1509 config parameters have changed. The 'address'
|
||||
parameter is now 'i2c_address' and it must be specified as a decimal
|
||||
number. Where 0x3E was previously used, specify 62.
|
||||
|
||||
20190328: The min_speed value in [temperature_fan] config
|
||||
will now be respected and the fan will always run at this
|
||||
speed or higher in PID mode.
|
||||
|
||||
20190322: The default value for "driver_HEND" in [tmc2660] config
|
||||
sections was changed from 6 to 3. The "driver_VSENSE" field was
|
||||
removed (it is now automatically calculated from run_current).
|
||||
|
||||
20190310: The [controller_fan] config section now always takes a name
|
||||
(such as [controller_fan my_controller_fan]).
|
||||
|
||||
20190308: The "driver_BLANK_TIME_SELECT" field in [tmc2130] and
|
||||
[tmc2208] config sections has been renamed to "driver_TBL".
|
||||
|
||||
20190308: The [tmc2660] config section has changed. A new
|
||||
sense_resistor config parameter must now be provided. The meaning of
|
||||
several of the driver_XXX parameters has changed.
|
||||
|
||||
20190228: Users of SPI or I2C on SAMD21 boards must now specify the
|
||||
bus pins via a [samd_sercom] config section.
|
||||
|
||||
20190224: The bed_shape option has been removed from bed_mesh. The
|
||||
radius option has been renamed to bed_radius. Users with round beds
|
||||
should supply the bed_radius and round_probe_count options.
|
||||
|
||||
20190107: The i2c_address parameter in the mcp4451 config section
|
||||
changed. This is a common setting on Smoothieboards. The new value is
|
||||
half the old value (88 should be changed to 44, and 90 should be
|
||||
changed to 45).
|
||||
|
||||
20181220: Klipper v0.7.0 released
|
||||
@@ -152,16 +152,13 @@ command is: `PID_CALIBRATE HEATER=heater_bed TARGET=60`
|
||||
### Next steps
|
||||
|
||||
This guide is intended to help with basic verification of pin settings
|
||||
in the Klipper configuration file. It may be necessary to perform
|
||||
detailed printer calibration - a number of guides are available online
|
||||
to help with this (for example, do a web search for "3d printer
|
||||
calibration").
|
||||
|
||||
See the [Slicers](Slicers.md) document for information on configuring
|
||||
a slicer with Klipper. If one is using traditional endstop switches
|
||||
with Trinamic stepper motor drivers then see the
|
||||
[Endstop Phase](Endstop_Phase.md) document. If using a delta printer,
|
||||
see the [Delta Calibrate](Delta_Calibrate.md) document.
|
||||
in the Klipper configuration file. Be sure to read the
|
||||
[bed leveling](Bed_Level.md) guide. Also see the [Slicers](Slicers.md)
|
||||
document for information on configuring a slicer with Klipper.
|
||||
|
||||
After one has verified that basic printing works, it is a good idea to
|
||||
consider calibrating [pressure advance](Pressure_Advance.md).
|
||||
|
||||
It may be necessary to perform other types of detailed printer
|
||||
calibration - a number of guides are available online to help with
|
||||
this (for example, do a web search for "3d printer calibration").
|
||||
@@ -1,4 +1,4 @@
|
||||
The Klippy host code has some tools to help in debugging.
|
||||
This document describes some of the Klipper debugging tools.
|
||||
|
||||
Translating gcode files to micro-controller commands
|
||||
====================================================
|
||||
@@ -147,11 +147,14 @@ sudo apt-get install python-matplotlib
|
||||
Then graphs can be produced with:
|
||||
|
||||
```
|
||||
~/klipper/scripts/graphstats.py /tmp/klippy.log loadgraph.png
|
||||
~/klipper/scripts/graphstats.py /tmp/klippy.log -o loadgraph.png
|
||||
```
|
||||
|
||||
One can then view the resulting **loadgraph.png** file.
|
||||
|
||||
Different graphs can be produced. For more information run:
|
||||
`~/klipper/scripts/graphstats.py --help`
|
||||
|
||||
Extracting information from the klippy.log file
|
||||
===============================================
|
||||
|
||||
@@ -172,243 +175,23 @@ shutdown information. The information dumps from an MCU shutdown (if
|
||||
present) will be reordered by timestamp to assist in diagnosing cause
|
||||
and effect scenarios.
|
||||
|
||||
Micro-controller Benchmarks
|
||||
===========================
|
||||
Running the regression tests
|
||||
============================
|
||||
|
||||
This section describes the mechanism used to generate the Klipper
|
||||
micro-controller step rate benchmarks.
|
||||
The main Klipper GitHub repository uses TravisCI to run a series of
|
||||
regression tests. It can be useful to run some of these tests locally.
|
||||
|
||||
The primary goal of the benchmarks is to provide a consistent
|
||||
mechanism for measuring the impact of coding changes within the
|
||||
software. A secondary goal is to provide high-level metrics for
|
||||
comparing the performance between chips and between software
|
||||
platforms.
|
||||
|
||||
The step rate benchmark is designed to find the maximum stepping rate
|
||||
that the hardware and software can reach. This benchmark stepping rate
|
||||
is not achievable in day-to-day use as Klipper needs to perform other
|
||||
tasks (eg, mcu/host communication, temperature reading, endstop
|
||||
checking) in any real-world usage.
|
||||
|
||||
In general, the pins for the benchmark tests are chosen to flash LEDs
|
||||
or other innocuous pins. **Always verify that it is safe to drive the
|
||||
configured pins prior to running a benchmark.** It is not recommended
|
||||
to drive an actual stepper during a benchmark.
|
||||
|
||||
## Step rate benchmark test ##
|
||||
|
||||
The test is performed using the console.py tool (described above). The
|
||||
micro-controller is configured for the particular hardware platform
|
||||
(see below) and then the following is cut-and-paste into the
|
||||
console.py terminal window:
|
||||
The source code "whitespace check" can be run with:
|
||||
```
|
||||
SET start_clock {clock+freq}
|
||||
SET ticks 1000
|
||||
|
||||
reset_step_clock oid=0 clock={start_clock}
|
||||
set_next_step_dir oid=0 dir=0
|
||||
queue_step oid=0 interval={ticks} count=60000 add=0
|
||||
set_next_step_dir oid=0 dir=1
|
||||
queue_step oid=0 interval=3000 count=1 add=0
|
||||
|
||||
reset_step_clock oid=1 clock={start_clock}
|
||||
set_next_step_dir oid=1 dir=0
|
||||
queue_step oid=1 interval={ticks} count=60000 add=0
|
||||
set_next_step_dir oid=1 dir=1
|
||||
queue_step oid=1 interval=3000 count=1 add=0
|
||||
|
||||
reset_step_clock oid=2 clock={start_clock}
|
||||
set_next_step_dir oid=2 dir=0
|
||||
queue_step oid=2 interval={ticks} count=60000 add=0
|
||||
set_next_step_dir oid=2 dir=1
|
||||
queue_step oid=2 interval=3000 count=1 add=0
|
||||
./scripts/check_whitespace.sh
|
||||
```
|
||||
|
||||
The above tests three steppers simultaneously stepping. If running the
|
||||
above results in a "Rescheduled timer in the past" or "Stepper too far
|
||||
in past" error then it indicates the `ticks` parameter is too low (it
|
||||
results in a stepping rate that is too fast). The goal is to find the
|
||||
lowest setting of the ticks parameter that reliably results in a
|
||||
successful completion of the test. It should be possible to bisect the
|
||||
ticks parameter until a stable value is found.
|
||||
|
||||
On a failure, one can copy-and-paste the following to clear the error
|
||||
in preparation for the next test:
|
||||
The Klippy regression test suite requires "data dictionaries" from
|
||||
many platforms. The easiest way to obtain them is to
|
||||
[download them from github](https://github.com/KevinOConnor/klipper/issues/1438).
|
||||
Once the data dictionaries are downloaded, use the following to run
|
||||
the regression suite:
|
||||
```
|
||||
clear_shutdown
|
||||
```
|
||||
|
||||
To obtain the single stepper and dual stepper benchmarks, the same
|
||||
configuration sequence is used, but only the first block (for the
|
||||
single stepper case) or first two blocks (for the dual stepper case)
|
||||
of the above test is cut-and-paste into the console.py window.
|
||||
|
||||
To produce the benchmarks found in the Features.md document, the total
|
||||
number of steps per second is calculated by multiplying the number of
|
||||
active steppers with the nominal mcu frequency and dividing by the
|
||||
final ticks parameter. The results are rounded to the nearest K. For
|
||||
example, with three active steppers:
|
||||
```
|
||||
ECHO Test result is: {"%.0fK" % (3. * freq / ticks / 1000.)}
|
||||
```
|
||||
|
||||
### AVR step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on AVR chips:
|
||||
```
|
||||
PINS arduino
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=ar29 dir_pin=ar28 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=ar27 dir_pin=ar26 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=ar23 dir_pin=ar22 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `b161a69e` with gcc version `avr-gcc
|
||||
(GCC) 4.8.1`. Both the 16Mhz and 20Mhz tests were run using simulavr
|
||||
configured for an atmega644p (previous tests have confirmed simulavr
|
||||
results match tests on both a 16Mhz at90usb and a 16Mhz atmega2560).
|
||||
On both 16Mhz and 20Mhz the best single stepper result is `SET ticks
|
||||
106`, the best dual stepper result is `SET ticks 276`, and the best
|
||||
three stepper result is `SET ticks 481`.
|
||||
|
||||
### Arduino Due step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the Due:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PB27 dir_pin=PA21 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PB26 dir_pin=PC30 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA21 dir_pin=PC30 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `b161a69e` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0`. The best single
|
||||
stepper result is `SET ticks 207`, the best dual stepper result is
|
||||
`SET ticks 205`, and the best three stepper result is `SET ticks 317`.
|
||||
|
||||
### Duet Wifi step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the Duet Wifi:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PD6 dir_pin=PD11 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PD7 dir_pin=PD12 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PD8 dir_pin=PD13 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `34c3cb5c` with gcc version
|
||||
`arm-none-eabi-gcc (15:5.4.1+svn241155-1) 5.4.1 20160919`. The best
|
||||
single stepper result is `SET ticks 295`, the best dual stepper result
|
||||
is `SET ticks 264`, and the best three stepper result is `SET ticks
|
||||
282`.
|
||||
|
||||
### Beaglebone PRU step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the PRU:
|
||||
```
|
||||
PINS beaglebone
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=P8_13 dir_pin=P8_12 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=P8_15 dir_pin=P8_14 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=P8_19 dir_pin=P8_18 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `b161a69e` with gcc version `pru-gcc
|
||||
(GCC) 8.0.0 20170530 (experimental)`. The best single stepper result
|
||||
is `SET ticks 861`, the best dual stepper result is `SET ticks 853`,
|
||||
and the best three stepper result is `SET ticks 883`.
|
||||
|
||||
### STM32F103 step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the STM32F103:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PC13 dir_pin=PB5 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PB3 dir_pin=PB6 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA4 dir_pin=PB7 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `b161a69e` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0`. The best single
|
||||
stepper result is `SET ticks 41`, the best dual stepper result is `SET
|
||||
ticks 48`, and the best three stepper result is `SET ticks 80`.
|
||||
|
||||
### LPC176x step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the LPC176x:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=P1.20 dir_pin=P1.18 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=P1.21 dir_pin=P1.18 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=P1.23 dir_pin=P1.18 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `b161a69e` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0`. For the 100Mhz
|
||||
LPC1768, the best single stepper result is `SET ticks 119`, the best
|
||||
dual stepper result is `SET ticks 118`, and the best three stepper
|
||||
result is `SET ticks 154`. The 120Mhz LPC1769 results were obtained by
|
||||
overclocking an LPC1768 to 120Mhz - the best single stepper result is
|
||||
`SET ticks 140`, the best dual stepper result is `SET ticks 137`, and
|
||||
the best three stepper result is `SET ticks 154`.
|
||||
|
||||
### SAMD21 step rate benchmark ###
|
||||
|
||||
The following configuration sequence is used on the SAMD21:
|
||||
```
|
||||
allocate_oids count=3
|
||||
config_stepper oid=0 step_pin=PA27 dir_pin=PA20 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=1 step_pin=PB3 dir_pin=PA21 min_stop_interval=0 invert_step=0
|
||||
config_stepper oid=2 step_pin=PA17 dir_pin=PA21 min_stop_interval=0 invert_step=0
|
||||
finalize_config crc=0
|
||||
```
|
||||
|
||||
The test was last run on commit `b161a69e` with gcc version
|
||||
`arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0`. The best single
|
||||
stepper result is `SET ticks 277`, the best dual stepper result is
|
||||
`SET ticks 410`, and the best three stepper result is `SET ticks 664`.
|
||||
|
||||
## Command dispatch benchmark ##
|
||||
|
||||
The command dispatch benchmark tests how many "dummy" commands the
|
||||
micro-controller can process. It is primarily a test of the hardware
|
||||
communication mechanism. The test is run using the console.py tool
|
||||
(described above). The following is cut-and-paste into the console.py
|
||||
terminal window:
|
||||
```
|
||||
DELAY {clock+freq} get_uptime
|
||||
FLOOD 100000 0.0 end_group
|
||||
get_uptime
|
||||
```
|
||||
|
||||
When the test completes, determine the difference between the clocks
|
||||
reported in the two "uptime" response messages. The total number of
|
||||
commands per second is then `100000 * mcu_frequency / clock_diff`.
|
||||
|
||||
| MCU | Rate | Build | Build compiler |
|
||||
| ------------------- | ---- | -------- | ------------------- |
|
||||
| atmega2560 (serial) | 23K | b161a69e | avr-gcc (GCC) 4.8.1 |
|
||||
| at90usb1286 (USB) | 75K | b161a69e | avr-gcc (GCC) 4.8.1 |
|
||||
| sam3x8e (serial) | 23K | b161a69e | arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0 |
|
||||
| pru (shared memory) | 5K | b161a69e | pru-gcc (GCC) 8.0.0 20170530 (experimental) |
|
||||
| stm32f103 (USB) | 335K | b161a69e | arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0 |
|
||||
| lpc1768 (USB) | 546K | b161a69e | arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0 |
|
||||
| lpc1769 (USB) | 619K | b161a69e | arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0 |
|
||||
| samd21 (USB) | 238K | b161a69e | arm-none-eabi-gcc (Fedora 7.1.0-5.fc27) 7.1.0 |
|
||||
|
||||
Host Benchmarks
|
||||
===============
|
||||
|
||||
It is possible to run timing tests on the host software using the
|
||||
"batch mode" processing mechanism described above. This is typically
|
||||
done by choosing a large and complex G-Code file and timing how long
|
||||
it takes for the host software to process it. For example:
|
||||
```
|
||||
time ~/klippy-env/bin/python ./klippy/klippy.py config/example.cfg -i something_complex.gcode -o /dev/null -d out/klipper.dict
|
||||
tar xfz klipper-dict-20??????.tar.gz
|
||||
~/klippy-env/bin/python ~/klipper/scripts/test_klippy.py -d dict/ ~/klipper/test/klippy/*.test
|
||||
```
|
||||
@@ -7,7 +7,28 @@ printer motion on a delta printer. Each one of these parameters has a
|
||||
non-obvious and non-linear impact and it is difficult to calibrate
|
||||
them manually. In contrast, the software calibration code can provide
|
||||
excellent results with just a few minutes of time. No special probing
|
||||
hardware is necessary to get good results.
|
||||
hardware is necessary.
|
||||
|
||||
Ultimately, the delta calibration is dependent on the precision of the
|
||||
tower endstop switches. If one is using Trinamic stepper motor drivers
|
||||
then consider enabling [endstop phase](Endstop_Phase.md) detection to
|
||||
improve the accuracy of those switches.
|
||||
|
||||
Automatic vs manual probing
|
||||
===========================
|
||||
|
||||
Klipper supports calibrating the delta parameters via a manual probing
|
||||
method or via an automatic Z probe.
|
||||
|
||||
A number of delta printer kits come with automatic Z probes that are
|
||||
not sufficiently accurate (specifically, small differences in arm
|
||||
length can cause effector tilt which can skew an automatic probe). If
|
||||
using an automatic probe then first
|
||||
[calibrate the probe](Probe_Calibrate.md) and then check for a
|
||||
[probe location bias](Probe_Calibrate.md#location-bias-check). If the
|
||||
automatic probe has a bias of more than 25 microns (.025mm) then use
|
||||
manual probing instead. Manual probing only takes a few minutes and it
|
||||
eliminates error introduced by the probe.
|
||||
|
||||
Basic delta calibration
|
||||
=======================
|
||||
@@ -32,19 +53,15 @@ the bed. It is typical to permit this during calibration by updating
|
||||
the config so that the printer's `minimum_z_position=-5`. (Once
|
||||
calibration completes, one can remove this setting from the config.)
|
||||
|
||||
There are two ways to perform the probing - manual probing and
|
||||
automatic probing. Automatic probing utilizes a hardware device
|
||||
capable of triggering when the toolhead is at a set distance from the
|
||||
bed. Manual probing involves using the "paper test" to determine the
|
||||
height at each probe point. It is recommended to use manual probing
|
||||
for delta calibration. A number of common printer kits come with
|
||||
probes that are not sufficiently accurate (specifically, small
|
||||
differences in arm length can cause effector tilt which can skew an
|
||||
automatic probe). Manual probing only takes a few minutes and it
|
||||
eliminates error introduced by the probe.
|
||||
There are two ways to perform the probing - manual probing
|
||||
(`DELTA_CALIBRATE METHOD=manual`) and automatic probing
|
||||
(`DELTA_CALIBRATE`). The manual probing method will move the head near
|
||||
the bed and then wait for the user to follow the steps described at
|
||||
["the paper test"](Bed_Level.md#the-paper-test) to determine the
|
||||
actual distance between the nozzle and bed at the given location.
|
||||
|
||||
To perform the basic probe, make sure the config has a
|
||||
[delta_calibrate] section defined and run:
|
||||
[delta_calibrate] section defined and then run the tool:
|
||||
```
|
||||
G28
|
||||
DELTA_CALIBRATE METHOD=manual
|
||||
@@ -56,7 +73,7 @@ SAVE_CONFIG
|
||||
```
|
||||
|
||||
The basic calibration should provide delta parameters that are
|
||||
accurate enough for basic printing. If this is a new printer, this is
|
||||
accurate enough for basic printing. If this is a new printer, this is
|
||||
a good time to print some basic objects and verify general
|
||||
functionality.
|
||||
|
||||
|
||||
@@ -8,15 +8,20 @@ Frequently asked questions
|
||||
5. [The "make flash" command doesn't work](#the-make-flash-command-doesnt-work)
|
||||
6. [How do I change the serial baud rate?](#how-do-i-change-the-serial-baud-rate)
|
||||
7. [Can I run Klipper on something other than a Raspberry Pi 3?](#can-i-run-klipper-on-something-other-than-a-raspberry-pi-3)
|
||||
8. [Why can't I move the stepper before homing the printer?](#why-cant-i-move-the-stepper-before-homing-the-printer)
|
||||
9. [Why is the Z position_endstop set to 0.5 in the default configs?](#why-is-the-z-position_endstop-set-to-05-in-the-default-configs)
|
||||
10. [I converted my config from Marlin and the X/Y axes work fine, but I just get a screeching noise when homing the Z axis](#i-converted-my-config-from-marlin-and-the-xy-axes-work-fine-but-i-just-get-a-screeching-noise-when-homing-the-z-axis)
|
||||
11. [My TMC motor driver turns off in the middle of a print](#my-tmc-motor-driver-turns-off-in-the-middle-of-a-print)
|
||||
12. [I keep getting random "Lost communication with MCU" errors](#i-keep-getting-random-lost-communication-with-mcu-errors)
|
||||
13. [When I set "restart_method=command" my AVR device just hangs on a restart](#when-i-set-restart_methodcommand-my-avr-device-just-hangs-on-a-restart)
|
||||
14. [Will the heaters be left on if the Raspberry Pi crashes?](#will-the-heaters-be-left-on-if-the-raspberry-pi-crashes)
|
||||
15. [How do I convert a Marlin pin number to a Klipper pin name?](#how-do-i-convert-a-marlin-pin-number-to-a-klipper-pin-name)
|
||||
16. [How do I upgrade to the latest software?](#how-do-i-upgrade-to-the-latest-software)
|
||||
8. [Can I run multiple instances of Klipper on the same host machine?](#can-i-run-multiple-instances-of-klipper-on-the-same-host-machine)
|
||||
9. [Do I have to use OctoPrint?](#do-i-have-to-use-octoprint)
|
||||
10. [Why can't I move the stepper before homing the printer?](#why-cant-i-move-the-stepper-before-homing-the-printer)
|
||||
11. [Why is the Z position_endstop set to 0.5 in the default configs?](#why-is-the-z-position_endstop-set-to-05-in-the-default-configs)
|
||||
12. [I converted my config from Marlin and the X/Y axes work fine, but I just get a screeching noise when homing the Z axis](#i-converted-my-config-from-marlin-and-the-xy-axes-work-fine-but-i-just-get-a-screeching-noise-when-homing-the-z-axis)
|
||||
13. [My TMC motor driver turns off in the middle of a print](#my-tmc-motor-driver-turns-off-in-the-middle-of-a-print)
|
||||
14. [I keep getting random "Lost communication with MCU" errors](#i-keep-getting-random-lost-communication-with-mcu-errors)
|
||||
15. [My Raspberry Pi keeps rebooting during prints](#my-raspberry-pi-keeps-rebooting-during-prints)
|
||||
16. [When I set "restart_method=command" my AVR device just hangs on a restart](#when-i-set-restart_methodcommand-my-avr-device-just-hangs-on-a-restart)
|
||||
17. [Will the heaters be left on if the Raspberry Pi crashes?](#will-the-heaters-be-left-on-if-the-raspberry-pi-crashes)
|
||||
18. [How do I convert a Marlin pin number to a Klipper pin name?](#how-do-i-convert-a-marlin-pin-number-to-a-klipper-pin-name)
|
||||
19. [How do I cancel an M109/M190 "wait for temperature" request?](#how-do-i-cancel-an-m109m190-wait-for-temperature-request)
|
||||
20. [How do I upgrade to the latest software?](#how-do-i-upgrade-to-the-latest-software)
|
||||
21. [Can I find out whether the printer has lost steps?](#can-i-find-out-whether-the-printer-has-lost-steps)
|
||||
|
||||
### How can I donate to the project?
|
||||
|
||||
@@ -34,6 +39,14 @@ each motor driver pulse. It can also be calculated from the axis
|
||||
pitch, motor step angle, and driver microstepping. If unsure, do a web
|
||||
search for "calculate steps per mm" to find an online calculator.
|
||||
|
||||
Klipper uses step_distance instead of steps_per_mm in order to use
|
||||
consistent units of measurement in the config file. (The config uses
|
||||
millimeters for all distance measurements.) It is believed that
|
||||
steps_per_mm originated as an optimization on old 8-bit
|
||||
micro-controllers (the desire to use a multiply instead of a divide in
|
||||
some low-level code). Continuing to configure this one distance in
|
||||
units of "inverse millimeters" is felt to be quirky and unnecessary.
|
||||
|
||||
### Where's my serial port?
|
||||
|
||||
The general way to find a USB serial port is to run `ls -l
|
||||
@@ -86,12 +99,12 @@ and make sure FLASH_DEVICE is set correctly for your board (see the
|
||||
|
||||
However, if "make flash" just doesn't work for your board, then you
|
||||
will need to manually flash. See if there is a config file in the
|
||||
[config directory](../config) with specific instructions for flashing
|
||||
the device. Also, check the board manufacturer's documentation to see
|
||||
if it describes how to flash the device. Finally, on AVR devices, it
|
||||
may be possible to manually flash the device using
|
||||
[avrdude](http://www.nongnu.org/avrdude/) with custom command-line
|
||||
parameters - see the avrdude documentation for further information.
|
||||
[config directory](https://github.com/KevinOConnor/klipper/tree/master/config)
|
||||
with specific instructions for flashing the device. Also, check the
|
||||
board manufacturer's documentation to see if it describes how to flash
|
||||
the device. Finally, it may be possible to manually flash the device
|
||||
using tools such as "avrdude" or "bossac" - see the
|
||||
[bootloader document](Bootloaders.md) for additional information.
|
||||
|
||||
### How do I change the serial baud rate?
|
||||
|
||||
@@ -132,8 +145,8 @@ machines (the printer may move faster than OctoPrint can send movement
|
||||
commands) when printing directly from OctoPrint. If you wish to run on
|
||||
one one of these slower boards anyway, consider using the
|
||||
"virtual_sdcard" feature (see
|
||||
[config/example-extras.cfg](../config/example-extras.cfg) for details)
|
||||
when printing.
|
||||
[config/example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
for details) when printing.
|
||||
|
||||
For running on the Beaglebone, see the
|
||||
[Beaglebone specific installation instructions](beaglebone.md).
|
||||
@@ -143,8 +156,41 @@ only requires Python running on a Linux (or similar)
|
||||
computer. However, if you wish to run it on a different machine you
|
||||
will need Linux admin knowledge to install the system prerequisites
|
||||
for that particular machine. See the
|
||||
[install-octopi.sh](../scripts/install-octopi.sh) script for further
|
||||
information on the necessary Linux admin steps.
|
||||
[install-octopi.sh](https://github.com/KevinOConnor/klipper/tree/master/scripts/install-octopi.sh)
|
||||
script for further information on the necessary Linux admin steps.
|
||||
|
||||
### Can I run multiple instances of Klipper on the same host machine?
|
||||
|
||||
It is possible to run multiple instances of the Klipper host software,
|
||||
but doing so requires Linux admin knowledge. The Klipper installation
|
||||
scripts ultimately cause the following Unix command to be run:
|
||||
```
|
||||
~/klippy-env/bin/python ~/klipper/klippy/klippy.py ~/printer.cfg -l /tmp/klippy.log
|
||||
```
|
||||
One can run multiple instances of the above command as long as each
|
||||
instance has its own printer config file, its own log file, and its
|
||||
own pseudo-tty. For example:
|
||||
```
|
||||
~/klippy-env/bin/python ~/klipper/klippy/klippy.py ~/printer2.cfg -l /tmp/klippy2.log -I /tmp/printer2
|
||||
```
|
||||
|
||||
If you choose to do this, you will need to implement the necessary
|
||||
start, stop, and installation scripts (if any). The
|
||||
[install-octopi.sh](https://github.com/KevinOConnor/klipper/tree/master/scripts/install-octopi.sh)
|
||||
script and the
|
||||
[klipper-start.sh](https://github.com/KevinOConnor/klipper/tree/master/scripts/klipper-start.sh)
|
||||
script may be useful as examples.
|
||||
|
||||
### Do I have to use OctoPrint?
|
||||
|
||||
The Klipper software is not dependent on OctoPrint. It is possible to
|
||||
use alternative software to send commands to Klipper, but doing so
|
||||
requires Linux admin knowledge.
|
||||
|
||||
Klipper creates a "virtual serial port" via the "/tmp/printer" file,
|
||||
and it emulates a classic 3d-printer serial interface via that file.
|
||||
In general, alternative software may work with Klipper as long as it
|
||||
can be configured to use "/tmp/printer" for the printer serial port.
|
||||
|
||||
### Why can't I move the stepper before homing the printer?
|
||||
|
||||
@@ -168,8 +214,8 @@ process itself (or fundamentally does not have a homing process) then
|
||||
consider using a homing_override section in the config file. If you
|
||||
need to move a stepper for diagnostic or debugging purposes then
|
||||
consider adding a force_move section to the config file. See
|
||||
[example-extras.cfg](../config/example-extras.cfg) for further details
|
||||
on these options.
|
||||
[example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
for further details on these options.
|
||||
|
||||
### Why is the Z position_endstop set to 0.5 in the default configs?
|
||||
|
||||
@@ -220,17 +266,46 @@ configured in Marlin.
|
||||
|
||||
### My TMC motor driver turns off in the middle of a print
|
||||
|
||||
There have been reports of some TMC drivers being disabled in the
|
||||
middle of a print. (In particular, with the TMC2208 driver.) When this
|
||||
issue occurs, the stepper associated with the driver moves freely,
|
||||
while the print continues.
|
||||
Short answer: Do not use the TMC2208 driver in "standalone mode" with
|
||||
Klipper! Do not use the TMC2224 driver in "stealthchop standalone
|
||||
mode" with Klipper!
|
||||
|
||||
It is believed this may be due to "over current" detection within the
|
||||
TMC driver. Trinamic has indicated that this could occur if the driver
|
||||
is in "stealthChop mode" and an abrupt velocity change occurs. If you
|
||||
experience this problem during homing, consider using a slower homing
|
||||
speed. If you experience this problem in the middle of a print,
|
||||
consider using a lower square_corner_velocity setting.
|
||||
Long answer: Klipper implements very precise timing.
|
||||
|
||||

|
||||
|
||||
In the above picture, if Klipper is requested to move along the red
|
||||
line and if each black line represents the nominal location to step a
|
||||
stepper, then in the middle of that movement Klipper will arrange to
|
||||
take a step, change the step direction, and then step back. Klipper
|
||||
can perform this step, direction change, and step back in a very small
|
||||
amount of time.
|
||||
|
||||
It is our current understanding that the TMC2208 and TMC2224 will
|
||||
react poorly to this when they are in "stealthchop" mode. (It is not
|
||||
believed any other TMC drivers are impacted.) It is believed that when
|
||||
the driver sees the two step requests in a small time frame that it
|
||||
dramatically increases current in anticipation of high acceleration.
|
||||
That high current can trip the driver's internal "over current"
|
||||
detection which causes the driver to disable itself.
|
||||
|
||||
This pattern of steps can occur on all stepper motors and on all
|
||||
robot kinematics.
|
||||
|
||||
The TMC2208 and TMC2224 do work well with Klipper when run-time
|
||||
configuration mode is used (that is, when a wire is routed from the
|
||||
micro-controller to the PDN-UART pin and the printer config file has a
|
||||
corresponding [tmc2208] config section). When using run-time
|
||||
configuration, either configure the drivers to use "spreadcycle mode"
|
||||
or configure them to use "stealthchop mode" with a reasonable
|
||||
"stealthchop threshold". If one wishes to exclusively use
|
||||
"stealthchop" mode with run-time UART configuration then make sure the
|
||||
stealthchop_threshold is no more than about 10% greater than the
|
||||
maximum velocity of the given axis. It is speculated that with a
|
||||
reasonable stealthchop threshold, then if Klipper sends a "step,
|
||||
direction change, step back" sequence, the driver will briefly
|
||||
transition from stealthchop mode, to spreadcycle mode, and back to
|
||||
stealthchop mode, which should be harmless.
|
||||
|
||||
### I keep getting random "Lost communication with MCU" errors
|
||||
|
||||
@@ -238,12 +313,19 @@ This is commonly caused by hardware errors on the USB connection
|
||||
between the host machine and the micro-controller. Things to look for:
|
||||
- Use a good quality USB cable between the host machine and
|
||||
micro-controller. Make sure the plugs are secure.
|
||||
- If using a Raspberry Pi, use a good quality power supply for the
|
||||
Raspberry Pi and use a good quality USB cable to connect that power
|
||||
supply to the Pi.
|
||||
- If using a Raspberry Pi, use a
|
||||
[good quality power supply](https://www.raspberrypi.org/documentation/hardware/raspberrypi/power/README.md)
|
||||
for the Raspberry Pi and use a
|
||||
[good quality USB cable](https://www.raspberrypi.org/forums/viewtopic.php?p=589877#p589877)
|
||||
to connect that power supply to the Pi. If you get "under voltage"
|
||||
warnings from OctoPrint, this is related to the power supply and it
|
||||
must be fixed.
|
||||
- Make sure the printer's power supply is not being overloaded. (Power
|
||||
fluctuations to the micro-controller's USB chip may result in resets
|
||||
of that chip.)
|
||||
- Verify stepper, heater, and other printer wires are not crimped or
|
||||
frayed. (Printer movement may place stress on a faulty wire causing
|
||||
it to lose contact, briefly short, or generate excessive noise.)
|
||||
- There have been reports of high USB noise when both the printer's
|
||||
power supply and the host's 5V power supply are mixed. (If you find
|
||||
that the micro-controller powers on when either the printer's power
|
||||
@@ -254,6 +336,13 @@ between the host machine and the micro-controller. Things to look for:
|
||||
one may modify a USB cable so that it does not carry 5V power
|
||||
between the host and micro-controller.)
|
||||
|
||||
### My Raspberry Pi keeps rebooting during prints
|
||||
|
||||
This is most likely do to voltage fluctuations. Follow the same
|
||||
troubleshooting steps for a
|
||||
["Lost communication with MCU"](#i-keep-getting-random-lost-communication-with-mcu-errors)
|
||||
error.
|
||||
|
||||
### When I set "restart_method=command" my AVR device just hangs on a restart
|
||||
|
||||
Some old versions of the AVR bootloader have a known bug in watchdog
|
||||
@@ -266,8 +355,7 @@ power is removed).
|
||||
The workaround is to use a restart_method other than "command" or to
|
||||
flash an updated bootloader to the AVR device. Flashing a new
|
||||
bootloader is a one time step that typically requires an external
|
||||
programmer - search the web to find the instructions for your
|
||||
particular device.
|
||||
programmer - see [Bootloaders](Bootloaders.md) for further details.
|
||||
|
||||
### Will the heaters be left on if the Raspberry Pi crashes?
|
||||
|
||||
@@ -283,15 +371,16 @@ See the "config_digital_out" command in the
|
||||
In addition, the micro-controller software is configured with a
|
||||
minimum and maximum temperature range for each heater at startup (see
|
||||
the min_temp and max_temp parameters in the
|
||||
[example.cfg](../config/example.cfg) file for details). If the
|
||||
micro-controller detects that the temperature is outside of that range
|
||||
then it will also enter a "shutdown" state.
|
||||
[example.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example.cfg)
|
||||
file for details). If the micro-controller detects that the
|
||||
temperature is outside of that range then it will also enter a
|
||||
"shutdown" state.
|
||||
|
||||
Separately, the host software also implements code to check that
|
||||
heaters and temperature sensors are functioning correctly. See the
|
||||
"verify_heater" section of the
|
||||
[example-extras.cfg](../config/example-extras.cfg) for further
|
||||
details.
|
||||
[example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
for further details.
|
||||
|
||||
### How do I convert a Marlin pin number to a Klipper pin name?
|
||||
|
||||
@@ -341,6 +430,17 @@ support these custom pin numbers - check Marlin's fastio headers (see
|
||||
above) to translate these pin numbers to their standard hardware
|
||||
names.
|
||||
|
||||
### How do I cancel an M109/M190 "wait for temperature" request?
|
||||
|
||||
Navigate to the OctoPrint terminal tab and issue an M112 command in
|
||||
the terminal box. The M112 command will cause Klipper to enter into a
|
||||
"shutdown" state, and it will cause OctoPrint to disconnect from
|
||||
Klipper. Navigate to the OctoPrint connection area and click on
|
||||
"Connect" to cause OctoPrint to reconnect. Navigate back to the
|
||||
terminal tab and issue a FIRMWARE_RESTART command to clear the Klipper
|
||||
error state. After completing this sequence, the previous heating
|
||||
request will be canceled and a new print may be started.
|
||||
|
||||
### How do I upgrade to the latest software?
|
||||
|
||||
The general way to upgrade is to ssh into the Raspberry Pi and run:
|
||||
@@ -379,3 +479,25 @@ follow the full upgrade steps outlined above. Note that the RESTART
|
||||
and FIRMWARE_RESTART g-code commands do not load new software - the
|
||||
above "sudo service klipper restart" and "make flash" commands are
|
||||
needed for a software change to take effect.
|
||||
|
||||
When upgrading the software, be sure to check the
|
||||
[config changes](Config_Changes.md) document for information on
|
||||
software changes that may require updates to your printer.cfg file.
|
||||
|
||||
### Can I find out whether the printer has lost steps?
|
||||
|
||||
In a way, yes. Home the printer, issue a `GET_POSITION` command, run
|
||||
your print, home again and issue another `GET_POSITION`. Then compare
|
||||
the values in the `mcu:` line.
|
||||
|
||||
This might be helpful to tune settings like stepper motor currents,
|
||||
accelerations and speeds without needing to actually print something
|
||||
and waste filament: just run some high-speed moves in between the
|
||||
`GET_POSITION` commands.
|
||||
|
||||
Note that endstop switches themselves tend to trigger at slightly
|
||||
different positions, so a difference of a couple of microsteps is
|
||||
likely the result of endstop inaccuracies. A stepper motor itself can
|
||||
only lose steps in increments of 4 full steps. (So, if one is using 16
|
||||
microsteps, then a lost step on the stepper would result in the "mcu:"
|
||||
step counter being off by a multiple of 64 microsteps.)
|
||||
@@ -83,7 +83,7 @@ Klipper supports many standard 3d printer features:
|
||||
probe or via manual probing.
|
||||
|
||||
* Support for common temperature sensors (eg, common thermistors,
|
||||
AD595, PT100, MAX6675, MAX31855, MAX31856, MAX31865). Custom
|
||||
AD595, AD849x, PT100, MAX6675, MAX31855, MAX31856, MAX31865). Custom
|
||||
thermistors and custom analog temperature sensors can also be
|
||||
configured.
|
||||
|
||||
@@ -92,10 +92,10 @@ Klipper supports many standard 3d printer features:
|
||||
* Support for standard fans, nozzle fans, and temperature controlled
|
||||
fans. No need to keep fans running when the printer is idle.
|
||||
|
||||
* Support for run-time configuration of TMC2130, TMC2208, TMC2224, and
|
||||
TMC2660 stepper motor drivers. There is also support for current
|
||||
control of traditional stepper drivers via AD5206 and MCP4451
|
||||
digipots.
|
||||
* Support for run-time configuration of TMC2130, TMC2208/TMC2224,
|
||||
TMC2209, TMC2660, and TMC5160 stepper motor drivers. There is also
|
||||
support for current control of traditional stepper drivers via
|
||||
AD5206, MCP4451, MCP4728, MCP4018, and PWM pins.
|
||||
|
||||
* Support for common LCD displays attached directly to the printer. A
|
||||
default menu is also available.
|
||||
@@ -116,7 +116,9 @@ Klipper supports many standard 3d printer features:
|
||||
document for more information.
|
||||
|
||||
* Sample configuration files are available for many common printers.
|
||||
Check the [config directory](../config/) for a list.
|
||||
Check the
|
||||
[config directory](https://github.com/KevinOConnor/klipper/tree/master/config/)
|
||||
for a list.
|
||||
|
||||
To get started with Klipper, read the [installation](Installation.md)
|
||||
guide.
|
||||
@@ -127,20 +129,25 @@ Step Benchmarks
|
||||
Below are the results of stepper performance tests. The numbers shown
|
||||
represent total number of steps per second on the micro-controller.
|
||||
|
||||
| Micro-controller | Fastest step rate | 3 steppers active |
|
||||
| --------------------------- | ----------------- | ----------------- |
|
||||
| 16Mhz AVR | 151K | 100K |
|
||||
| 20Mhz AVR | 189K | 125K |
|
||||
| Arduino Zero (ARM SAMD21) | 234K | 217K |
|
||||
| STM32F103 | 333K | 300K |
|
||||
| Arduino Due (ARM SAM3X8E) | 410K | 397K |
|
||||
| Smoothieboard (ARM LPC1768) | 487K | 487K |
|
||||
| Smoothieboard (ARM LPC1769) | 584K | 584K |
|
||||
| SAM4E8E ARM | 638K | 638K |
|
||||
| Beaglebone PRU | 680K | 680K |
|
||||
| Micro-controller | Fastest step rate | 3 steppers active |
|
||||
| ------------------------------- | ----------------- | ----------------- |
|
||||
| 16Mhz AVR | 154K | 102K |
|
||||
| 20Mhz AVR | 192K | 127K |
|
||||
| Arduino Zero (SAMD21) | 234K | 217K |
|
||||
| "Blue Pill" (STM32F103) | 387K | 360K |
|
||||
| Arduino Due (SAM3X8E) | 438K | 438K |
|
||||
| Duet2 Maestro (SAM4S8C) | 564K | 564K |
|
||||
| Smoothieboard (LPC1768) | 574K | 574K |
|
||||
| Smoothieboard (LPC1769) | 661K | 661K |
|
||||
| Beaglebone PRU | 680K | 680K |
|
||||
| Duet2 Wifi/Eth (SAM4E8E) | 686K | 686K |
|
||||
| Adafruit Metro M4 (SAMD51) | 733K | 694K |
|
||||
| BigTreeTech SKR Pro (STM32F407) | 922K | 711K |
|
||||
|
||||
On AVR platforms, the highest achievable step rate is with just one
|
||||
stepper stepping. On the STM32F103, Arduino Zero, and Due, the highest
|
||||
step rate is with two simultaneous steppers stepping. On the PRU,
|
||||
SAM4E8E, and LPC176x the highest step rate is with three simultaneous
|
||||
steppers.
|
||||
stepper stepping. On the SAMD21 and STM32F103 the highest step rate is
|
||||
with two simultaneous steppers stepping. On the SAM3X8E, SAM4S8C,
|
||||
SAM4E8E, LPC176x, and PRU the highest step rate is with three
|
||||
simultaneous steppers. On the SAMD51 and STM32F4 the highest step rate
|
||||
is with four simultaneous steppers. (Further details on the benchmarks
|
||||
are available in the [Benchmarks document](Benchmarks.md).)
|
||||
@@ -42,9 +42,9 @@ possible G-Code command. Instead, Klipper prefers human readable
|
||||
|
||||
If one requires a less common G-Code command then it may be possible
|
||||
to implement it with a custom Klipper gcode_macro (see
|
||||
[example-extras.cfg](../config/example-extras.cfg) for details). For
|
||||
example, one might use this to implement: `G10`, `G11`, `G12`, `G29`,
|
||||
`G30`, `G31`, `M42`, `M80`, `M81`, etc.
|
||||
[example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
for details). For example, one might use this to implement: `G10`,
|
||||
`G11`, `G12`, `G29`, `G30`, `G31`, `M42`, `M80`, `M81`, etc.
|
||||
|
||||
## G-Code SD card commands
|
||||
|
||||
@@ -90,15 +90,37 @@ The following standard commands are supported:
|
||||
- `GET_POSITION`: Return information on the current location of the
|
||||
toolhead.
|
||||
- `SET_GCODE_OFFSET [X=<pos>|X_ADJUST=<adjust>]
|
||||
[Y=<pos>|Y_ADJUST=<adjust>] [Z=<pos>|Z_ADJUST=<adjust>]`: Set a
|
||||
positional offset to apply to future G-Code commands. This is
|
||||
commonly used to virtually change the Z bed offset or to set nozzle
|
||||
XY offsets when switching extruders. For example, if
|
||||
"SET_GCODE_OFFSET Z=0.2" is sent, then future G-Code moves will
|
||||
have 0.2mm added to their Z height. If the X_ADJUST style parameters
|
||||
are used, then the adjustment will be added to any existing offset
|
||||
(eg, "SET_GCODE_OFFSET Z=-0.2" followed by "SET_GCODE_OFFSET
|
||||
Z_ADJUST=0.3" would result in a total Z offset of 0.1).
|
||||
[Y=<pos>|Y_ADJUST=<adjust>] [Z=<pos>|Z_ADJUST=<adjust>]
|
||||
[MOVE=1 [MOVE_SPEED=<speed>]]`: Set a positional offset to apply to
|
||||
future G-Code commands. This is commonly used to virtually change
|
||||
the Z bed offset or to set nozzle XY offsets when switching
|
||||
extruders. For example, if "SET_GCODE_OFFSET Z=0.2" is sent, then
|
||||
future G-Code moves will have 0.2mm added to their Z height. If the
|
||||
X_ADJUST style parameters are used, then the adjustment will be
|
||||
added to any existing offset (eg, "SET_GCODE_OFFSET Z=-0.2" followed
|
||||
by "SET_GCODE_OFFSET Z_ADJUST=0.3" would result in a total Z offset
|
||||
of 0.1). If "MOVE=1" is specified then a toolhead move will be
|
||||
issued to apply the given offset (otherwise the offset will take
|
||||
effect on the next absolute G-Code move that specifies the given
|
||||
axis). If "MOVE_SPEED" is specified then the toolhead move will be
|
||||
performed with the given speed (in mm/s); otherwise the toolhead
|
||||
move will use the last specified G-Code speed.
|
||||
- `SAVE_GCODE_STATE [NAME=<state_name>]`: Save the current
|
||||
g-code coordinate parsing state. Saving and restoring the g-code
|
||||
state is useful in scripts and macros. This command saves the
|
||||
current g-code absolute coordinate mode (G90/G91), absolute extrude
|
||||
mode (M82/M83), origin (G92), offset (SET_GCODE_OFFSET), speed
|
||||
override (M220), extruder override (M221), move speed, current XYZ
|
||||
position, and relative extruder "E" position. If NAME is provided it
|
||||
allows one to name the saved state to the given string. If NAME is
|
||||
not provided it defaults to "default".
|
||||
- `RESTORE_GCODE_STATE [NAME=<state_name>]
|
||||
[MOVE=1 [MOVE_SPEED=<speed>]]`: Restore a state previously saved via
|
||||
SAVE_GCODE_STATE. If "MOVE=1" is specified then a toolhead move will
|
||||
be issued to move back to the previous XYZ position. If "MOVE_SPEED"
|
||||
is specified then the toolhead move will be performed with the given
|
||||
speed (in mm/s); otherwise the toolhead move will use the restored
|
||||
g-code speed.
|
||||
- `PID_CALIBRATE HEATER=<config_name> TARGET=<temperature>
|
||||
[WRITE_FILE=1]`: Perform a PID calibration test. The specified
|
||||
heater will be enabled until the specified target temperature is
|
||||
@@ -111,6 +133,9 @@ The following standard commands are supported:
|
||||
[ACCEL_TO_DECEL=<value>] [SQUARE_CORNER_VELOCITY=<value>]`: Modify
|
||||
the printer's velocity limits. Note that one may only set values
|
||||
less than or equal to the limits specified in the config file.
|
||||
- `SET_HEATER_TEMPERATURE HEATER=<heater_name> [TARGET=<target_temperature>]`:
|
||||
Sets the target temperature for a heater. If a target temperature is
|
||||
not supplied, the target is 0.
|
||||
- `SET_PRESSURE_ADVANCE [EXTRUDER=<config_name>] [ADVANCE=<pressure_advance>]
|
||||
[ADVANCE_LOOKAHEAD_TIME=<pressure_advance_lookahead_time>]`:
|
||||
Set pressure advance parameters. If EXTRUDER is not specified, it
|
||||
@@ -118,6 +143,33 @@ The following standard commands are supported:
|
||||
- `STEPPER_BUZZ STEPPER=<config_name>`: Move the given stepper forward
|
||||
one mm and then backward one mm, repeated 10 times. This is a
|
||||
diagnostic tool to help verify stepper connectivity.
|
||||
- `MANUAL_PROBE [SPEED=<speed>]`: Run a helper script useful for
|
||||
measuring the height of the nozzle at a given location. If SPEED is
|
||||
specified, it sets the speed of TESTZ commands (the default is
|
||||
5mm/s). During a manual probe, the following additional commands are
|
||||
available:
|
||||
- `ACCEPT`: This command accepts the current Z position and
|
||||
concludes the manual probing tool.
|
||||
- `ABORT`: This command terminates the manual probing tool.
|
||||
- `TESTZ Z=<value>`: This command moves the nozzle up or down by the
|
||||
amount specified in "value". For example, `TESTZ Z=-.1` would move
|
||||
the nozzle down .1mm while `TESTZ Z=.1` would move the nozzle up
|
||||
.1mm. The value may also be `+`, `-`, `++`, or `--` to move the
|
||||
nozzle up or down an amount relative to previous attempts.
|
||||
- `Z_ENDSTOP_CALIBRATE [SPEED=<speed>]`: Run a helper script useful
|
||||
for calibrating a Z position_endstop config setting. See the
|
||||
MANUAL_PROBE command for details on the parameters and the
|
||||
additional commands available while the tool is active.
|
||||
- `TUNING_TOWER COMMAND=<command> PARAMETER=<name> START=<value>
|
||||
FACTOR=<value> [BAND=<value>]`: A tool for tuning a parameter on
|
||||
each Z height during a print. The tool will run the given COMMAND
|
||||
with the given PARAMETER assigned to the value using the formula
|
||||
`value = start + factor * z_height`. If BAND is provided then the
|
||||
adjustment will only be made every BAND millimeters of z height - in
|
||||
that case the formula used is `value = start + factor *
|
||||
((floor(z_height / band) + .5) * band)`.
|
||||
- `SET_IDLE_TIMEOUT [TIMEOUT=<timeout>]`: Allows the user to set the
|
||||
idle timeout (in seconds).
|
||||
- `RESTART`: This will cause the host software to reload its config
|
||||
and perform an internal reset. This command will not clear error
|
||||
state from the micro-controller (see FIRMWARE_RESTART) nor will it
|
||||
@@ -132,12 +184,33 @@ The following standard commands are supported:
|
||||
- `STATUS`: Report the Klipper host software status.
|
||||
- `HELP`: Report the list of available extended G-Code commands.
|
||||
|
||||
## G-Code Macro Commands
|
||||
|
||||
The following command is available when a "gcode_macro" config section
|
||||
is enabled:
|
||||
- `SET_GCODE_VARIABLE MACRO=<macro_name> VARIABLE=<name>
|
||||
VALUE=<value>`: This command allows one to change the value of a
|
||||
gcode_macro variable at run-time. The provided VALUE is parsed as a
|
||||
Python literal.
|
||||
|
||||
## Custom Pin Commands
|
||||
|
||||
The following command is available when an "output_pin" config section
|
||||
is enabled:
|
||||
- `SET_PIN PIN=config_name VALUE=<value>`
|
||||
|
||||
## Neopixel and Dotstar Commands
|
||||
|
||||
The following command is available when "neopixel" or "dotstar" config
|
||||
sections are enabled:
|
||||
- `SET_LED LED=<config_name> INDEX=<index> RED=<value> GREEN=<value>
|
||||
BLUE=<value>`: This sets the LED output. Each color <value> must be
|
||||
between 0.0 and 1.0. If multiple LED chips are daisy-chained then
|
||||
one may specify INDEX to alter the color of just the given chip (1
|
||||
for the first chip, 2 for the second, etc.). If INDEX is not
|
||||
provided then all LEDs in the daisy-chain will be set to the
|
||||
provided color.
|
||||
|
||||
## Servo Commands
|
||||
|
||||
The following commands are available when a "servo" config section is
|
||||
@@ -145,13 +218,50 @@ enabled:
|
||||
- `SET_SERVO SERVO=config_name [WIDTH=<seconds>] [ENABLE=<0|1>]`
|
||||
- `SET_SERVO SERVO=config_name [ANGLE=<degrees>] [ENABLE=<0|1>]`
|
||||
|
||||
## Manual stepper Commands
|
||||
|
||||
The following command is available when a "manual_stepper" config
|
||||
section is enabled:
|
||||
- `MANUAL_STEPPER STEPPER=config_name [ENABLE=[0|1]]
|
||||
[SET_POSITION=<pos>] [SPEED=<speed>] [ACCEL=<accel>]
|
||||
[MOVE=<pos> [STOP_ON_ENDSTOP=1]]`: This command will alter the state
|
||||
of the stepper. Use the ENABLE parameter to enable/disable the
|
||||
stepper. Use the SET_POSITION parameter to force the stepper to
|
||||
think it is at the given position. Use the MOVE parameter to request
|
||||
a movement to the given position. If SPEED and/or ACCEL is specified
|
||||
then the given values will be used instead of the defaults specified
|
||||
in the config file. If an ACCEL of zero is specified then no
|
||||
acceleration will be preformed. If STOP_ON_ENDSTOP is specified then
|
||||
the move will end early should the endstop report as triggered (use
|
||||
STOP_ON_ENDSTOP=-1 to stop early should the endstop report not
|
||||
triggered).
|
||||
|
||||
## Probe
|
||||
|
||||
The following commands are available when a "probe" config section is
|
||||
enabled:
|
||||
- `PROBE`: Move the nozzle downwards until the probe triggers.
|
||||
- `PROBE [PROBE_SPEED=<mm/s>] [SAMPLES=<count>]
|
||||
[SAMPLE_RETRACT_DIST=<mm>] [SAMPLES_TOLERANCE=<mm>]
|
||||
[SAMPLES_TOLERANCE_RETRIES=<count>]
|
||||
[SAMPLES_RESULT=median|average]`: Move the nozzle downwards until
|
||||
the probe triggers. If any of the optional parameters are provided
|
||||
they override their equivalent setting in the probe config section
|
||||
(see
|
||||
[example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
for details).
|
||||
- `QUERY_PROBE`: Report the current status of the probe ("triggered"
|
||||
or "open").
|
||||
- `PROBE_ACCURACY [PROBE_SPEED=<mm/s>] [SAMPLES=<count>]
|
||||
[SAMPLE_RETRACT_DIST=<mm>]`: Calculate the maximum, minimum,
|
||||
average, median, and standard deviation of multiple probe
|
||||
samples. By default, 10 SAMPLES are taken. Otherwise the optional
|
||||
parameters default to their equivalent setting in the probe config
|
||||
section.
|
||||
- `PROBE_CALIBRATE [SPEED=<speed>] [<probe_parameter>=<value>]`: Run a
|
||||
helper script useful for calibrating the probe's z_offset. See the
|
||||
PROBE command for details on the optional probe parameters. See the
|
||||
MANUAL_PROBE command for details on the SPEED parameter and the
|
||||
additional commands available while the tool is active.
|
||||
|
||||
## BLTouch
|
||||
|
||||
@@ -161,16 +271,19 @@ enabled:
|
||||
BLTouch. It may be useful for debugging. Available commands are:
|
||||
pin_down, touch_mode, pin_up, self_test, reset.
|
||||
|
||||
See [Working with the BL-Touch](BLTouch.md) for more details.
|
||||
|
||||
## Delta Calibration
|
||||
|
||||
The following commands are available when the "delta_calibrate" config
|
||||
section is enabled:
|
||||
- `DELTA_CALIBRATE [METHOD=manual]`: This command will probe seven
|
||||
points on the bed and recommend updated endstop positions, tower
|
||||
angles, and radius.
|
||||
- `NEXT`: If manual bed probing is enabled, then one can use this
|
||||
command to move to the next probing point during a DELTA_CALIBRATE
|
||||
operation.
|
||||
- `DELTA_CALIBRATE [METHOD=manual] [<probe_parameter>=<value>]`: This
|
||||
command will probe seven points on the bed and recommend updated
|
||||
endstop positions, tower angles, and radius. See the PROBE command
|
||||
for details on the optional probe parameters. If METHOD=manual is
|
||||
specified then the manual probing tool is activated - see the
|
||||
MANUAL_PROBE command above for details on the additional commands
|
||||
available while this tool is active.
|
||||
- `DELTA_ANALYZE`: This command is used during enhanced delta
|
||||
calibration. See [Delta Calibrate](Delta_Calibrate.md) for details.
|
||||
|
||||
@@ -178,24 +291,26 @@ section is enabled:
|
||||
|
||||
The following commands are available when the "bed_tilt" config
|
||||
section is enabled:
|
||||
- `BED_TILT_CALIBRATE [METHOD=manual]`: This command will probe the
|
||||
points specified in the config and then recommend updated x and y
|
||||
tilt adjustments.
|
||||
- `NEXT`: If manual bed probing is enabled, then one can use this
|
||||
command to move to the next probing point during a
|
||||
BED_TILT_CALIBRATE operation.
|
||||
- `BED_TILT_CALIBRATE [METHOD=manual] [<probe_parameter>=<value>]`:
|
||||
This command will probe the points specified in the config and then
|
||||
recommend updated x and y tilt adjustments. See the PROBE command
|
||||
for details on the optional probe parameters. If METHOD=manual is
|
||||
specified then the manual probing tool is activated - see the
|
||||
MANUAL_PROBE command above for details on the additional commands
|
||||
available while this tool is active.
|
||||
|
||||
## Mesh Bed Leveling
|
||||
|
||||
The following commands are available when the "bed_mesh" config
|
||||
section is enabled:
|
||||
- `BED_MESH_CALIBRATE [METHOD=manual]`: This command probes the bed
|
||||
using generated points specified by the parameters in the
|
||||
config. After probing, a mesh is generated and z-movement is
|
||||
adjusted according to the mesh.
|
||||
- `NEXT`: If manual bed probing is enabled, then one can use this
|
||||
command to move to the next probing point during a
|
||||
BED_MESH_CALIBRATE operation.
|
||||
- `BED_MESH_CALIBRATE [METHOD=manual] [<probe_parameter>=<value>]`:
|
||||
This command probes the bed using generated points specified by the
|
||||
parameters in the config. After probing, a mesh is generated and
|
||||
z-movement is adjusted according to the mesh. See the PROBE command
|
||||
for details on the optional probe parameters. If METHOD=manual is
|
||||
specified then the manual probing tool is activated - see the
|
||||
MANUAL_PROBE command above for details on the additional commands
|
||||
available while this tool is active.
|
||||
- `BED_MESH_OUTPUT`: This command outputs the current probed z values
|
||||
and current mesh values to the terminal.
|
||||
- `BED_MESH_MAP`: This command probes the bed in a similar fashion
|
||||
@@ -216,13 +331,36 @@ section is enabled:
|
||||
REMOVE operations have been run the SAVE_CONFIG gcode must be run
|
||||
to make the changes to peristent memory permanent.
|
||||
|
||||
## Bed Screws Helper
|
||||
|
||||
The following commands are available when the "bed_screws" config
|
||||
section is enabled:
|
||||
- `BED_SCREWS_ADJUST`: This command will invoke the bed screws
|
||||
adjustment tool. It will command the nozzle to different locations
|
||||
(as defined in the config file) and allow one to make adjustments to
|
||||
the bed screws so that the bed is a constant distance from the
|
||||
nozzle.
|
||||
|
||||
## Bed Screws Tilt adjust Helper
|
||||
|
||||
The following commands are available when the "screws_tilt_adjust"
|
||||
config section is enabled:
|
||||
- `SCREWS_TILT_CALCULATE [<probe_parameter>=<value>]`: This command
|
||||
will invoke the bed screws adjustment tool. It will command the
|
||||
nozzle to different locations (as defined in the config file)
|
||||
probing the z height and calculate the number of knob turns to
|
||||
adjust the bed level. See the PROBE command for details on the
|
||||
optional probe parameters.
|
||||
IMPORTANT: You MUST always do a G28 before using this command.
|
||||
|
||||
## Z Tilt
|
||||
|
||||
The following commands are available when the "z_tilt" config section
|
||||
is enabled:
|
||||
- `Z_TILT_ADJUST`: This command will probe the points specified in the
|
||||
config and then make independent adjustments to each Z stepper to
|
||||
compensate for tilt.
|
||||
- `Z_TILT_ADJUST [<probe_parameter>=<value>]`: This command will probe
|
||||
the points specified in the config and then make independent
|
||||
adjustments to each Z stepper to compensate for tilt. See the PROBE
|
||||
command for details on the optional probe parameters.
|
||||
|
||||
## Dual Carriages
|
||||
|
||||
@@ -232,12 +370,24 @@ section is enabled:
|
||||
carriage. It is typically invoked from the activate_gcode and
|
||||
deactivate_gcode fields in a multiple extruder configuration.
|
||||
|
||||
## TMC2130
|
||||
## TMC2130, TMC2660, TMC2208, TMC2209 and TMC5160
|
||||
|
||||
The following command is available when the "tmc2130" config section
|
||||
is enabled:
|
||||
- `DUMP_TMC STEPPER=<name>`: This command will read the TMC2130 driver
|
||||
The following commands are available when any of the "tmcXXXX" config sections is enabled:
|
||||
- `DUMP_TMC STEPPER=<name>`: This command will read the TMC driver
|
||||
registers and report their values.
|
||||
- `INIT_TMC STEPPER=<name>`: This command will intitialize the TMC
|
||||
registers. Needed to re-enable the driver if power to the chip is
|
||||
turned off then back on.
|
||||
- `SET_TMC_CURRENT STEPPER=<name> CURRENT=<amps> HOLDCURRENT=<amps>`:
|
||||
This will adjust the run and hold currents of the TMC driver.
|
||||
HOLDCURRENT is applicable only to the tmc2130, tmc2208, tmc2209 and tmc5160.
|
||||
- `SET_TMC_FIELD STEPPER=<name> FIELD=<field> VALUE=<value>`: This will
|
||||
alter the value of the specified register field of the TMC driver.
|
||||
This command is intended for low-level diagnostics and debugging only because
|
||||
changing the fields during run-time can lead to undesired and potentially
|
||||
dangerous behavior of your printer. Permanent changes should be made using
|
||||
the printer configuration file instead. No sanity checks are performed for the
|
||||
given values.
|
||||
|
||||
## Endstop adjustments by stepper phase
|
||||
|
||||
@@ -254,16 +404,18 @@ section is enabled:
|
||||
|
||||
The following commands are available when the "force_move" config
|
||||
section is enabled:
|
||||
- `FORCE_MOVE STEPPER=<config_name> DISTANCE=<value>
|
||||
VELOCITY=<value>`: This command will forcibly move the given stepper
|
||||
- `FORCE_MOVE STEPPER=<config_name> DISTANCE=<value> VELOCITY=<value>
|
||||
[ACCEL=<value>]`: This command will forcibly move the given stepper
|
||||
the given distance (in mm) at the given constant velocity (in
|
||||
mm/s). No acceleration is performed; no boundary checks are
|
||||
performed; no kinematic updates are made; other parallel steppers on
|
||||
an axis will not be moved. Use caution as an incorrect command could
|
||||
cause damage! Using this command will almost certainly place the
|
||||
low-level kinematics in an incorrect state; issue a G28 afterwards
|
||||
to reset the kinematics. This command is intended for low-level
|
||||
diagnostics and debugging.
|
||||
mm/s). If ACCEL is specified and is greater than zero, then the
|
||||
given acceleration (in mm/s^2) will be used; otherwise no
|
||||
acceleration is performed. No boundary checks are performed; no
|
||||
kinematic updates are made; other parallel steppers on an axis will
|
||||
not be moved. Use caution as an incorrect command could cause
|
||||
damage! Using this command will almost certainly place the low-level
|
||||
kinematics in an incorrect state; issue a G28 afterwards to reset
|
||||
the kinematics. This command is intended for low-level diagnostics
|
||||
and debugging.
|
||||
- `SET_KINEMATIC_POSITION [X=<value>] [Y=<value>] [Z=<value>]`: Force
|
||||
the low-level kinematic code to believe the toolhead is at the given
|
||||
cartesian position. This is a diagnostic and debugging command; use
|
||||
@@ -273,3 +425,108 @@ section is enabled:
|
||||
may lead to internal software errors. This command may invalidate
|
||||
future boundary checks; issue a G28 afterwards to reset the
|
||||
kinematics.
|
||||
|
||||
## Send message (respond) to host
|
||||
|
||||
The following commands are availabe when the "respond" config section is
|
||||
enabled.
|
||||
- `M118 <message>`: echo the message prepended with the configured default
|
||||
prefix (or `echo: ` if no prefix is configured).
|
||||
- `RESPOND MSG="<message>"`: echo the message prepended with the configured default
|
||||
prefix (or `echo: ` if no prefix is configured).
|
||||
- `RESPOND TYPE=echo MSG="<message>"`: echo the message prepended with `echo: `.
|
||||
- `RESPOND TYPE=command MSG="<message>"`: echo the message prepended with `// `.
|
||||
Octopint can be configured to respond to these messages (e.g.
|
||||
`RESPOND TYPE=command MSG=action:pause`).
|
||||
- `RESPOND TYPE=error MSG="<message>"`: echo the message prepended with `!! `.
|
||||
- `RESPOND PREFIX=<prefix> MSG="<message>"`: echo the message prepended with `<prefix>`
|
||||
(The `PREFIX` parameter will take priority over the `TYPE` parameter)
|
||||
|
||||
## Pause Resume
|
||||
|
||||
The following commands are available when the "pause_resume" config section
|
||||
is enabled:
|
||||
- `PAUSE`: Pauses the current print. The current position is captured for
|
||||
restoration upon resume.
|
||||
- `RESUME [VELOCITY=<value>]`: Resumes the print from a pause, first restoring
|
||||
the previously captured position. The VELOCITY parameter determines the speed
|
||||
at which the tool should return to the original captured position.
|
||||
- `CLEAR_PAUSE`: Clears the current paused state without resuming the print.
|
||||
This is useful if one decides to cancel a print after a PAUSE. It is recommended
|
||||
to add this to your start gcode to make sure the paused state is fresh for each
|
||||
print.
|
||||
|
||||
## Filament Sensor
|
||||
|
||||
The following command is available when the "filament_switch_sensor" config
|
||||
section is enabled.
|
||||
- `QUERY_FILAMENT_SENSOR SENSOR=<sensor_name>`: Queries the current status of
|
||||
the filament sensor. The data displayed on the terminal will depend on the
|
||||
sensor type defined in the confguration.
|
||||
- `SET_FILAMENT_SENSOR SENSOR=<sensor_name> ENABLE=[0|1]`: Sets the
|
||||
filament sensor on/off. If ENABLE is set to 0, the filament sensor will
|
||||
be disabled, if set to 1 it is enabled.
|
||||
|
||||
## Firmware Retraction
|
||||
|
||||
The following commands are available when the "firmware_retraction"
|
||||
config section is enabled. These commands allow you to utilise the
|
||||
firmware retraction feature available in many slicers, to reduce
|
||||
stringing during non-extrusion moves from one part of the print to
|
||||
another. Appropriately configuring pressure advance reduces the length
|
||||
of retraction required.
|
||||
- `SET_RETRACTION [RETRACT_LENGTH=<mm>] [RETRACT_SPEED=<mm/s>]
|
||||
[UNRETRACT_EXTRA_LENGTH=<mm>] [UNRETRACT_SPEED=<mm/s>]`: Adjust the
|
||||
parameters used by firmware retraction. RETRACT_LENGTH determines
|
||||
the length of filament to retract and unretract. The speed of
|
||||
retraction is adjusted via RETRACT_SPEED, and is typically set
|
||||
relatively high. The speed of unretraction is adjusted via
|
||||
UNRETRACT_SPEED, and is not particularly critical, although often
|
||||
lower than RETRACT_SPEED. In some cases it is useful to add a small
|
||||
amount of additional length on unretraction, and this is set via
|
||||
UNRETRACT_EXTRA_LENGTH. SET_RETRACTION is commonly set as part of
|
||||
slicer per-filament configuration, as different filaments require
|
||||
different parameter settings.
|
||||
- `GET_RETRACTION`: Queries the current parameters used by firmware
|
||||
retraction and displays them on the terminal.
|
||||
- `G10`: Retracts the extruder using the currently configured
|
||||
parameters.
|
||||
- `G11`: Unretracts the extruder using the currently configured
|
||||
parameters.
|
||||
|
||||
## Skew Correction
|
||||
|
||||
The following commands are available when the "skew_correction" config
|
||||
section is enabled.
|
||||
- `SET_SKEW [XY=<ac_length,bd_length,ad_length>] [XZ=<ac,bd,ad>]
|
||||
[YZ=<ac,bd,ad>] [CLEAR=<0|1>]`: Configures the [skew_correction] module
|
||||
with measurements (in mm) taken from a calibration print. One may
|
||||
enter measurements for any combination of planes, planes not entered will
|
||||
retain their current value. If `CLEAR=1` is entered then all skew
|
||||
correction will be disabled.
|
||||
- `GET_CURRENT_SKEW`: Reports the current printer skew for each plane in
|
||||
both radians and degrees. The skew is calculated based on parameters
|
||||
provided via the `SET_SKEW` gcode.
|
||||
- `CALC_MEASURED_SKEW [AC=<ac_length>] [BD=<bd_length>] [AD=<ad_length>]`:
|
||||
Calculates and reports the skew (in radians and degrees) based on a
|
||||
measured print. This can be useful for determining the printer's current
|
||||
skew after correction has been applied. It may also be useful before
|
||||
correction is applied to determine if skew correction is necessary. See
|
||||
skew_correction.md for details on skew calibration objects and
|
||||
measurements.
|
||||
- `SKEW_PROFILE [LOAD=<name>] [SAVE=<name>] [REMOVE=<name>]`: Profile
|
||||
management for skew_correction. LOAD will restore skew state from the
|
||||
profile matching the supplied name. SAVE will save the current skew state
|
||||
to a profile matching the supplied name. Remove will delete the profile
|
||||
matching the supplied name from persistent memory. Note that after SAVE
|
||||
or REMOVE operations have been run the SAVE_CONFIG gcode must be run
|
||||
to make the changes to peristent memory permanent.
|
||||
|
||||
## Delayed GCode
|
||||
|
||||
The following command is enabled if a [delayed_gcode] config section has
|
||||
been enabled:
|
||||
- `UPDATE_DELAYED_GCODE [ID=<name>] [DURATION=<seconds>]`: Updates the
|
||||
delay duration for the identified [delayed_gcode] and starts the timer
|
||||
for gcode execution. A value of 0 will cancel a pending delayed gcode
|
||||
from executing.
|
||||
@@ -5,19 +5,20 @@ Raspberry Pi 2 or Raspberry Pi 3 computer be used as the host machine
|
||||
[FAQ](FAQ.md#can-i-run-klipper-on-something-other-than-a-raspberry-pi-3)
|
||||
for other machines).
|
||||
|
||||
Klipper currently supports Atmel ATmega based micro-controllers,
|
||||
Arduino Due (Atmel SAM3x8e ARM micro-controller), Smoothieboard (ARM
|
||||
LPC176x), and [Beaglebone PRU](beaglebone.md) based printers.
|
||||
Klipper currently supports a number of Atmel ATmega based
|
||||
micro-controllers,
|
||||
[ARM based micro-controllers](Features.md#step-benchmarks), and
|
||||
[Beaglebone PRU](beaglebone.md) based printers.
|
||||
|
||||
Prepping an OS image
|
||||
====================
|
||||
|
||||
Start by installing [OctoPi](https://github.com/guysoft/OctoPi) on the
|
||||
Raspberry Pi computer. Use OctoPi v0.14.0 or later - see the
|
||||
Raspberry Pi computer. Use OctoPi v0.16.0 or later - see the
|
||||
[octopi releases](https://github.com/guysoft/OctoPi/releases) for
|
||||
release information. One should verify that OctoPi boots and that the
|
||||
OctoPrint web server works. After connecting to the OctoPrint web
|
||||
page, follow the prompt to upgrade OctoPrint to v1.3.7 or later.
|
||||
page, follow the prompt to upgrade OctoPrint to v1.3.11 or later.
|
||||
|
||||
After installing OctoPi and upgrading OctoPrint, it will be necessary
|
||||
to ssh into the target machine to run a handful of system commands. If
|
||||
@@ -50,43 +51,65 @@ make menuconfig
|
||||
```
|
||||
|
||||
Select the appropriate micro-controller and review any other options
|
||||
provided. For boards with serial ports, the recommended baud rate is
|
||||
250000 (see the [FAQ](FAQ.md#how-do-i-change-the-serial-baud-rate)
|
||||
before changing). Once configured, run:
|
||||
provided. Once configured, run:
|
||||
|
||||
```
|
||||
make
|
||||
```
|
||||
|
||||
Finally, for common micro-controllers, the code can be flashed with:
|
||||
It is necessary to determine the serial port connected to the
|
||||
micro-controller. For micro-controllers that connect via USB, run the
|
||||
following:
|
||||
|
||||
```
|
||||
ls /dev/serial/by-id/*
|
||||
```
|
||||
|
||||
It should report something similar to the following:
|
||||
|
||||
```
|
||||
/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
```
|
||||
|
||||
It's common for each printer to have its own unique serial port name.
|
||||
This unique name will be used when flashing the micro-controller. It's
|
||||
possible there may be multiple lines in the above output - if so,
|
||||
choose the line corresponding to the micro-controller (see the
|
||||
[FAQ](FAQ.md#wheres-my-serial-port) for more information).
|
||||
|
||||
For common micro-controllers, the code can be flashed with something
|
||||
similar to:
|
||||
|
||||
```
|
||||
sudo service klipper stop
|
||||
make flash FLASH_DEVICE=/dev/ttyACM0
|
||||
make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
sudo service klipper start
|
||||
```
|
||||
|
||||
Be sure to update the FLASH_DEVICE with the printer's unique serial
|
||||
port name.
|
||||
|
||||
When flashing for the first time, make sure that OctoPrint is not
|
||||
connected directly to the printer (from the OctoPrint web page, under
|
||||
the "Connection" section, click "Disconnect"). The most common
|
||||
communication device is **/dev/ttyACM0** - see the
|
||||
[FAQ](FAQ.md#wheres-my-serial-port) for other possibilities.
|
||||
the "Connection" section, click "Disconnect").
|
||||
|
||||
Configuring OctoPrint to use Klipper
|
||||
====================================
|
||||
|
||||
The OctoPrint web server needs to be configured to communicate with
|
||||
the Klipper host software. Using a web browser, login to the OctoPrint
|
||||
web page, and navigate to the Settings tab. Then configure the
|
||||
following items:
|
||||
web page and then configure the following items:
|
||||
|
||||
Under "Serial Connection" in "Additional serial ports" add
|
||||
Navigate to the Settings tab (the wrench icon at the top of the
|
||||
page). Under "Serial Connection" in "Additional serial ports" add
|
||||
"/tmp/printer". Then click "Save".
|
||||
|
||||
Enter the Settings tab again and under "Serial Connection" change the
|
||||
"Serial Port" setting to "/tmp/printer". Navigate to the "Behavior"
|
||||
sub-tab and select the "Cancel any ongoing prints but stay connected
|
||||
to the printer" option. Click "Save".
|
||||
"Serial Port" setting to "/tmp/printer".
|
||||
|
||||
In the Settings tab, navigate to the "Behavior" sub-tab and select the
|
||||
"Cancel any ongoing prints but stay connected to the printer"
|
||||
option. Click "Save".
|
||||
|
||||
From the main page, under the "Connection" section (at the top left of
|
||||
the page) make sure the "Serial Port" is set to "/tmp/printer" and
|
||||
@@ -104,11 +127,11 @@ Configuring Klipper
|
||||
|
||||
The Klipper configuration is stored in a text file on the Raspberry
|
||||
Pi. Take a look at the example config files in the
|
||||
[config directory](../config/). The
|
||||
[example.cfg](../config/example.cfg) file contains documentation on
|
||||
command parameters and it can also be used as an initial config file
|
||||
template. However, for most printers, one of the other config files
|
||||
may be a more concise starting point.
|
||||
[config directory](https://github.com/KevinOConnor/klipper/tree/master/config/). The
|
||||
[example.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example.cfg)
|
||||
file contains documentation on command parameters and it can also be
|
||||
used as an initial config file template. However, for most printers,
|
||||
one of the other config files may be a more concise starting point.
|
||||
|
||||
Arguably the easiest way to update the Klipper configuration file is
|
||||
to use a desktop editor that supports editing files over the "scp"
|
||||
@@ -129,6 +152,17 @@ nano ~/printer.cfg
|
||||
Make sure to review and update each setting that is appropriate for
|
||||
the hardware.
|
||||
|
||||
It's common for each printer to have its own unique name for the
|
||||
micro-controller. The name may change after flashing Klipper, so rerun
|
||||
the `ls /dev/serial/by-id/*` command and then update the config file
|
||||
with the unique name. For example, update the `[mcu]` section to look
|
||||
something similar to:
|
||||
|
||||
```
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
|
||||
```
|
||||
|
||||
After creating and editing the file it will be necessary to issue a
|
||||
"restart" command in the OctoPrint web terminal to load the config. A
|
||||
"status" command will report the printer is ready if the Klipper
|
||||
|
||||
@@ -12,7 +12,11 @@ format of commands and their transmission. The commands here are
|
||||
described using their "printf" style syntax - for those unfamiliar
|
||||
with that format, just note that where a '%...' sequence is seen it
|
||||
should be replaced with an actual integer. For example, a description
|
||||
with "count=%c" could be replaced with the text "count=10".
|
||||
with "count=%c" could be replaced with the text "count=10". Note that
|
||||
parameters that are considered "enumerations" (see the above protocol
|
||||
document) take a string value which is automatically converted to an
|
||||
integer value for the micro-controller. This is common with parameters
|
||||
named "pin" (or that have a suffix of "_pin").
|
||||
|
||||
Startup Commands
|
||||
================
|
||||
@@ -23,14 +27,6 @@ commands available for that purpose. Unlike most micro-controller
|
||||
commands, these commands run as soon as they are received and they do
|
||||
not require any particular setup.
|
||||
|
||||
Several of these commands will take a "pin=%u" parameter. The
|
||||
low-level micro-controller software uses integer encodings of the
|
||||
hardware pin numbers, but to make things more readable the host will
|
||||
translate human readable pin names (eg, "PA3") to their equivalent
|
||||
integer encodings. By convention, any parameter named "pin" or that
|
||||
has a "_pin" suffix will use pin name translation by the
|
||||
host.
|
||||
|
||||
Common startup commands:
|
||||
|
||||
* `set_digital_out pin=%u value=%c` : This command immediately
|
||||
@@ -144,9 +140,9 @@ This section lists some commonly used config commands.
|
||||
special hardware support (other than the ability to configure the
|
||||
pin as a digital output GPIO). Because the output switching is
|
||||
implemented in the micro-controller software, it is recommended that
|
||||
the cycle_ticks parameter correspond to a time of 10ms or
|
||||
greater. See the description of the 'set_pwm_out' and
|
||||
'config_digital_out' commands for parameter description.
|
||||
the cycle_ticks parameter correspond to a time of 10ms or greater.
|
||||
See the description of the 'set_pwm_out' and 'config_digital_out'
|
||||
commands for parameter description.
|
||||
|
||||
* `config_analog_in oid=%c pin=%u` : This command is used to configure
|
||||
a pin in analog input sampling mode. Once configured, the pin can be
|
||||
@@ -165,15 +161,15 @@ This section lists some commonly used config commands.
|
||||
clock ticks since the last step. It is used as a check on the
|
||||
maximum stepper velocity that a stepper may have before stopping.
|
||||
|
||||
* `config_end_stop oid=%c pin=%c pull_up=%c stepper_count=%c` : This
|
||||
* `config_endstop oid=%c pin=%c pull_up=%c stepper_count=%c` : This
|
||||
command creates an internal "endstop" object. It is used to specify
|
||||
the endstop pins and to enable "homing" operations (see the
|
||||
end_stop_home command below). The command will configure the
|
||||
endstop_home command below). The command will configure the
|
||||
specified pin in digital input mode. The 'pull_up' parameter
|
||||
determines whether hardware provided pullup resistors for the pin
|
||||
(if available) will be enabled. The 'stepper_count' parameter
|
||||
specifies the maximum number of steppers that this endstop may need
|
||||
to halt during a homing operation (see end_stop_home below).
|
||||
to halt during a homing operation (see endstop_home below).
|
||||
|
||||
* `config_spi oid=%c bus=%u pin=%u mode=%u rate=%u shutdown_msg=%*s` :
|
||||
This command creates an internal SPI object. It is used with
|
||||
@@ -207,7 +203,7 @@ only of interest to developers looking to gain insight into Klipper.
|
||||
a hardware PWM output pin. See the 'schedule_digital_out' and
|
||||
'config_pwm_out' commands for more info.
|
||||
|
||||
* `schedule_soft_pwm_out oid=%c clock=%u value=%hu` : Schedules a
|
||||
* `schedule_soft_pwm_out oid=%c clock=%u on_ticks=%u` : Schedules a
|
||||
change to a software PWM output pin. See the 'schedule_digital_out'
|
||||
and 'config_soft_pwm_out' commands for more info.
|
||||
|
||||
@@ -264,9 +260,9 @@ Stepper commands
|
||||
number of steps generated with dir=1 minus the total number of steps
|
||||
generated with dir=0.
|
||||
|
||||
* `end_stop_home oid=%c clock=%u sample_ticks=%u sample_count=%c
|
||||
* `endstop_home oid=%c clock=%u sample_ticks=%u sample_count=%c
|
||||
rest_ticks=%u pin_value=%c` : This command is used during stepper
|
||||
"homing" operations. To use this command a 'config_end_stop' command
|
||||
"homing" operations. To use this command a 'config_endstop' command
|
||||
with the same 'oid' parameter must have been issued during
|
||||
micro-controller configuration. When this command is invoked, the
|
||||
micro-controller will sample the endstop pin every 'rest_ticks'
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
This document describes tools for calibrating a Z endstop and for
|
||||
performing adjustments to bed leveling screws.
|
||||
|
||||
# Calibrating a Z endstop
|
||||
|
||||
An accurate Z endstop position is critical to obtaining high quality
|
||||
prints.
|
||||
|
||||
Note, though, the accuracy of the Z endstop switch itself can be a
|
||||
limiting factor. If one is using Trinamic stepper motor drivers then
|
||||
consider enabling [endstop phase](Endstop_Phase.md) detection to
|
||||
improve the accuracy of the switch.
|
||||
|
||||
To perform a Z endstop calibration, home the printer, move the head to
|
||||
a position near the center of the bed, navigate to the OctoPrint
|
||||
terminal tab, and run:
|
||||
```
|
||||
Z_ENDSTOP_CALIBRATE
|
||||
```
|
||||
Then follow the steps described at
|
||||
["the paper test"](Bed_Level.md#the-paper-test) to determine the
|
||||
actual distance between the nozzle and bed at the given location. Once
|
||||
those steps are complete one can `ACCEPT` the position and save the
|
||||
results to the config file with:
|
||||
```
|
||||
SAVE_CONFIG
|
||||
```
|
||||
|
||||
It's preferable to use a Z endstop switch on the opposite end of the Z
|
||||
axis from the bed. (Homing away from the bed is more robust as then it
|
||||
is generally always safe to home the Z.) However, if one must home
|
||||
towards the bed it is recommended to adjust the endstop so that it
|
||||
triggers a small distance (eg, .5mm) above the bed. Almost all endstop
|
||||
switches can safely be depressed a small distance beyond their trigger
|
||||
point. When this is done, one should find that the
|
||||
`Z_ENDSTOP_CALIBRATE` command reports a small positive value (eg,
|
||||
.5mm) for the Z position_endstop. Triggering the endstop while it is
|
||||
still some distance from the bed reduces the risk of inadvertent bed
|
||||
crashes.
|
||||
|
||||
Some printers have the ability to manually adjust the location of the
|
||||
physical endstop switch. However, it's recommended to perform Z
|
||||
endstop positioning in software with Klipper - once the physical
|
||||
location of the endstop is in a convenient location, one can make any
|
||||
further adjustments by running Z_ENDSTOP_CALIBRATE or by manually
|
||||
updating the Z position_endstop in the configuration file.
|
||||
|
||||
# Adjusting bed leveling screws
|
||||
|
||||
The secret to getting good bed leveling with bed leveling screws is to
|
||||
utilize the printer's high precision motion system during the bed
|
||||
leveling process itself. This is done by commanding the nozzle to a
|
||||
position near each bed screw and then adjusting that screw until the
|
||||
bed is a set distance from the nozzle. Klipper has a tool to assist
|
||||
with this. In order to use the tool it is necessary to specify each
|
||||
screw XY location.
|
||||
|
||||
This is done by creating a `[bed_screws]` config section. For example,
|
||||
it might look something similar to:
|
||||
```
|
||||
[bed_screws]
|
||||
screw1: 100,50
|
||||
screw2: 100,150
|
||||
screw3: 150,100
|
||||
```
|
||||
|
||||
If a bed screw is under the bed, then specify the XY position directly
|
||||
above the screw. If the screw is outside the bed then specify an XY
|
||||
position closest to the screw that is still within the range of the
|
||||
bed.
|
||||
|
||||
Once the config file is ready, run `RESTART` to load that config, and
|
||||
then one can start the tool by running:
|
||||
```
|
||||
BED_SCREWS_ADJUST
|
||||
```
|
||||
|
||||
This tool will move the printer's nozzle to each screw XY location and
|
||||
then move the nozzle to a Z=0 height. At this point one can use the
|
||||
"paper test" to adjust the bed screw directly under the nozzle. See
|
||||
the information described in
|
||||
["the paper test"](Bed_Level.md#the-paper-test), but adjust the bed
|
||||
screw instead of commanding the nozzle to different heights. Adjust
|
||||
the bed screw until there is a small amount of friction when pushing
|
||||
the paper back and forth.
|
||||
|
||||
Once the screw is adjusted so that a small amount of friction is felt,
|
||||
run either the `ACCEPT` or `ADJUSTED` command. Use the `ADJUSTED`
|
||||
command if the bed screw needed an adjustment (typically anything more
|
||||
than about 1/8th of a turn of the screw). Use the `ACCEPT` command if
|
||||
no significant adjustment is necessary. Both commands will cause the
|
||||
tool to proceed to the next screw. (When an `ADJUSTED` command is
|
||||
used, the tool will schedule an additional cycle of bed screw
|
||||
adjustments; the tool completes successfully when all bed screws are
|
||||
verified to not require any significant adjustments.) One can use the
|
||||
`ABORT` command to exit the tool early.
|
||||
|
||||
This system works best when the printer has a flat printing surface
|
||||
(such as glass) and has straight rails. Upon successful completion of
|
||||
the bed leveling tool the bed should be ready for printing.
|
||||
|
||||
## Fine grained bed screw adjustments
|
||||
|
||||
If the printer uses three bed screws and all three screws are under
|
||||
the bed, then it may be possible to perform a second "high precision"
|
||||
bed leveling step. This is done by commanding the nozzle to locations
|
||||
where the bed moves a larger distance with each bed screw adjustment.
|
||||
|
||||
For example, consider a bed with screws at locations A, B, and C:
|
||||
|
||||

|
||||
|
||||
For each adjustment made to the bed screw at location C, the bed will
|
||||
swing along a pendulum defined by the remaining two bed screws (shown
|
||||
here as a green line). In this situation, each adjustment to the bed
|
||||
screw at C will move the bed at position D a further amount than
|
||||
directly at C. It is thus possible to make an improved C screw
|
||||
adjustment when the nozzle is at position D.
|
||||
|
||||
To enable this feature, one would determine the additional nozzle
|
||||
coordinates and add them to the config file. For example, it might
|
||||
look like:
|
||||
```
|
||||
[bed_screws]
|
||||
screw1: 100,50
|
||||
screw1_fine_adjust: 0,0
|
||||
screw2: 100,150
|
||||
screw2_fine_adjust: 300,300
|
||||
screw3: 150,100
|
||||
screw3_fine_adjust: 0,100
|
||||
```
|
||||
|
||||
When this feature is enabled, the `BED_SCREWS_ADJUST` tool will first
|
||||
prompt for coarse adjustments directly above each screw position, and
|
||||
once those are accepted, it will prompt for fine adjustments at the
|
||||
additional locations. Continue to use `ACCEPT` and `ADJUSTED` at each
|
||||
position.
|
||||
|
||||
# Adjusting bed leveling screws using the bed probe
|
||||
|
||||
This is another way to calibrate the bed level using the bed probe. To
|
||||
use it you must have a Z probe (BL Touch, Inductive sensor, etc).
|
||||
|
||||
To enable this feature, one would determine the nozzle coordinates
|
||||
near the screws and add them to the config file. For example, it might
|
||||
look like:
|
||||
|
||||
```
|
||||
[screws_tilt_adjust]
|
||||
screw1: -5,30
|
||||
screw1_name: front left screw
|
||||
screw2: 155,30
|
||||
screw2_name: front right screw
|
||||
screw3: 155,190
|
||||
screw3_name: rear right screw
|
||||
screw4: -5,190
|
||||
screw4_name: rear left screw
|
||||
horizontal_move_z: 10.
|
||||
speed: 50.
|
||||
screw_thread: CW-M3
|
||||
```
|
||||
|
||||
The screw1 is always the reference point for the others, so the system
|
||||
assumes that screw1 is in the correct height. Always run `G28` first
|
||||
and then run `SCREWS_TILT_CALCULATE` - it should produce output
|
||||
similar to:
|
||||
```
|
||||
Send: G28
|
||||
Recv: ok
|
||||
Send: SCREWS_TILT_CALCULATE
|
||||
Recv: // front left screw (Base): X -5.0, Y 30.0, Z 2.48750
|
||||
Recv: // front right screw : X 155.0, Y 30.0, Z 2.36000 : Adjust -> CW 01:15
|
||||
Recv: // rear right screw : X 155.0, Y 190.0, Z 2.71500 : Adjust -> CCW 00:50
|
||||
Recv: // read left screw : X -5.0, Y 190.0, Z 2.47250 : Adjust -> CW 00:02
|
||||
Recv: ok
|
||||
```
|
||||
This means that:
|
||||
|
||||
- front left screw is the reference point you must not change it.
|
||||
- front right screw must be turned clockwise 1 full turn and a quarter turn
|
||||
- rear right screw must be turned counter-clockwise 50 minutes
|
||||
- read left screw must be turned clockwise 2 minutes (not need it's ok)
|
||||
|
||||
Repeat the process several times until you get a good level bed -
|
||||
normally when all adjustments are below 6 minutes.
|
||||
@@ -1,48 +1,71 @@
|
||||
Welcome to the Klipper documentation. There are two parts to Klipper -
|
||||
code that runs on a micro-controller and code that runs on a "host"
|
||||
machine. The host code is intended to run on a low-cost
|
||||
general-purpose machine such as a Raspberry Pi, while the
|
||||
micro-controller code is intended to run on commodity micro-controller
|
||||
chips. Read [features](Features.md) for reasons to use Klipper. See
|
||||
[installation](Installation.md) to get started with Klipper. See
|
||||
[config checks](Config_checks.md) for a guide to verify basic pin
|
||||
settings in the config file.
|
||||
Welcome to the Klipper documentation. If new to Klipper, start with
|
||||
the [features](Features.md) and [installation](Installation.md)
|
||||
documents.
|
||||
|
||||
The Klipper configuration is stored in a simple text file on the host
|
||||
machine. The [config/example.cfg](../config/example.cfg) file serves
|
||||
as a reference for the config file. See the [Slicers](Slicers.md)
|
||||
document for information on configuring a slicer with Klipper. See the
|
||||
[Endstop Phase](Endstop_Phase.md) document for information on
|
||||
Klipper's "stepper phase adjusted endstop" system. See the
|
||||
[Delta Calibrate](Delta_Calibrate.md) document for information on
|
||||
calibrating delta printers. The
|
||||
[Pressure Advance](Pressure_Advance.md) document contains information
|
||||
on tuning the pressure advance config.
|
||||
# Overview information
|
||||
|
||||
The [kinematics](Kinematics.md) document provides some technical
|
||||
details on how Klipper implements motion. The [FAQ](FAQ.md) answers
|
||||
some common questions. The [G-Codes](G-Codes.md) document lists
|
||||
currently supported run-time commands.
|
||||
- [Features](Features.md): A high-level list of features in Klipper.
|
||||
- [FAQ](FAQ.md): Frequently asked questions.
|
||||
- [Releases](Releases.md): The history of Klipper releases.
|
||||
- [Config changes](Config_Changes.md): Recent software changes that
|
||||
may require users to update their printer config file.
|
||||
- [Contact](Contact.md): Information on bug reporting and general
|
||||
communication with the Klipper developers.
|
||||
|
||||
The history of Klipper releases is available at
|
||||
[releases](Releases.md). See [contact](Contact.md) for information on
|
||||
bug reporting and general communication with the developers.
|
||||
# Configuration and Tuning Guides
|
||||
|
||||
Developer Documentation
|
||||
=======================
|
||||
- [Installation](Installation.md): Guide to installing Klipper.
|
||||
- [config/example.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example.cfg)
|
||||
a reference for the config file.
|
||||
- [Config checks](Config_checks.md): Verify basic pin settings in the
|
||||
config file.
|
||||
- [Bed level](Bed_Level.md): Information on "bed leveling" in Klipper.
|
||||
- [Delta calibrate](Delta_Calibrate.md): Calibration of delta
|
||||
kinematics.
|
||||
- [Probe calibrate](Probe_Calibrate.md): Calibration of automatic Z
|
||||
probes.
|
||||
- [BL-Touch](BLTouch.md): Configure a "BL-Touch" Z probe.
|
||||
- [Manual level](Manual_Level.md): Calibration of Z endstops (and
|
||||
similar).
|
||||
- [Endstop phase](Endstop_Phase.md): Stepper assisted Z endstop
|
||||
positioning.
|
||||
- [Pressure advance](Pressure_Advance.md): Calibrate extruder
|
||||
pressure.
|
||||
- [Slicers](Slicers.md): Configure "slicer" software for Klipper.
|
||||
- [Command Templates](Command_Templates.md): G-Code macros and
|
||||
conditional evaluation.
|
||||
- [Sensorless homing](Sensorless_Homing.md): Configuring tmc2130
|
||||
sensorless homing.
|
||||
- [Skew correction](skew_correction.md): Adjustments for axes not
|
||||
perfectly square.
|
||||
- [G-Codes](G-Codes.md): Information on commands supported by Klipper.
|
||||
|
||||
There are also several documents available for developers interested
|
||||
in understanding how Klipper works. Start with the
|
||||
[code overview](Code_Overview.md) document - it provides information
|
||||
on the structure and layout of the Klipper code. See the
|
||||
[contributing](CONTRIBUTING.md) document to submit improvements to Klipper.
|
||||
# Developer Documentation
|
||||
|
||||
See [protocol](Protocol.md) for information on the low-level messaging
|
||||
protocol between host and micro-controller. See also
|
||||
[MCU commands](MCU_Commands.md) for a description of low-level
|
||||
commands implemented in the micro-controller software.
|
||||
- [Code overview](Code_Overview.md): Developers should read this
|
||||
first.
|
||||
- [Kinematics](Kinematics.md): Technical details on how Klipper
|
||||
implements motion.
|
||||
- [Protocol](Protocol.md): Information on the low-level messaging
|
||||
protocol between host and micro-controller.
|
||||
- [MCU commands](MCU_Commands.md): A description of low-level commands
|
||||
implemented in the micro-controller software.
|
||||
- [Debugging](Debugging.md): Information on how to test and debug
|
||||
Klipper.
|
||||
- [Benchmarks](Benchmarks.md): Information on the Klipper benchmark
|
||||
method.
|
||||
- [Contributing](CONTRIBUTING.md): Information on how to submit
|
||||
improvements to Klipper.
|
||||
- [Packaging](Packaging.md): Information on building OS packages.
|
||||
|
||||
See [debugging](Debugging.md) for information on how to test and debug
|
||||
Klipper. See [stm32f1](stm32f1.md) for information on the STM32F1
|
||||
micro-controller port. See [bootloaders](Bootloaders.md) for developer
|
||||
information on micro-controller flashing.
|
||||
# Device Specific Documents
|
||||
|
||||
- [Bootloaders](Bootloaders.md): Developer information on
|
||||
micro-controller flashing.
|
||||
- [stm32f1](stm32f1.md): Information on the STM32F1 micro-controller
|
||||
port.
|
||||
- [Beaglebone](beaglebone.md): Details for running Klipper on the
|
||||
Beaglebone PRU.
|
||||
- [stm32f0](stm32f0_CAN.md): Information on the STM32F0 micro-controller
|
||||
port.
|
||||
- [TSL1401CL filament width sensor](TSL1401CL_Filament_Width_Sensor.md)
|
||||
@@ -0,0 +1,185 @@
|
||||
This document describes the method for calibrating the x, y, and z
|
||||
offsets of an "automatic z probe" in Klipper. This is useful for users
|
||||
that have a `[probe]` or `[bltouch]` section in their config file.
|
||||
|
||||
# Calibrating probe X and Y offsets
|
||||
|
||||
To calibrate the X and Y offset, navigate to the OctoPrint "Control"
|
||||
tab, home the printer, and then use the OctoPrint jogging buttons to
|
||||
move the head to a position near the center of the bed.
|
||||
|
||||
Place a piece of blue painters tape (or similar) on the bed underneath
|
||||
the probe. Navigate to the OctoPrint "Terminal" tab and issue a PROBE
|
||||
command:
|
||||
```
|
||||
PROBE
|
||||
```
|
||||
Place a mark on the tape directly under where the probe is (or use a
|
||||
similar method to note the location on the bed).
|
||||
|
||||
Issue a `GET_POSITION` command and record the toolhead XY location
|
||||
reported by that command. For example if one sees:
|
||||
```
|
||||
Recv: // toolhead: X:46.500000 Y:27.000000 Z:15.000000 E:0.000000
|
||||
```
|
||||
then one would record a probe X position of 46.5 and probe Y position
|
||||
of 27.
|
||||
|
||||
After recording the probe position, issue a series of G1 commands
|
||||
until the nozzle is directly above the mark on the bed. For example,
|
||||
one might issue:
|
||||
```
|
||||
G1 F300 X57 Y30 Z15
|
||||
```
|
||||
to move the nozzle to an X position of 57 and Y of 30. Once one finds
|
||||
the position directly above the mark, use the `GET_POSITION` command
|
||||
to report that position. This is the nozzle position.
|
||||
|
||||
The x_offset is then the `nozzle_x_position - probe_x_position` and
|
||||
y_offset is similarly the `nozzle_y_position - probe_y_position`.
|
||||
Update the printer.cfg file with the given values, remove the
|
||||
tape/marks from the bed, and then issue a `RESTART` command so that
|
||||
the new values take effect.
|
||||
|
||||
# Calibrating probe Z offset
|
||||
|
||||
Providing an accurate probe z_offset is critical to obtaining high
|
||||
quality prints. The z_offset is the distance between the nozzle and
|
||||
bed when the probe triggers. The Klipper `PROBE_CALIBRATE` tool can be
|
||||
used to obtain this value - it will run an automatic probe to measure
|
||||
the probe's Z trigger position and then start a manual probe to obtain
|
||||
the nozzle Z height. The probe z_offset will then be calculated from
|
||||
these measurements.
|
||||
|
||||
Start by homing the printer and then move the head to a position near
|
||||
the center of the bed. Navigate to the OctoPrint terminal tab and run
|
||||
the `PROBE_CALIBRATE` command to start the tool.
|
||||
|
||||
This tool will perform an automatic probe, then lift the head, move
|
||||
the nozzle over the location of the probe point, and start the manual
|
||||
probe tool. If the nozzle does not move to a position above the
|
||||
automatic probe point, then `ABORT` the manual probe tool and perform
|
||||
the XY probe offset calibration described above.
|
||||
|
||||
Once the manual probe tool starts, follow the steps described at
|
||||
["the paper test"](Bed_Level.md#the-paper-test)) to determine the
|
||||
actual distance between the nozzle and bed at the given location. Once
|
||||
those steps are complete one can `ACCEPT` the position and save the
|
||||
results to the config file with:
|
||||
```
|
||||
SAVE_CONFIG
|
||||
```
|
||||
|
||||
# Repeatability check
|
||||
|
||||
After calibrating the probe X, Y, and Z offsets it is a good idea to
|
||||
verify that the probe provides repeatable results. Start by homing the
|
||||
printer and then move the head to a position near the center of the
|
||||
bed. Navigate to the OctoPrint terminal tab and run the
|
||||
`PROBE_ACCURACY` command.
|
||||
|
||||
This command will run the probe ten times and produce output similar
|
||||
to the following:
|
||||
```
|
||||
Recv: // probe accuracy: at X:0.000 Y:0.000 Z:10.000
|
||||
Recv: // and read 10 times with speed of 5 mm/s
|
||||
Recv: // probe at -0.003,0.005 is z=2.506948
|
||||
Recv: // probe at -0.003,0.005 is z=2.519448
|
||||
Recv: // probe at -0.003,0.005 is z=2.519448
|
||||
Recv: // probe at -0.003,0.005 is z=2.506948
|
||||
Recv: // probe at -0.003,0.005 is z=2.519448
|
||||
Recv: // probe at -0.003,0.005 is z=2.519448
|
||||
Recv: // probe at -0.003,0.005 is z=2.506948
|
||||
Recv: // probe at -0.003,0.005 is z=2.506948
|
||||
Recv: // probe at -0.003,0.005 is z=2.519448
|
||||
Recv: // probe at -0.003,0.005 is z=2.506948
|
||||
Recv: // probe accuracy results: maximum 2.519448, minimum 2.506948, range 0.012500, average 2.513198, median 2.513198, standard deviation 0.006250
|
||||
```
|
||||
|
||||
Ideally the tool will report an identical maximum and minimum value.
|
||||
(That is, ideally the probe obtains an identical result on all ten
|
||||
probes.) However, it's normal for the minimum and maximum values
|
||||
to differ by one Z step_distance or up to 5 microns (.005mm).
|
||||
The distance between the minimum and the maximum value is called the
|
||||
range. So, in the above example, since the printer uses a
|
||||
Z step_distance of .0125, a range of 0.012500 would be considered normal.
|
||||
|
||||
If the results of the test show a range value that is greater than
|
||||
25 microns (.025mm) then the probe does not have sufficient accuracy
|
||||
for typical bed leveling procedures. It may be possible to tune the
|
||||
probe speed and/or probe start height to improve the repeatability
|
||||
of the probe. The `PROBE_ACCURACY` command allows one to run tests
|
||||
with different parameters to see their impact - see
|
||||
the [G-Codes document](G-Codes.md) for further details. If the probe
|
||||
generally obtains repeatable results but has an occasional outlier,
|
||||
then it may be possible to account for that by using multiple samples
|
||||
on each probe - read the description of the probe `samples` config
|
||||
parameters in the
|
||||
[example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
file for more details.
|
||||
|
||||
If new probe speed, samples count, or other settings are needed, then
|
||||
update the printer.cfg file and issue a `RESTART` command. If so, it
|
||||
is a good idea to
|
||||
[calibrate the z_offset](#calibrating-probe-z-offset) again. If
|
||||
repeatable results can not be obtained then don't use the probe for
|
||||
bed leveling. Klipper has several manual probing tools that can be
|
||||
used instead - see the [Bed Level document](Bed_Level.md) for further
|
||||
details.
|
||||
|
||||
# Location Bias Check
|
||||
|
||||
Some probes can have a systemic bias that corrupts the results of the
|
||||
probe at certain toolhead locations. For example, if the probe mount
|
||||
tilts slightly when moving along the Y axis then it could result in
|
||||
the probe reporting biased results at different Y positions.
|
||||
|
||||
This is a common issue with probes on delta printers, however it can
|
||||
occur on all printers.
|
||||
|
||||
One can check for a location bias by using the `PROBE_CALIBRATE`
|
||||
command to measuring the probe z_offset at various X and Y
|
||||
locations. Ideally, the probe z_offset would be a constant value at
|
||||
every printer location.
|
||||
|
||||
For delta printers, try measuring the z_offset at a position near the
|
||||
A tower, at a position near the B tower, and at a position near the C
|
||||
tower. For cartesian, corexy, and similar printers, try measuring the
|
||||
z_offset at positions near the four corners of the bed.
|
||||
|
||||
Before starting this test, first calibrate the probe X, Y, and Z
|
||||
offsets as described at the beginning of this document. Then home the
|
||||
printer and navigate to the first XY position. Follow the steps at
|
||||
[calibrating probe Z offset](#calibrating-probe-z-offset) to run the
|
||||
`PROBE_CALIBRATE` command, `TESTZ` commands, and `ACCEPT` command, but
|
||||
do not run `SAVE_CONFIG`. Note the reported z_offset found. Then
|
||||
navigate to the other XY positions, repeat these `PROBE_CALIBRATE`
|
||||
steps, and note the reported z_offset.
|
||||
|
||||
If the difference between the minimum reported z_offset and the
|
||||
maximum reported z_offset is greater than 25 microns (.025mm) then the
|
||||
probe is not suitable for typical bed leveling procedures. See the
|
||||
[Bed Level document](Bed_Level.md) for manual probe alternatives.
|
||||
|
||||
# Temperature Bias
|
||||
|
||||
Many probes have a systemic bias when probing at different
|
||||
temperatures. For example, the probe may consistently trigger at a
|
||||
lower height when the probe is at a higher temperature.
|
||||
|
||||
It is recommended to run the bed leveling tools at a consistent
|
||||
temperature to account for this bias. For example, either always run
|
||||
the tools when the printer is at room temperature, or always run the
|
||||
tools after the printer has obtained a consistent print temperature.
|
||||
In either case, it is a good idea to wait several minutes after the
|
||||
desired temperature is reached, so that the printer apparatus is
|
||||
consistently at the desired temperature.
|
||||
|
||||
To check for a temperature bias, start with the printer at room
|
||||
temperature and then home the printer, move the head to a position
|
||||
near the center of the bed, and run the `PROBE_ACCURACY` command. Note
|
||||
the results. Then, without homing or disabling the stepper motors,
|
||||
heat the printer nozzle and bed to printing temperature, and run the
|
||||
`PROBE_ACCURACY` command again. Ideally, the command will report
|
||||
identical results. As above, if the probe does have a temperature bias
|
||||
then be careful to always use the probe at a consistent temperature.
|
||||
@@ -6,8 +6,8 @@ then processed at the receiving side. An example series of commands in
|
||||
uncompressed human-readable format might look like:
|
||||
|
||||
```
|
||||
set_digital_out pin=86 value=1
|
||||
set_digital_out pin=85 value=1
|
||||
set_digital_out pin=PA3 value=1
|
||||
set_digital_out pin=PA7 value=1
|
||||
schedule_digital_out oid=8 clock=4000000 value=0
|
||||
queue_step oid=7 interval=7458 count=10 add=331
|
||||
queue_step oid=7 interval=11717 count=4 add=1281
|
||||
@@ -44,26 +44,26 @@ The micro-controller software declares a "command" by using the
|
||||
DECL_COMMAND() macro in the C code. For example:
|
||||
|
||||
```
|
||||
DECL_COMMAND(command_set_digital_out, "set_digital_out pin=%u value=%c");
|
||||
DECL_COMMAND(command_update_digital_out, "update_digital_out oid=%c value=%c");
|
||||
```
|
||||
|
||||
The above declares a command named "set_digital_out". This allows the
|
||||
host to "invoke" this command which would cause the
|
||||
command_set_digital_out() C function to be executed in the
|
||||
The above declares a command named "update_digital_out". This allows
|
||||
the host to "invoke" this command which would cause the
|
||||
command_update_digital_out() C function to be executed in the
|
||||
micro-controller. The above also indicates that the command takes two
|
||||
integer parameters. When the command_set_digital_out() C code is
|
||||
integer parameters. When the command_update_digital_out() C code is
|
||||
executed, it will be passed an array containing these two integers -
|
||||
the first corresponding to the 'pin' and the second corresponding to
|
||||
the first corresponding to the 'oid' and the second corresponding to
|
||||
the 'value'.
|
||||
|
||||
In general, the parameters are described with printf() style syntax
|
||||
(eg, "%u"). The formatting directly corresponds to the human-readable
|
||||
view of commands (eg, "set_digital_out pin=86 value=1"). In the above
|
||||
example, "value=" is a parameter name and "%c" indicates the parameter
|
||||
is an integer. Internally, the parameter name is only used as
|
||||
documentation. In this example, the "%c" is also used as documentation
|
||||
to indicate the expected integer is 1 byte in size (the declared
|
||||
integer size does not impact the parsing or encoding).
|
||||
view of commands (eg, "update_digital_out oid=7 value=1"). In the
|
||||
above example, "value=" is a parameter name and "%c" indicates the
|
||||
parameter is an integer. Internally, the parameter name is only used
|
||||
as documentation. In this example, the "%c" is also used as
|
||||
documentation to indicate the expected integer is 1 byte in size (the
|
||||
declared integer size does not impact the parsing or encoding).
|
||||
|
||||
The micro-controller build will collect all commands declared with
|
||||
DECL_COMMAND(), determine their parameters, and arrange for them to be
|
||||
@@ -99,7 +99,7 @@ invoked, and it may invoke sendf() at any time from a task handler.
|
||||
|
||||
### Output responses
|
||||
|
||||
To simplify debugging, there is also has an output() C function. For
|
||||
To simplify debugging, there is also an output() C function. For
|
||||
example:
|
||||
|
||||
```
|
||||
@@ -109,17 +109,46 @@ output("The value of %u is %s with size %u.", x, buf, buf_len);
|
||||
The output() function is similar in usage to printf() - it is intended
|
||||
to generate and format arbitrary messages for human consumption.
|
||||
|
||||
Declaring enumerations
|
||||
----------------------
|
||||
|
||||
Enumerations allow the host code to use string identifiers for
|
||||
parameters that the micro-controller handles as integers. They are
|
||||
declared in the micro-controller code - for example:
|
||||
|
||||
```
|
||||
DECL_ENUMERATION("spi_bus", "spi", 0);
|
||||
|
||||
DECL_ENUMERATION_RANGE("pin", "PC0", 16, 8);
|
||||
```
|
||||
|
||||
If the first example, the DECL_ENUMERATION() macro defines an
|
||||
enumeration for any command/response message with a parameter name of
|
||||
"spi_bus" or parameter name with a suffix of "_spi_bus". For those
|
||||
parameters the string "spi" is a valid value and it will be
|
||||
transmitted with an integer value of zero.
|
||||
|
||||
It's also possible to declare an enumeration range. In the second
|
||||
example, a "pin" parameter (or any parameter with a suffix of "_pin")
|
||||
would accept PC0, PC1, PC2, ..., PC7 as valid values. The strings will
|
||||
be transmitted with integers 16, 17, 18, ..., 23.
|
||||
|
||||
Declaring constants
|
||||
-------------------
|
||||
|
||||
Constants can also be exported. For example, the following:
|
||||
|
||||
```
|
||||
DECL_CONSTANT(SERIAL_BAUD, 250000);
|
||||
DECL_CONSTANT("SERIAL_BAUD", 250000);
|
||||
```
|
||||
|
||||
would export a constant named "SERIAL_BAUD" with a value of 250000
|
||||
from the micro-controller to the host.
|
||||
from the micro-controller to the host. It is also possible to declare
|
||||
a constant that is a string - for example:
|
||||
|
||||
```
|
||||
DECL_CONSTANT_STR("MCU", "pru");
|
||||
```
|
||||
|
||||
Low-level message encoding
|
||||
==========================
|
||||
@@ -171,8 +200,8 @@ As an example, the following four commands might be placed in a single
|
||||
message block:
|
||||
|
||||
```
|
||||
set_digital_out pin=86 value=1
|
||||
set_digital_out pin=85 value=0
|
||||
update_digital_out oid=6 value=1
|
||||
update_digital_out oid=5 value=0
|
||||
get_config
|
||||
get_clock
|
||||
```
|
||||
@@ -180,19 +209,20 @@ get_clock
|
||||
and encoded into the following eight VLQ integers:
|
||||
|
||||
```
|
||||
<id_set_digital_out><86><1><id_set_digital_out><85><0><id_get_config><id_get_clock>
|
||||
<id_update_digital_out><6><1><id_update_digital_out><5><0><id_get_config><id_get_clock>
|
||||
```
|
||||
|
||||
In order to encode and parse the message contents, both the host and
|
||||
micro-controller must agree on the command ids and the number of
|
||||
parameters each command has. So, in the above example, both the host
|
||||
and micro-controller would know that "id_set_digital_out" is always
|
||||
and micro-controller would know that "id_update_digital_out" is always
|
||||
followed by two parameters, and "id_get_config" and "id_get_clock"
|
||||
have zero parameters. The host and micro-controller share a "data
|
||||
dictionary" that maps the command descriptions (eg, "set_digital_out
|
||||
pin=%u value=%c") to their integer command-ids. When processing the
|
||||
data, the parser will know to expect a specific number of VLQ encoded
|
||||
parameters following a given command id.
|
||||
dictionary" that maps the command descriptions (eg,
|
||||
"update_digital_out oid=%c value=%c") to their integer
|
||||
command-ids. When processing the data, the parser will know to expect
|
||||
a specific number of VLQ encoded parameters following a given command
|
||||
id.
|
||||
|
||||
The message contents for blocks sent from micro-controller to host
|
||||
follow the same format. The identifiers in these messages are
|
||||
@@ -277,24 +307,9 @@ dictionary. Once all chunks are obtained the host will assemble the
|
||||
chunks, uncompress the data, and parse the contents.
|
||||
|
||||
In addition to information on the communication protocol, the data
|
||||
dictionary also contains the software version, constants (as defined
|
||||
by DECL_CONSTANT), and static strings.
|
||||
|
||||
Static Strings
|
||||
--------------
|
||||
|
||||
To reduce bandwidth the data dictionary also contains a set of static
|
||||
strings known to the micro-controller. This is useful when sending
|
||||
messages from micro-controller to host. For example, if the
|
||||
micro-controller were to run:
|
||||
|
||||
```
|
||||
shutdown("Unable to handle command");
|
||||
```
|
||||
|
||||
The error message would be encoded and sent using a single VLQ. The
|
||||
host uses the data dictionary to resolve VLQ encoded static string ids
|
||||
to their associated human-readable strings.
|
||||
dictionary also contains the software version, enumerations (as
|
||||
defined by DECL_ENUMERATION), and constants (as defined by
|
||||
DECL_CONSTANT).
|
||||
|
||||
Message flow
|
||||
============
|
||||
|
||||
@@ -1,6 +1,47 @@
|
||||
History of Klipper releases. Please see
|
||||
[installation](Installation.md) for information on installing Klipper.
|
||||
|
||||
Klipper 0.8.0
|
||||
=============
|
||||
|
||||
Available on 20191021. Major changes in this release:
|
||||
* New G-Code command template support. G-Code in the config file is
|
||||
now evaluated with the Jinja2 template language.
|
||||
* Improvements to Trinamic stepper drivers:
|
||||
* New support for TMC2209 and TMC5160 drivers.
|
||||
* Improved DUMP_TMC, SET_TMC_CURRENT, and INIT_TMC G-Code commands.
|
||||
* Improved support for TMC UART handling with an analog mux.
|
||||
* Improved homing, probing, and bed leveling support:
|
||||
* New manual_probe, bed_screws, screws_tilt_adjust, skew_correction,
|
||||
safe_z_home modules added.
|
||||
* Enhanced multi-sample probing with median, average, and retry
|
||||
logic.
|
||||
* Improved documentation for BL-Touch, probe calibration, endstop
|
||||
calibration, delta calibration, sensorless homing, and endstop
|
||||
phase calibration.
|
||||
* Improved homing support on a large Z axis.
|
||||
* Many Klipper micro-controller improvements:
|
||||
* Klipper ported to: SAM3X8C, SAM4S8C, SAMD51, STM32F042, STM32F4
|
||||
* New USB CDC driver implementations on SAM3X, SAM4, STM32F4.
|
||||
* Enhanced support for flashing Klipper over USB.
|
||||
* Software SPI support.
|
||||
* Greatly improved temperature filtering on the LPC176x.
|
||||
* Early output pin settings can be configured in the
|
||||
micro-controller.
|
||||
* New website with the Klipper documentation: http://klipper3d.org/
|
||||
* Klipper now has a logo.
|
||||
* Experimental support for polar and "cable winch" kinematics.
|
||||
* The config file can now include other config files.
|
||||
* Many additional modules added: board_pins, controller_fan,
|
||||
delayed_gcode, dotstar, filament_switch_sensor, firmware_retraction,
|
||||
gcode_arcs, gcode_button, heater_generic, manual_stepper, mcp4018,
|
||||
mcp4728, neopixel, pause_resume, respond, temperature_sensor
|
||||
tsl1401cl_filament_width_sensor, tuning_tower
|
||||
* Many additional commands added: RESTORE_GCODE_STATE,
|
||||
SAVE_GCODE_STATE, SET_GCODE_VARIABLE, SET_HEATER_TEMPERATURE,
|
||||
SET_IDLE_TIMEOUT, SET_TEMPERATURE_FAN_TARGET
|
||||
* Several bug fixes and code cleanups.
|
||||
|
||||
Klipper 0.7.0
|
||||
=============
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
# Sensorless Homing
|
||||
Sensorless homing allows to home an axis without the need for a physical limit switch. Instead, the carriage on the axis is moved into the mechanical limit making the stepper motor lose steps. The stepper driver senses the lost steps and indicates this to the controlling MCU (Klipper) by toggling a pin. This information can be used by Klipper as end stop for the axis.
|
||||
|
||||
This guide covers the setup of sensorless homing for the X axis of your (cartesian) printer. However, it works the same with all other axes (that require an end stop). You should configure and tune it for one axis at a time.
|
||||
|
||||
## Prerequisites
|
||||
A few prerequisites are needed to use sensorless homing:
|
||||
|
||||
1. StallGuard capable TMCxxxx stepper driver
|
||||
2. SPI / UART interface of the TMCxxxx wired to MCU (stand-alone mode does not work)
|
||||
3. DIAG1/DIAG pin of TMCxxxx connected to the MCU
|
||||
|
||||
|
||||
## Limitations
|
||||
Be sure that your mechanical components are able to handle the load of the carriage bumping into the limit of the axis repeatedly. Especially spindles (on the Z axis) might generate a lot of force. Homing a Z axis by bumping the nozzle into the printing surface might not be a good idea.
|
||||
|
||||
Further, sensorless homing might not be accurate enough for you printer. While homing X and Y axes on a cartesian machine can work well, homing the Z axis is generally not accurate enough and results in inconsistent first layer height. Homing a delta printer sensorless is not advisable due to missing accuracy.
|
||||
|
||||
Further, the stall detection of the stepper driver is dependant on the mechanical load on the motor, the motor current and the motor temperature (coil resistance).
|
||||
|
||||
Sensorless homing works best at medium motor speeds. For very slow speeds (less than 10 RPM) the motor does not generate significant back EMF and the TMC cannot reliably detect motor stalls. Further, at very high speeds, the back EMF of the motor approaches the supply voltage of the motor, so the TMC cannot detect stalls anymore. It is advised to have a look in the datasheet of your specific TMCs. There you can also find more details on limitations of this setup.
|
||||
|
||||
## Configuration
|
||||
To enable sensorless homing add a section to configure the TMC stepper driver to your `printer.cfg`.
|
||||
|
||||
In this guide we'll be using a TMC2130. The configuration however is simailar to the other TMCs with StallGuard:
|
||||
|
||||
```
|
||||
[tmc2130 stepper_x]
|
||||
cs_pin: # chip select pin of the SPI interface
|
||||
microsteps: # number of microsteps per full step of the motor
|
||||
run_current: # value in amps
|
||||
diag1_pin: ! # pin on the MCU where DIAG1 is connected (active low)
|
||||
driver_SGT: # tuning value for sensorless homing
|
||||
```
|
||||
|
||||
The above snippet configures a TMC2130 for the stepper on the X axis. Make sure to fill in the missing values based on your configuration.
|
||||
|
||||
The `driver_SGT` value describes the threshhold when the driver reports a stall. Values have to be in between -64 (most sensitive) and 64 (least sensitive). On some TMCs like the TMC2209 this value doesn't exist in this form as the hehavior is different to the TMC2130. In the case of the TMC2209 the threshold is defined by the `driver_SGTHRS` value in the config and go from 0 (least sensitive) to 255 (most sensitive). Have a look at the datasheet of your specific TMC to avoid mistakes.
|
||||
|
||||
If you have a CoreXY machine, you can configure one stepper driver for X and the other for Y homing as you would on a cartesian printer. Be aware that Klipper needs both `DIAG1` pins connected to the MCU. It is not sufficient to use only one signal from one of the stepper drivers (as it is possible on e.g. Marlin).
|
||||
|
||||
The `diag1_pin` of the TMC2130 is configured as open-collector pin. This means, the stepper driver pulls the pin low to indicate a stalled motor (active low) and the pin must be inverted by adding a `!` in front of the pin name. Further, you need a pull-up resistor on the connection. If your PCB has no external pull-up, you can enable the internal pull-up of your MCU by adding a `^` in front of the pin name. The resulting line might look like this:
|
||||
|
||||
```
|
||||
diag1_pin: ^!PA1 # DIAG1 connected to PA1, internal pull-up is enabled, signal is active low
|
||||
```
|
||||
|
||||
By configuring the `diag1_pin`, Klipper allows you to use a special virtual end stop for the axis. You can use this instead of a physical end stop pin by changing the `endstop_pin` of the corresponding axis:
|
||||
|
||||
```
|
||||
[stepper_x]
|
||||
...
|
||||
endstop_pin: tmc2130_stepper_x:virtual_endstop # use the virtual end stop generated by the [tmc2130 stepper_x] section of this config file
|
||||
...
|
||||
homing_retract_dist: 0
|
||||
...
|
||||
```
|
||||
|
||||
The name of the virtual end stop pin is derived from the name of the TMC2130 section. The `homing_retract_dist` setting should be set to zero to disable the second homing move as a second pass is not needed, and attempts to do so are error prone.
|
||||
|
||||
ATTENTION: This guide only mentions the mandatory parameters and the ones needed to set up sensorless homing. There are many other options to configure on a TMC2130, make sure to take a look at `config/example-extras.cfg` for all the available options.
|
||||
|
||||
## Testing of SPI/UART communication
|
||||
Now that the stepper driver is configured, let's make sure that Klipper can communicate with the TMC2130 by sending the following extended G-Code command to the printer:
|
||||
|
||||
```
|
||||
DUMP_TMC stepper=stepper_x
|
||||
```
|
||||
|
||||
This command tells Klipper to read a few registers via SPI from the TMC2130. If everything works correctly, the output should look similar to this (in OctoPrint terminal tab):
|
||||
|
||||
```
|
||||
Send: DUMP_TMC stepper=stepper_x
|
||||
Recv: // GCONF: 00000004
|
||||
Recv: // GSTAT: 00000001
|
||||
Recv: // IOIN: 11000078
|
||||
Recv: // TSTEP: 000fffff
|
||||
Recv: // XDIRECT: 00000000
|
||||
Recv: // MSCNT: 00000010
|
||||
Recv: // MSCURACT: 00f60018
|
||||
Recv: // CHOPCONF: 15008384
|
||||
Recv: // DRV_STATUS: 800d0000
|
||||
Recv: // PWM_SCALE: 00000000
|
||||
Recv: // LOST_STEPS: 00000000
|
||||
```
|
||||
|
||||
The actual register values might differ based the configuration of your TMC2130. If the register values are all `ffffffff` or look otherwise bogus (for example, `LOST_STEPS` should be always `00000000` here) make sure that the SPI is wired and configured correctly.
|
||||
|
||||
## Homing and Tuning
|
||||
|
||||
Let's try the first sensorless homing now. It will likely not work as intended. There are three possible outcomes of this experiment:
|
||||
|
||||
1. The axis stops moving before hitting the mechanical limit or does not move at all
|
||||
2. The axis homes correctly (which is unlikely at this point)
|
||||
3. The axis bumps into the mechanical limit and keeps moving while making horrible noise
|
||||
|
||||
If the third outcome happens to you, disable the stepper (by cutting the power or issuing a `M112` emergency stop).
|
||||
|
||||
Ok, now that you know what can happen, let's try it out. Put the carriage somewhere in the middle of the X axis. Home the X axis by sending the following G-Code command to Klipper and observe the outcome:
|
||||
|
||||
```
|
||||
G28 X
|
||||
```
|
||||
|
||||
If the axis stopped early (first outcome), the stepper driver detected a motor stall even though there was none. To trigger stall detection at a higher load, increase the value of `driver_SGT` (for example from 0 to 5). The values can be any interger between `-64` and `63`. The higher the value, the later it triggers stall detection.
|
||||
|
||||
If your axis did not stop (third outcome), the stepper driver was not able to detect the stall, because the load on the motor still seemed reasonable to the driver. To trigger stall detection at a lighter load, decrease the value of `driver_SGT`.
|
||||
|
||||
Even if your axis homed correctly, it might be worth to try a few different values for `driver_SGT`. If you think that it bumps too hard into the mechanical limit, try to decrease the value by 1 or 2.
|
||||
|
||||
At this point, your axis should be able to home based on the stall detection of the TMC2130. Congratulations! You can now proceed with the next axis of your printer.
|
||||
@@ -18,8 +18,9 @@ END_PRINT in the slicer's configuration. Defining these actions in the
|
||||
Klipper configuration may make it easier to tweak the printer's start
|
||||
and end steps as changes do not require re-slicing.
|
||||
|
||||
See the [example-extras.cfg](../config/example-extras.cfg) file for
|
||||
details on defining a gcode_macro.
|
||||
See the
|
||||
[example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
file for details on defining a gcode_macro.
|
||||
|
||||
# Large retraction settings may require tuning Klipper
|
||||
|
||||
@@ -49,6 +50,12 @@ between moves. This is likely to make blobbing worse, not better.
|
||||
In contrast, it is okay (and often helpful) to use a slicer's
|
||||
"retract" setting, "wipe" setting, and/or "wipe on retract" setting.
|
||||
|
||||
# Disable "PreloadVE" on KISSlicer
|
||||
|
||||
If using KISSlicer slicing software then set "PreloadVE" to
|
||||
zero. Consider using Klipper's [pressure advance](Pressure_Advance.md)
|
||||
instead.
|
||||
|
||||
# Disable any "advanced extruder pressure" settings
|
||||
|
||||
Some slicers advertise an "advanced extruder pressure" capability. It
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
This document describes Filament Width Sensor host module. Hardware used for developing this host module is based on TSL1401CL linear sensor array but it can work with any sensor array that has analog output. You can find designs at [thingiverse.com](https://www.thingiverse.com/search?q=filament%20width%20sensor)
|
||||
|
||||
## How does it work?
|
||||
Sensor generates analog output based on calculated filament width. Output voltage always equals to detected filament width (Ex. 1.65v, 1.70v, 3.0v). Host module monitors voltage changes and adjusts extrusion multiplier.
|
||||
|
||||
## Configuration
|
||||
[tsl1401cl_filament_width_sensor]
|
||||
pin: analog5
|
||||
# Analog input pin for sensor output on Ramps board
|
||||
|
||||
default_nominal_filament_diameter: 1.75
|
||||
# This parameter is in millimeters (mm)
|
||||
|
||||
max_difference: 0.2
|
||||
# Maximum allowed filament diameter difference in millimeters (mm)
|
||||
# If difference between nominal filament diameter and sensor output is more
|
||||
# than +- max_difference, extrusion multiplier set back to %100
|
||||
|
||||
measurement_delay 100
|
||||
# The distance from sensor to the melting chamber/hot-end in millimeters (mm).
|
||||
# The filament between the sensor and the hot-end will be treated as the default_nominal_filament_diameter.
|
||||
# Host module works with FIFO logic. It keeps each sensor value and position in
|
||||
# an array and POP them back in correct position.
|
||||
|
||||
Sensor readings done with 10 mm intervals by default. If necessary you are free to change this setting by editing ***MEASUREMENT_INTERVAL_MM*** parameter in **filament_width_sensor.py** file.
|
||||
|
||||
## Commands
|
||||
**QUERY_FILAMENT_WIDTH** - Return the current measured filament width as result
|
||||
**RESET_FILAMENT_WIDTH_SENSOR** – Clear all sensor readings. Can be used after filament change.
|
||||
**DISABLE_FILAMENT_WIDTH_SENSOR** – Turn off the filament width sensor and stop using it to do flow control
|
||||
**ENABLE_FILAMENT_WIDTH_SENSOR** - Turn on the filament width sensor and start using it to do flow control
|
||||
@@ -0,0 +1,4 @@
|
||||
# This is a Jekyll config file that is used by "github pages" to
|
||||
# produce the https://www.klipper3d.org/ website.
|
||||
include: CONTRIBUTING.md
|
||||
google_analytics: UA-138371409-1
|
||||
@@ -0,0 +1,5 @@
|
||||
This directory defines the https://www.klipper3d.org/ website. The
|
||||
site is hosted using "github pages" (which uses Jekyll to
|
||||
automatically convert the markdown files in the docs/ directory to
|
||||
html). In addition to the files in this directory, the docs/CNAME and
|
||||
docs/_config.yml file also control the website generation.
|
||||
@@ -0,0 +1,122 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
{% seo %}
|
||||
|
||||
<!-- Bootstrap css -->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
||||
|
||||
<!-- Fixup markdown code blocks -->
|
||||
<style>
|
||||
.markdown-body pre {
|
||||
background-color: #f6f8fa;
|
||||
line-height: 1.45;
|
||||
overflow: auto;
|
||||
padding: 16px;
|
||||
}
|
||||
.markdown-body code, .markdown-body tt {
|
||||
background-color: rgba(27,31,35,.1);
|
||||
color: inherit;
|
||||
border-radius: 3px;
|
||||
font-size: 85%;
|
||||
margin: 0;
|
||||
padding: .2em .4em;
|
||||
}
|
||||
.markdown-body pre code {
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.markdown-body table td, .markdown-body table th {
|
||||
border: 1px solid #dfe2e5;
|
||||
padding: 6px 13px;
|
||||
}
|
||||
.markdown-body table tr {
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #c6cbd1;
|
||||
}
|
||||
.markdown-body table tr:nth-child(2n) {
|
||||
background-color: #f6f8fa;
|
||||
}
|
||||
.markdown-body table {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Navbar at top of page -->
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-light">
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="img/klipper-logo-small.png" alt="Klipper">
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||
<div class="navbar-nav ml-auto">
|
||||
<a class="nav-item nav-link" href="Overview.html">Documentation</a>
|
||||
<a class="nav-item nav-link" href="https://github.com/KevinOConnor/klipper">Github</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<!-- Sidebar for table of contents -->
|
||||
<nav class="d-none d-md-block col-md-3 bg-light">
|
||||
<ul id="toc" class="px-0" style="list-style: none">
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<!-- Main markdown contents -->
|
||||
<main class="col-md-9 ml-md-auto px-4">
|
||||
<div class="markdown-body" style="max-width: 800px">
|
||||
{{ content }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Google analytics javascript -->
|
||||
{% if site.google_analytics %}
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<!-- Bootstrap / jquery javascript -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
||||
|
||||
<!-- Javascript to automatically add table of contents -->
|
||||
<style>
|
||||
.toc-item {
|
||||
font-size: 80%;
|
||||
line-height: 80%;
|
||||
padding-top: .5em;
|
||||
padding-bottom: .5em;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$('.markdown-body').find('h1, h2, h3, h4, h5, h6').each(function() {
|
||||
var $item = $(this);
|
||||
var $id = $(this).attr('id');
|
||||
var li = $('<li class="toc-item"/>');
|
||||
var a = $('<a/>', {text: $item.text(), href: '#' + $id, title: $item.text()});
|
||||
a.appendTo(li);
|
||||
$('#toc').append(li);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# This file defines the main https://www.klipper3d.org/ page.
|
||||
layout: default
|
||||
---
|
||||
<p class="text-center"><img src="img/klipper-logo.png"/></p>
|
||||
|
||||
<p>Klipper is a 3d-Printer firmware. It combines the power of a general
|
||||
purpose computer with one or more micro-controllers. See the
|
||||
<a href="/Features.html">features</a> document for more information on why you
|
||||
should use Klipper.</p>
|
||||
|
||||
<p>To begin using Klipper start by <a href="/Installation.html">installing</a> it.</p>
|
||||
|
||||
<p>Klipper is Free Software. Read the <a href="/Overview.html">documentation</a> or
|
||||
view
|
||||
<a href="https://github.com/KevinOConnor/klipper">the Klipper code on github</a>.</p>
|
||||
@@ -99,5 +99,6 @@ Unfortunately, the Beaglebone processor can sometimes struggle to run
|
||||
OctoPrint well. Print stalls have been known to occur on complex
|
||||
prints (the printer may move faster than OctoPrint can send movement
|
||||
commands). If this occurs, consider using the "virtual_sdcard" feature
|
||||
(see [config/example-extras.cfg](../config/example-extras.cfg) for
|
||||
details) to print directly from Klipper.
|
||||
(see
|
||||
[config/example-extras.cfg](https://github.com/KevinOConnor/klipper/tree/master/config/example-extras.cfg)
|
||||
for details) to print directly from Klipper.
|
||||
@@ -0,0 +1,202 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="210mm"
|
||||
height="297mm"
|
||||
viewBox="0 0 210 297"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
sodipodi:docname="bed_screws.svg"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)"
|
||||
inkscape:export-filename="/home/kevin/src/reprap/firmware/klipper/docs/img/bed_screws.svg.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2.0149341"
|
||||
inkscape:cx="209.05542"
|
||||
inkscape:cy="598.47875"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1030"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<rect
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:0.96456695;stroke:#ffffff;stroke-width:0.39099997;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect928"
|
||||
width="74.716049"
|
||||
height="98.089432"
|
||||
x="70.776711"
|
||||
y="87.033455"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96" />
|
||||
<rect
|
||||
style="opacity:1;fill:#c8c8c8;fill-opacity:1;stroke:#030000;stroke-width:0.39099997;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect815"
|
||||
width="65.011902"
|
||||
height="88.446426"
|
||||
x="75.595238"
|
||||
y="91.380951"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96" />
|
||||
<rect
|
||||
style="opacity:1;fill:#00ff00;fill-opacity:0;stroke:#00ff00;stroke-width:0.39099997;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect844"
|
||||
width="0.22808908"
|
||||
height="92.832253"
|
||||
x="103.55245"
|
||||
y="89.324898" />
|
||||
<g
|
||||
id="g947"
|
||||
transform="translate(0,4.4645794)">
|
||||
<g
|
||||
transform="translate(8.8954742,-0.79831178)"
|
||||
id="g848">
|
||||
<ellipse
|
||||
style="opacity:1;fill:#fd0000;fill-opacity:0;stroke:#ff0000;stroke-width:0.39099997;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="path817"
|
||||
cx="94.828026"
|
||||
cy="114.18661"
|
||||
rx="0.85533404"
|
||||
ry="0.79831177" />
|
||||
<ellipse
|
||||
style="opacity:1;fill:#000000;fill-opacity:0;stroke:#ff0000;stroke-width:0.391;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="path817-3"
|
||||
cx="94.771011"
|
||||
cy="144.97864"
|
||||
rx="0.85533404"
|
||||
ry="0.79831183" />
|
||||
</g>
|
||||
<text
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:export-xdpi="96"
|
||||
id="text858"
|
||||
y="112.47593"
|
||||
x="105.26311"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332px"
|
||||
y="112.47593"
|
||||
x="105.26311"
|
||||
id="tspan856"
|
||||
sodipodi:role="line">A</tspan><tspan
|
||||
id="tspan860"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332px"
|
||||
y="116.00371"
|
||||
x="105.26311"
|
||||
sodipodi:role="line" /></text>
|
||||
<text
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:export-xdpi="96"
|
||||
id="text864"
|
||||
y="142.81177"
|
||||
x="105.14907"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332px"
|
||||
y="142.81177"
|
||||
x="105.14907"
|
||||
id="tspan862"
|
||||
sodipodi:role="line">B</tspan></text>
|
||||
<g
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:export-xdpi="96"
|
||||
transform="translate(-42.652658,1.5966236)"
|
||||
id="g876">
|
||||
<ellipse
|
||||
style="opacity:1;fill:#000000;fill-opacity:0;stroke:#ff0000;stroke-width:0.391;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="path817-6"
|
||||
cx="125.56304"
|
||||
cy="127.41576"
|
||||
rx="0.85533404"
|
||||
ry="0.79831183" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
x="126.93158"
|
||||
y="126.5034"
|
||||
id="text868"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan866"
|
||||
x="126.93158"
|
||||
y="126.5034"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332px">C</tspan><tspan
|
||||
sodipodi:role="line"
|
||||
x="126.93158"
|
||||
y="130.03117"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332px"
|
||||
id="tspan870" /></text>
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="g952"
|
||||
transform="translate(-0.26262232,4.2019571)">
|
||||
<path
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:transform-center-y="-0.024320163"
|
||||
inkscape:transform-center-x="-0.059466795"
|
||||
d="m 138.45007,129.24048 -0.43835,-0.37484 -0.55729,0.14861 0.22103,-0.53273 -0.31355,-0.4841 0.57496,0.0456 0.36351,-0.44779 0.13432,0.56091 0.53821,0.20734 -0.49196,0.30107 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="false"
|
||||
sodipodi:arg2="1.7942231"
|
||||
sodipodi:arg1="1.1659045"
|
||||
sodipodi:r2="0.43426865"
|
||||
sodipodi:r1="0.86853731"
|
||||
sodipodi:cy="128.44217"
|
||||
sodipodi:cx="138.10794"
|
||||
sodipodi:sides="5"
|
||||
id="path878"
|
||||
style="opacity:1;fill:#00ff00;fill-opacity:0;stroke:#0000ff;stroke-width:0.39099997;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
sodipodi:type="star" />
|
||||
<text
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:export-xdpi="96"
|
||||
id="text882"
|
||||
y="126.33394"
|
||||
x="137.52043"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332px"
|
||||
y="126.33394"
|
||||
x="137.52043"
|
||||
id="tspan880"
|
||||
sodipodi:role="line">D</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 20 KiB |
@@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox="0 0 768 624"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
|
||||
id="svg40"
|
||||
sodipodi:docname="klipper.svg"
|
||||
inkscape:version="0.92.4 (unknown)"
|
||||
inkscape:export-filename="/home/kevin/src/reprap/firmware/klipper/logs/logo-20190416/klipper6.svg.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"><metadata
|
||||
id="metadata46"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs44">
|
||||
</defs><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1030"
|
||||
id="namedview42"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.95"
|
||||
inkscape:cx="327.89418"
|
||||
inkscape:cy="289.76441"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg40"
|
||||
showguides="false"
|
||||
showborder="false"><inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid905" /></sodipodi:namedview>
|
||||
<path
|
||||
style="fill:#3c4b5a"
|
||||
d="m 30,34 v 140 l 260,255 115,-5 h 80 L 730,174 V 34 H 720 L 385,374 40,34 Z"
|
||||
id="path2"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccccc" /><path
|
||||
style="fill:#3c4b5a;stroke-width:1.03280997"
|
||||
d="m 140,418 -58,57 1,25 v 19 l 57,57 h 27 v -1 L 91,496.5 167,419 v -1 z"
|
||||
id="path8"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccccc" /><g
|
||||
transform="translate(-1.08348e-4,0.048)"
|
||||
id="g17">
|
||||
<path
|
||||
d="m 83.041215,464.92108 h 0.001 l -0.04211,27.03092 h 11 l 73.000005,-74 v 14.301 l -63,64.199 63,65.5 v 14 l -73.000002,-75 h -13 c -2,0 -4,-2 -4,-4 h -2 v -33 h 2 c 0,-1 1,-2 3.00004,-2 1.99996,0 2.99996,1 2.99996,2 z"
|
||||
style="fill:#b12f35"
|
||||
id="path15"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccccccccccccccc" />
|
||||
</g><g
|
||||
id="path839"
|
||||
transform="matrix(1.03281,0,0,1.0326797,24.31099,-21.921569)">
|
||||
<rect
|
||||
x="21"
|
||||
y="426"
|
||||
width="30.015202"
|
||||
height="153"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero"
|
||||
id="rect12" />
|
||||
</g><rect
|
||||
x="247"
|
||||
y="469"
|
||||
width="24"
|
||||
height="107"
|
||||
style="fill:#3c4b5a;stroke-width:1.19609642"
|
||||
id="rect23" /><path
|
||||
d="m 371.98888,521.45953 c 0,-10.8903 -2.45322,-19.36013 -7.36207,-25.4107 -4.90765,-6.05057 -12.80741,-9.07465 -23.69929,-9.07465 -2.28639,0 -4.6724,0.10081 -7.16044,0.30241 -2.48802,0.20161 -4.94125,0.63842 -7.36207,1.31044 v 60.29926 c 2.15197,1.47844 5.00967,2.85727 8.57188,4.13411 3.56342,1.27684 7.36208,1.91526 11.39597,1.91526 8.87554,0 15.36385,-3.02409 19.46496,-9.07465 4.10111,-6.05057 6.15106,-14.18439 6.15106,-24.40148 z M 397,521.05632 c 0,8.06663 -1.04178,15.46123 -3.12654,22.18261 -2.08476,6.72259 -5.07568,12.50434 -8.97515,17.34409 -3.89947,4.83973 -8.77472,8.60423 -14.62333,11.29351 -5.8498,2.68927 -12.47254,4.0333 -19.86702,4.0333 -4.97606,0 -9.54765,-0.60481 -13.71597,-1.81445 -4.16832,-1.21082 -7.59731,-2.55487 -10.28698,-4.03451 V 611 H 302 V 471.64736 c 4.97486,-1.34524 11.09352,-2.62207 18.35477,-3.83171 C 327.61602,466.60482 335.28055,466 343.34834,466 c 8.33664,0 15.79953,1.27684 22.38866,3.83171 6.58794,2.55487 12.20251,6.21857 16.84131,10.9911 4.6388,4.77253 8.20221,10.5543 10.69024,17.34408 2.48684,6.78859 3.73145,14.4184 3.73145,22.88943 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.20011997"
|
||||
id="path25"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
d="m 492.9892,521.45953 c 0,-10.8903 -2.4544,-19.36013 -7.36198,-25.4107 -4.90759,-6.05057 -12.80725,-9.07465 -23.699,-9.07465 -2.28636,0 -4.67354,0.10081 -7.16034,0.30241 -2.488,0.20161 -4.94119,0.63842 -7.36197,1.31044 v 60.29926 c 2.15074,1.47844 5.00839,2.85727 8.57176,4.13411 3.56337,1.27684 7.36198,1.91526 11.39582,1.91526 8.87423,0 15.36246,-3.02409 19.46352,-9.07465 4.10106,-6.05057 6.15219,-14.18439 6.15219,-24.40148 z M 518,521.05632 c 0,8.06663 -1.04297,15.46123 -3.1265,22.18261 -2.08474,6.72259 -5.07681,12.50434 -8.97624,17.34409 -3.89942,4.83973 -8.77341,8.60423 -14.62314,11.29351 -5.84854,2.68927 -12.47119,4.0333 -19.86677,4.0333 -4.9748,0 -9.54633,-0.60481 -13.7146,-1.81445 -4.16827,-1.21082 -7.59722,-2.55487 -10.28684,-4.03451 V 611 H 423 V 471.64736 c 4.97599,-1.34524 11.09337,-2.62207 18.35454,-3.83171 C 448.61569,466.60482 456.28012,466 464.34782,466 c 8.33773,0 15.80052,1.27684 22.38838,3.83171 6.58905,2.55487 12.20235,6.21857 16.84229,10.9911 4.63875,4.77253 8.20211,10.5543 10.69012,17.34408 2.48679,6.78859 3.73139,14.4184 3.73139,22.88943 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.20011246"
|
||||
id="path27"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
d="m 537,521.00591 c 0,-9.30123 1.37492,-17.45591 4.12595,-24.46521 2.74984,-7.00931 6.40632,-12.83838 10.96942,-17.48839 4.56191,-4.65121 9.79451,-8.15587 15.699,-10.51396 5.90328,-2.3593 11.94191,-3.53835 18.11469,-3.53835 14.49054,0 25.79531,4.51527 33.91308,13.5458 8.11897,9.03174 12.17786,22.51016 12.17786,40.43768 0,1.34749 -0.0335,2.8646 -0.1006,4.54896 -0.0671,1.68555 -0.16768,3.20147 -0.30182,4.55015 h -69.43942 c 0.67068,8.49155 3.65646,15.06171 8.95733,19.71294 5.29967,4.65001 12.98149,6.97562 23.04547,6.97562 5.9033,0 11.30477,-0.5402 16.20202,-1.61818 4.89726,-1.07799 8.75493,-2.22335 11.57304,-3.43729 l 3.22052,20.01612 c -1.34138,0.67495 -3.18699,1.38237 -5.53561,2.12349 -2.34742,0.74112 -5.03139,1.41485 -8.05071,2.02242 -3.01811,0.60637 -6.27217,1.11168 -9.76096,1.51592 -3.4888,0.40425 -7.04467,0.60637 -10.66761,0.60637 -9.25915,0 -17.30985,-1.38116 -24.15211,-4.14471 -6.84346,-2.76354 -12.47968,-6.60507 -16.90744,-11.52457 -4.42778,-4.91951 -7.71537,-10.7161 -9.86278,-17.38854 C 538.0731,536.27095 537,528.95845 537,521.00591 Z m 70.64548,-10.91821 c 0,-3.36991 -0.46948,-6.57138 -1.40846,-9.60442 -0.93897,-3.03303 -2.31508,-5.66063 -4.12595,-7.88517 -1.81207,-2.22335 -4.02535,-3.97627 -6.64226,-5.25638 -2.61689,-1.28131 -5.73561,-1.92137 -9.35855,-1.92137 -3.75708,0 -7.04466,0.70743 -9.86278,2.1235 -2.8181,1.41484 -5.19906,3.26883 -7.14527,5.55956 -1.94501,2.29192 -3.45526,4.92071 -4.52837,7.88516 -1.0731,2.96567 -1.81206,5.99871 -2.21447,9.09912 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.20038378"
|
||||
id="path29"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
d="m 717.7869,492.26931 c -2.00567,-0.67394 -4.78138,-1.38159 -8.32593,-2.12292 -3.54453,-0.74135 -7.65736,-1.11202 -12.33845,-1.11202 -2.67542,0 -5.51799,0.26957 -8.52649,0.80874 -3.0097,0.53915 -5.11684,1.01091 -6.32025,1.41528 V 576 H 658 V 475.28104 c 4.68109,-1.75347 10.53216,-3.40464 17.55439,-4.95472 C 682.57663,468.77504 690.36771,468 698.92762,468 c 1.60574,0 3.47769,0.10109 5.61827,0.30328 2.13938,0.20218 4.27996,0.47176 6.42053,0.80873 2.13939,0.33697 4.2131,0.74255 6.21878,1.21431 2.00687,0.47176 3.6114,0.90983 4.8148,1.3142 z"
|
||||
style="fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.19865453"
|
||||
id="path31"
|
||||
inkscape:connector-curvature="0" /><path
|
||||
sodipodi:nodetypes="cccccccccccccc"
|
||||
d="M 259,424 H 360 V 359 L 30,34 H 90 L 385,324 670,34 h 60 L 410,359 v 84.99783 C 410,449 405,454 400,454 H 259 c -12,0 -14,-10 -14,-15 0,-5 2,-15 14,-15 z"
|
||||
style="fill:#b12f35"
|
||||
id="path35"
|
||||
inkscape:connector-curvature="0" />
|
||||
<rect
|
||||
id="rect12-6"
|
||||
style="clip-rule:evenodd;fill:#3c4b5a;fill-rule:nonzero;stroke-width:1.03280997;stroke-linejoin:round;stroke-miterlimit:1.41420996"
|
||||
height="158"
|
||||
width="24"
|
||||
y="418"
|
||||
x="191" /></svg>
|
||||
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 32 KiB |
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="210mm"
|
||||
height="297mm"
|
||||
viewBox="0 0 210 297"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:export-filename="/home/kevin/src/reprap/firmware/klipper/docs/img/tmc2208.svg.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:version="0.92.4 (unknown)"
|
||||
sodipodi:docname="tmc2208.svg">
|
||||
<defs
|
||||
id="defs2">
|
||||
<linearGradient
|
||||
id="linearGradient4609"
|
||||
osb:paint="solid">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4607" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="1"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.98994949"
|
||||
inkscape:cx="385.77852"
|
||||
inkscape:cy="710.19584"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:pagecheckerboard="false"
|
||||
inkscape:window-width="1182"
|
||||
inkscape:window-height="699"
|
||||
inkscape:window-x="237"
|
||||
inkscape:window-y="79"
|
||||
inkscape:window-maximized="0">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4530" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#fc0000;stroke-width:0.30706427px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 66.149367,77.39651 c 30.339928,59.83134 53.090253,40.04114 74.076273,0"
|
||||
id="path4613"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 39.6875,93.270833 127,0"
|
||||
id="path4534"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 39.6875,103.85417 127,0"
|
||||
id="path4534-2"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 39.6875,114.4375 127,0"
|
||||
id="path4534-4"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 39.6875,125.02083 127,0"
|
||||
id="path4534-4-7"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 39.6875,82.6875 127,0"
|
||||
id="path4534-4-75"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
@@ -0,0 +1,63 @@
|
||||
// Calibration test tower
|
||||
//
|
||||
// Generate STL using OpenSCAD:
|
||||
// openscad square_tower.scad -o square_tower.stl
|
||||
|
||||
square_width = 5;
|
||||
square_size = 60;
|
||||
square_height = 50;
|
||||
antiwarp_height = .8;
|
||||
antiwarp_radius = 5;
|
||||
|
||||
module square_with_anti_warp() {
|
||||
module anti_warp_cylinder() {
|
||||
cylinder(r=antiwarp_radius, h=antiwarp_height, $fs=.5);
|
||||
}
|
||||
cube([square_size, square_size, square_height]);
|
||||
dist = antiwarp_radius / 2.5;
|
||||
translate([dist, dist, 0])
|
||||
anti_warp_cylinder();
|
||||
translate([square_size-dist, dist, 0])
|
||||
anti_warp_cylinder();
|
||||
translate([dist, square_size-dist, 0])
|
||||
anti_warp_cylinder();
|
||||
translate([square_size-dist, square_size-dist, 0])
|
||||
anti_warp_cylinder();
|
||||
}
|
||||
|
||||
module hollow_square() {
|
||||
difference() {
|
||||
square_with_anti_warp();
|
||||
translate([square_width, square_width, -1])
|
||||
cube([square_size-2*square_width, square_size-2*square_width,
|
||||
square_height+2]);
|
||||
}
|
||||
}
|
||||
|
||||
module notch() {
|
||||
CUT = 0.01;
|
||||
depth = .5;
|
||||
width = 1;
|
||||
translate([-depth, -width, -CUT])
|
||||
cube([2*depth, 2*width, square_height + 2*CUT]);
|
||||
}
|
||||
|
||||
module square_with_notches() {
|
||||
difference() {
|
||||
// Start with initial square
|
||||
hollow_square();
|
||||
// Remove four notches on inside perimeter
|
||||
translate([square_width, square_size/2 - 4, 0])
|
||||
notch();
|
||||
translate([square_size/2, square_size - square_width, 0])
|
||||
rotate([0, 0, 90])
|
||||
notch();
|
||||
translate([square_size - square_width, square_size/2, 0])
|
||||
notch();
|
||||
translate([square_size/2, square_width, 0])
|
||||
rotate([0, 0, 90])
|
||||
notch();
|
||||
}
|
||||
}
|
||||
|
||||
square_with_notches();
|
||||
@@ -0,0 +1,93 @@
|
||||
Software based skew correction can help resolve dimensional inaccuracies
|
||||
resulting from a printer assembly that is not perfectly square. Note
|
||||
that if your printer is significantly skewed it is strongly recommended to
|
||||
first use mechanical means to get your printer as square as possible prior
|
||||
to applying software based correction.
|
||||
|
||||
# Print a Calibration Object
|
||||
The first step in correcting skew is to print a
|
||||
[calibration object](https://www.thingiverse.com/thing:2563185/files)
|
||||
along the plane you want to correct. There is also a
|
||||
[calibration object](https://www.thingiverse.com/thing:2972743)
|
||||
that includes all planes in one model. You want the object oriented
|
||||
so that corner A is toward the origin of the plane.
|
||||
|
||||
Make sure that no skew correction is applied during this print. You may
|
||||
do this by either removing the [skew_correction] module from printer.cfg
|
||||
or by issuing a `SET_SKEW CLEAR=1` gcode.
|
||||
|
||||
# Take your measurements
|
||||
The [skew_correcton] module requires 3 measurements for each plane you want
|
||||
to correct; the length from Corner A to Corner C, the length from Corner B
|
||||
to Corner D, and the length from corner A to corner D. When measuring length
|
||||
AD do not include the flats on the corners that some test objects provide.
|
||||
|
||||

|
||||
|
||||
# Configure your skew
|
||||
Make sure [skew_correction] is in printer.cfg. You may now use the `SET_SKEW`
|
||||
gcode to configure skew_correcton. For example, if your measured lengths
|
||||
along XY are as follows:
|
||||
```
|
||||
Length AC = 140.4
|
||||
Length BD = 142.8
|
||||
Length AD = 99.8
|
||||
```
|
||||
|
||||
`SET_SKEW` can be used to configure skew correction for the XY plane.
|
||||
|
||||
```
|
||||
SET_SKEW XY=140.4,142.8,99.8
|
||||
```
|
||||
You may also add measurements for XZ and YZ to the gcode:
|
||||
|
||||
```
|
||||
SET_SKEW XY=140.4,142.8,99.8 XZ=141.6,141.4,99.8 YZ=142.4,140.5,99.5
|
||||
```
|
||||
|
||||
The [skew_correction] module also supports profile management in a manner
|
||||
similar to [bed_mesh]. After setting skew using the `SET_SKEW` gcode,
|
||||
you may use the `SKEW_PROFILE` gcode to save it:
|
||||
|
||||
```
|
||||
SKEW_PROFILE SAVE=my_skew_profile
|
||||
```
|
||||
After this command you will be prompted to issue a `SAVE_CONFIG` gcode to
|
||||
save the profile to persistent storage. If no profile is named
|
||||
`my_skew_profile` then a new profile will be created. If the named profile
|
||||
exists it will be overwritten.
|
||||
|
||||
Once you have a saved profile, you may load it:
|
||||
```
|
||||
SKEW_PROFILE LOAD=my_skew_profile
|
||||
```
|
||||
|
||||
It is also possible to remove an old or out of date profile:
|
||||
```
|
||||
SKEW_PROFILE REMOVE=my_skew_profile
|
||||
```
|
||||
After removing a profile you will be prompted to issue a `SAVE_CONFIG` to
|
||||
make this change persist.
|
||||
|
||||
# Verifying your correction
|
||||
After skew_correction has been configured you may reprint the calibration
|
||||
part with correction enabled. Use the following gcode to check your
|
||||
skew on each plane. The results should be lower than those reported via
|
||||
`GET_CURRENT_SKEW`.
|
||||
|
||||
```
|
||||
CALC_MEASURED_SKEW AC=<ac_length> BD=<bd_length> AD=<ad_length>
|
||||
```
|
||||
|
||||
# Caveats
|
||||
|
||||
Due to the nature of skew correction it is recommended to configure skew
|
||||
in your start gcode, after homing and any kind of movement that travels
|
||||
near the edge of the print area such as a purge or nozzle wipe. You may
|
||||
use use the `SET_SKEW` or `SKEW_PROFILE` gcodes to accomplish this. It is
|
||||
also recommended to issue a `SET_SKEW CLEAR=1` in your end gcode.
|
||||
|
||||
Keep in mind that it is possible for [skew_correction] to generate a correction
|
||||
that moves the tool beyond the printer's boundries on the X and/or Y axes. It
|
||||
is recommended to arrange parts away from the edges when using
|
||||
[skew_correction].
|
||||
@@ -0,0 +1,142 @@
|
||||
This document describes how the STM32F0 port operates and how to work with
|
||||
tiny CAN-enabled boards.
|
||||
|
||||
Required components
|
||||
===================
|
||||
|
||||
#### MCP2515 module
|
||||
|
||||

|
||||
or this
|
||||

|
||||
|
||||
#### St-link dongle
|
||||
|
||||

|
||||
|
||||
|
||||
Adding CAN bus to Raspberry Pi
|
||||
==============================
|
||||
(Based on Quick Guide https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=141052)
|
||||
|
||||
First of all, (only if you have small CAN module) it’s necessary to modify the CAN-module from ebay, because it has
|
||||
only one VCC pin, but the MCP2515 needs to be powered from 3V3 and the TJA1050
|
||||
CAN-transceiver needs to be powered from 5V. Powering both chips from 5V would
|
||||
work, but then a level-shifter for the SPI would be needed. The Pi's GPIO pins
|
||||
are NOT 5V tolerant. Cut a trace on the PCB and soldered a pin onto the trace
|
||||
to deliver 5V only to the TJA1050. Be sure to cut the trace before the capacitor:
|
||||
|
||||

|
||||
|
||||
Next connect the module:
|
||||
|
||||
| MCP2515 | Raspberry Pi |
|
||||
| --- | --- |
|
||||
| VCC | 1 (3V3) |
|
||||
| TJA 1050 VCC | 2 (5V) |
|
||||
| GND | 6 (GND) |
|
||||
| CS | 24 (CE0) |
|
||||
| MISO | 21 (MISO) |
|
||||
| MOSI | 19 (MOSI) |
|
||||
| SCK | 23 (SCK) |
|
||||
| INT | 22 (GPIO25) |
|
||||
|
||||
Install can-utils:
|
||||
> sudo apt-get install can-utils
|
||||
|
||||
To activate the driver for the MCP2515 you have to add a kernel overlay, to do
|
||||
so edit the /boot/config.txt
|
||||
> sudo nano /boot/config.txt
|
||||
|
||||
And add the following lines (set oscillator value according to crystal on your board):
|
||||
|
||||
```
|
||||
dtparam=spi=on
|
||||
dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25
|
||||
dtoverlay=spi1-1cs
|
||||
```
|
||||
|
||||
Now reboot, after the reboot try to setup the the can interface:
|
||||
> sudo ip link set can0 up type can bitrate 500000
|
||||
|
||||
If no errors occurred, the can interface should be ready now.
|
||||
To make the CAN-interface permanent, add the following lines to /etc/network/interfaces
|
||||
|
||||
```
|
||||
auto can0
|
||||
iface can0 can static
|
||||
bitrate 500000
|
||||
```
|
||||
|
||||
Communicating over CAN
|
||||
======================
|
||||
|
||||
Use "Serial over CAN" emulator software to establish connection:
|
||||
https://github.com/Delsian/CanSerial
|
||||
|
||||
Install st-link on Raspberry Pi
|
||||
===============================
|
||||
|
||||
> sudo apt-get update
|
||||
|
||||
> sudo apt-get install cmake
|
||||
|
||||
> sudo apt-get install libusb-1.0-0-dev
|
||||
|
||||
> git clone https://github.com/texane/stlink stlink-repo
|
||||
|
||||
> cd stlink-repo
|
||||
|
||||
> make
|
||||
|
||||
> cd build/Release/
|
||||
|
||||
> sudo make install
|
||||
|
||||
|
||||
Copy to /etc/udev/rules.d/49-stlinkv2.rules:
|
||||
|
||||
```
|
||||
# stm32 discovery boards, with onboard st/linkv2
|
||||
# ie, STM32L, STM32F4.
|
||||
# STM32VL has st/linkv1, which is quite different
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_%n"
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
|
||||
KERNEL!="sd*", KERNEL!="sg*", KERNEL!="tty*", SUBSYSTEM!="bsg", \
|
||||
MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_%n"
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
|
||||
KERNEL=="sd*", MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_disk"
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
|
||||
KERNEL=="sg*", MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_raw_scsi"
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
|
||||
SUBSYSTEM=="bsg", MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_block_scsi"
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
|
||||
KERNEL=="tty*", MODE:="0666", \
|
||||
SYMLINK+="stlinkv2_console"
|
||||
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
# GROUP:="somegroupname" and control access using standard unix groups.
|
||||
```
|
||||
|
||||
Now "make flash" command can upload HEX into connected board
|
||||
|
||||
Pins allocation
|
||||
===============
|
||||
|
||||
Configurations with CAN and Serial port uses different pins, and during enumeration
|
||||
process firmware reports all possible pin names. But actually you can use only
|
||||
existing pins, not involved in communication. Wrong pins will generate shutdown.
|
||||
@@ -7,10 +7,9 @@ pin mappings either.
|
||||
General considerations
|
||||
======================
|
||||
|
||||
The STM32 port currently requires an 8 MHz crystal for correct
|
||||
operation. The port is currently designed for and tested with
|
||||
STM32F103xB series MCUs, but it should work with any STM32F103 series
|
||||
MCUs with minimal changes.
|
||||
The port is currently designed for and tested with STM32F103xB series
|
||||
MCUs, but it should work with any STM32F103 series MCUs with minimal
|
||||
changes.
|
||||
|
||||
Unlike Arduino-based boards, typically there is no automatic reset on serial
|
||||
connection with STM32 boards. Please use `restart_method: command` with the
|
||||
@@ -19,14 +18,12 @@ STM32F1 port.
|
||||
Fixed pins
|
||||
==========
|
||||
|
||||
When using serial, the UART used for communication with the host is
|
||||
fixed to pins PA9 (TX) and PA10 (RX). When using USB, the PA11 (D-)
|
||||
and PA12 (D+) pins are reserved. The USB code assumes that PA12 (D+)
|
||||
has a fixed pullup resistor attached to it.
|
||||
When using USB, the PA11 (D-) and PA12 (D+) pins are reserved. The USB
|
||||
code assumes that PA12 (D+) has a fixed pullup resistor attached to
|
||||
it.
|
||||
|
||||
SWD pins (PA13/PA14) are enabled for debugging and cannot be used for
|
||||
any I/O. SPI uses pins PB13/PB14/PB15, but the pins can be used as
|
||||
general I/O if SPI is not used.
|
||||
SPI uses pins PB13/PB14/PB15, but the pins can be used as general I/O
|
||||
if SPI is not used.
|
||||
|
||||
Digital I/O
|
||||
===========
|
||||
|
||||
@@ -16,7 +16,8 @@ COMPILE_CMD = ("gcc -Wall -g -O2 -shared -fPIC"
|
||||
" -o %s %s")
|
||||
SOURCE_FILES = [
|
||||
'pyhelper.c', 'serialqueue.c', 'stepcompress.c', 'itersolve.c',
|
||||
'kin_cartesian.c', 'kin_corexy.c', 'kin_delta.c', 'kin_extruder.c'
|
||||
'kin_cartesian.c', 'kin_corexy.c', 'kin_delta.c', 'kin_polar.c',
|
||||
'kin_winch.c', 'kin_extruder.c',
|
||||
]
|
||||
DEST_LIB = "c_helper.so"
|
||||
OTHER_FILES = [
|
||||
@@ -30,8 +31,8 @@ defs_stepcompress = """
|
||||
, uint32_t set_next_step_dir_msgid);
|
||||
void stepcompress_free(struct stepcompress *sc);
|
||||
int stepcompress_reset(struct stepcompress *sc, uint64_t last_step_clock);
|
||||
int stepcompress_set_homing(struct stepcompress *sc, uint64_t homing_clock);
|
||||
int stepcompress_queue_msg(struct stepcompress *sc, uint32_t *data, int len);
|
||||
int stepcompress_queue_msg(struct stepcompress *sc
|
||||
, uint32_t *data, int len);
|
||||
|
||||
struct steppersync *steppersync_alloc(struct serialqueue *sq
|
||||
, struct stepcompress **sc_list, int sc_num, int move_num);
|
||||
@@ -70,6 +71,15 @@ defs_kin_delta = """
|
||||
, double tower_x, double tower_y);
|
||||
"""
|
||||
|
||||
defs_kin_polar = """
|
||||
struct stepper_kinematics *polar_stepper_alloc(char type);
|
||||
"""
|
||||
|
||||
defs_kin_winch = """
|
||||
struct stepper_kinematics *winch_stepper_alloc(double anchor_x
|
||||
, double anchor_y, double anchor_z);
|
||||
"""
|
||||
|
||||
defs_kin_extruder = """
|
||||
struct stepper_kinematics *extruder_stepper_alloc(void);
|
||||
void extruder_move_fill(struct move *m, double print_time
|
||||
@@ -95,7 +105,8 @@ defs_serialqueue = """
|
||||
, uint8_t *msg, int len, uint64_t min_clock, uint64_t req_clock);
|
||||
void serialqueue_pull(struct serialqueue *sq
|
||||
, struct pull_queue_message *pqm);
|
||||
void serialqueue_set_baud_adjust(struct serialqueue *sq, double baud_adjust);
|
||||
void serialqueue_set_baud_adjust(struct serialqueue *sq
|
||||
, double baud_adjust);
|
||||
void serialqueue_set_receive_window(struct serialqueue *sq
|
||||
, int receive_window);
|
||||
void serialqueue_set_clock_est(struct serialqueue *sq, double est_freq
|
||||
@@ -115,8 +126,10 @@ defs_std = """
|
||||
"""
|
||||
|
||||
defs_all = [
|
||||
defs_pyhelper, defs_serialqueue, defs_std, defs_stepcompress, defs_itersolve,
|
||||
defs_kin_cartesian, defs_kin_corexy, defs_kin_delta, defs_kin_extruder
|
||||
defs_pyhelper, defs_serialqueue, defs_std,
|
||||
defs_stepcompress, defs_itersolve,
|
||||
defs_kin_cartesian, defs_kin_corexy, defs_kin_delta, defs_kin_polar,
|
||||
defs_kin_winch, defs_kin_extruder
|
||||
]
|
||||
|
||||
# Return the list of file modification times
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
// Polar kinematics stepper pulse time generation
|
||||
//
|
||||
// Copyright (C) 2018-2019 Kevin O'Connor <kevin@koconnor.net>
|
||||
//
|
||||
// This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
#include <math.h> // sqrt
|
||||
#include <stdlib.h> // malloc
|
||||
#include <string.h> // memset
|
||||
#include "compiler.h" // __visible
|
||||
#include "itersolve.h" // struct stepper_kinematics
|
||||
|
||||
static double
|
||||
polar_stepper_radius_calc_position(struct stepper_kinematics *sk, struct move *m
|
||||
, double move_time)
|
||||
{
|
||||
struct coord c = move_get_coord(m, move_time);
|
||||
return sqrt(c.x*c.x + c.y*c.y);
|
||||
}
|
||||
|
||||
static double
|
||||
polar_stepper_angle_calc_position(struct stepper_kinematics *sk, struct move *m
|
||||
, double move_time)
|
||||
{
|
||||
struct coord c = move_get_coord(m, move_time);
|
||||
// XXX - handle x==y==0
|
||||
double angle = atan2(c.y, c.x);
|
||||
if (angle - sk->commanded_pos > M_PI)
|
||||
angle -= 2. * M_PI;
|
||||
else if (angle - sk->commanded_pos < -M_PI)
|
||||
angle += 2. * M_PI;
|
||||
return angle;
|
||||
}
|
||||
|
||||
struct stepper_kinematics * __visible
|
||||
polar_stepper_alloc(char type)
|
||||
{
|
||||
struct stepper_kinematics *sk = malloc(sizeof(*sk));
|
||||
memset(sk, 0, sizeof(*sk));
|
||||
if (type == 'r')
|
||||
sk->calc_position = polar_stepper_radius_calc_position;
|
||||
else if (type == 'a')
|
||||
sk->calc_position = polar_stepper_angle_calc_position;
|
||||
return sk;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// Cable winch stepper kinematics
|
||||
//
|
||||
// Copyright (C) 2018 Kevin O'Connor <kevin@koconnor.net>
|
||||
//
|
||||
// This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
#include <math.h> // sqrt
|
||||
#include <stddef.h> // offsetof
|
||||
#include <stdlib.h> // malloc
|
||||
#include <string.h> // memset
|
||||
#include "compiler.h" // __visible
|
||||
#include "itersolve.h" // struct stepper_kinematics
|
||||
|
||||
struct winch_stepper {
|
||||
struct stepper_kinematics sk;
|
||||
struct coord anchor;
|
||||
};
|
||||
|
||||
static double
|
||||
winch_stepper_calc_position(struct stepper_kinematics *sk, struct move *m
|
||||
, double move_time)
|
||||
{
|
||||
struct winch_stepper *hs = container_of(sk, struct winch_stepper, sk);
|
||||
struct coord c = move_get_coord(m, move_time);
|
||||
double dx = hs->anchor.x - c.x, dy = hs->anchor.y - c.y;
|
||||
double dz = hs->anchor.z - c.z;
|
||||
return sqrt(dx*dx + dy*dy + dz*dz);
|
||||
}
|
||||
|
||||
struct stepper_kinematics * __visible
|
||||
winch_stepper_alloc(double anchor_x, double anchor_y, double anchor_z)
|
||||
{
|
||||
struct winch_stepper *hs = malloc(sizeof(*hs));
|
||||
memset(hs, 0, sizeof(*hs));
|
||||
hs->anchor.x = anchor_x;
|
||||
hs->anchor.y = anchor_y;
|
||||
hs->anchor.z = anchor_z;
|
||||
hs->sk.calc_position = winch_stepper_calc_position;
|
||||
return &hs->sk;
|
||||
}
|
||||
@@ -667,7 +667,8 @@ build_and_send_command(struct serialqueue *sq, double eventtime)
|
||||
// Fill header / trailer
|
||||
out->len += MESSAGE_TRAILER_SIZE;
|
||||
out->msg[MESSAGE_POS_LEN] = out->len;
|
||||
out->msg[MESSAGE_POS_SEQ] = MESSAGE_DEST | (sq->send_seq & MESSAGE_SEQ_MASK);
|
||||
out->msg[MESSAGE_POS_SEQ] = (MESSAGE_DEST
|
||||
| (sq->send_seq & MESSAGE_SEQ_MASK));
|
||||
uint16_t crc = crc16_ccitt(out->msg, out->len - MESSAGE_TRAILER_SIZE);
|
||||
out->msg[out->len - MESSAGE_TRAILER_CRC] = crc >> 8;
|
||||
out->msg[out->len - MESSAGE_TRAILER_CRC+1] = crc & 0xff;
|
||||
@@ -958,8 +959,8 @@ serialqueue_send_batch(struct serialqueue *sq, struct command_queue *cq
|
||||
// Schedule the transmission of a message on the serial port at a
|
||||
// given time and priority.
|
||||
void __visible
|
||||
serialqueue_send(struct serialqueue *sq, struct command_queue *cq
|
||||
, uint8_t *msg, int len, uint64_t min_clock, uint64_t req_clock)
|
||||
serialqueue_send(struct serialqueue *sq, struct command_queue *cq, uint8_t *msg
|
||||
, int len, uint64_t min_clock, uint64_t req_clock)
|
||||
{
|
||||
struct queue_message *qm = message_fill(msg, len);
|
||||
qm->min_clock = min_clock;
|
||||
|
||||
@@ -55,9 +55,9 @@ void serialqueue_send_batch(struct serialqueue *sq, struct command_queue *cq
|
||||
void serialqueue_send(struct serialqueue *sq, struct command_queue *cq
|
||||
, uint8_t *msg, int len
|
||||
, uint64_t min_clock, uint64_t req_clock);
|
||||
void serialqueue_encode_and_send(struct serialqueue *sq, struct command_queue *cq
|
||||
, uint32_t *data, int len
|
||||
, uint64_t min_clock, uint64_t req_clock);
|
||||
void serialqueue_encode_and_send(
|
||||
struct serialqueue *sq, struct command_queue *cq
|
||||
, uint32_t *data, int len, uint64_t min_clock, uint64_t req_clock);
|
||||
void serialqueue_pull(struct serialqueue *sq, struct pull_queue_message *pqm);
|
||||
void serialqueue_set_baud_adjust(struct serialqueue *sq, double baud_adjust);
|
||||
void serialqueue_set_clock_est(struct serialqueue *sq, double est_freq
|
||||
|
||||