Difference: Motors (3 vs. 4)

Revision 42020-08-09 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Motors

Introduction

Line: 74 to 74
 
  • DOUBLE_PHASE_BACKWARD
  • HALF_STEP-FORWARD
  • HALF_STEP_BACKWARD
Changed:
<
<
You can set the mode with the method stepMode():
>
>
You can set the mode with the method stepMode():
 
stepper.stepMode(stepper.DOUBLE_PHASE_FORWARD)

You can change the movement speed with the method waitAfterSteps() which defines how long to wait after each step in ms. Valid values are 2..1000. Again the method returns the value currently in use if called without a parameter.

Line: 84 to 83
  Finally the method move(noOfSteps) moves the stepping motor noOfSteps in the mode and with the speed currently selected.
Added:
>
>
The exercise sheet in odt format:

https://iotworkshop.africa/pub/IoT_Course_English/Motors/exercise_7.odt

 -- Uli Raich - 2020-06-25

Comments

Line: 94 to 97
 
META FILEATTACHMENT attachment="motorShieldBack.png" attr="" comment="" date="1593074633" name="motorShieldBack.png" path="motorShieldBack.png" size="196861" user="UliRaich" version="1"
META FILEATTACHMENT attachment="motorShieldFront.png" attr="" comment="" date="1593074633" name="motorShieldFront.png" path="motorShieldFront.png" size="174779" user="UliRaich" version="1"
META FILEATTACHMENT attachment="servo.png" attr="" comment="" date="1593086112" name="servo.png" path="servo.png" size="146400" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="exercise_7.odt" attr="" comment="" date="1596963558" name="exercise_7.odt" path="exercise_7.odt" size="383197" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback