Difference: SteppingMotor (4 vs. 5)

Revision 52017-10-26 - uli

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

Stepping Motor Exercises

Goal:

Line: 72 to 72
 
  • -n or –numberOfSteps: number of steps (default 512)

  • -v or –velocity: velocity of movement

  • -s or –fullStep: full step (this is the default)

Changed:
<
<
  • -h or –halfStep: half step

>
>
  • -h or –halfStep: half step

Additional Exercises:

The "inverse device" to the stepping motor is a rotary encoder. Here we do not sent the pulse sequence to move a motor but we receive the receive the sequence to be able to tell by how far the motor has moved. The encoder is usually fixed to the motor shaft and it tells us the position of the motor.

Reading out an encoder is not really part of this exercise but since we have such an encoder in our sensor kit I played on it and I give you some code to read out the encoder in the solutions section to this exercise.

  -- Uli Raich - 2017-05-11
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback