Position Control with StepperUNO: Difference between revisions
(3 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
* DISABLED. (DIS) Motors are free running. No action can be done. | * DISABLED. (DIS) Motors are free running. No action can be done. | ||
[[File:Lcd001.png | 300px]] | [[File:Lcd001.png | 300px]] | ||
* MANUAL. (MANU) Motors are holding position. They can be moved using LEFT and RIGHT buttons. | * MANUAL. (MANU) Motors are holding position. They can be moved using LEFT and RIGHT buttons. Current position can be set to zero by pressing RST for more than 2 seconds. | ||
[[File:Lcd002.png | 300px]] | [[File:Lcd002.png | 300px]] | ||
* STORING. (STO) Current position can be stored when pressing the RST button. | * STORING. (STO) Current position can be stored when pressing the RST button. | ||
Line 43: | Line 43: | ||
The current position is shown on the top right of the lcd display. This position is also saved into memory and is persistent over reboots. | The current position is shown on the top right of the lcd display. This position is also saved into memory and is persistent over reboots. | ||
'''Position reset''' To reset the current position to 0 press the RST button for more than | '''Position reset''' To reset the current position to 0 press the RST button for more than 2 seconds in MANUAL or DISABLED mode. | ||
==AUTO mode== | ==AUTO mode== | ||
AUTO mode is enabled when the motor is moving. To cancel the move press the SELECT button to resume to DISABLED mode. | AUTO mode is enabled when the motor is moving. To cancel the move press the SELECT button to resume to DISABLED mode. |
Latest revision as of 09:36, 4 May 2020
We will describe the usage of the Position Control V2.0 sketch for StepperUNO.
Push Buttons
The StepperUNO has 4 push buttons we will refer to as:
- SELECT
- LEFT
- RIGHT
- UP
- DOWN
- RST
Operation Modes
The SELECT button toggles between each of the 4 modes.
- DISABLED. (DIS) Motors are free running. No action can be done.
- MANUAL. (MANU) Motors are holding position. They can be moved using LEFT and RIGHT buttons. Current position can be set to zero by pressing RST for more than 2 seconds.
- STORING. (STO) Current position can be stored when pressing the RST button.
- CALLING. (CALL) Current position can be executed by the motor when pressing the RST button.
Position Memory
There are 32 positions that can be saved into memory. P0 to P31.
Buttons UP and DOWN allow to select the memory to work with.
In STORING mode the RST button will store the current position into memory.
In CALLING mode the RST button will move the motor to the position in memory.
Current Position
The current position is shown on the top right of the lcd display. This position is also saved into memory and is persistent over reboots.
Position reset To reset the current position to 0 press the RST button for more than 2 seconds in MANUAL or DISABLED mode.
AUTO mode
AUTO mode is enabled when the motor is moving. To cancel the move press the SELECT button to resume to DISABLED mode.