6.6 Schrittmotor bis zum Endschalter laufen lassen, Nullpunkt setzen, 10 x 100 Schritte vorwärts und in einem Lauf zurück auf die Nullposition. Zusätzlich einen Button als Notaus (Soforthalt) vorsehen.
Dependencies: StepperMotorUni mbed
Fork of 06-13-Uebung by
Revision 4:e774091a811e, committed 2016-11-07
- Comitter:
- stefan1691
- Date:
- Mon Nov 07 09:57:37 2016 +0000
- Parent:
- 3:1b56d15b0964
- Commit message:
- Anschluss an Stepper 1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Apr 29 18:46:15 2015 +0000 +++ b/main.cpp Mon Nov 07 09:57:37 2016 +0000 @@ -7,7 +7,7 @@ #include "StepperMotorUni.h" // Schrittmotor -StepperMotorUni motor( PTB18, PTB19, PTC1, PTC8 ); +StepperMotorUni motor( D5, D4, D3, D2 ); // Endabschalter DigitalIn home( A4 ); // Notstop