Hello - I am building a HVAC vent controller and I am using SpeedyStepper to control the stepper motors. I am reasonably new to coding. I have pulled out a small piece of code to limit the code amount to try and resolve why I am unable to set the current position, move the motor and then get the new motor position. Code shown just prints value of position. I plan to use move to commands once I can reliably know the current position of the stepper after moves.
I'd like to use set current position and get current position functions that as far as I see exist in SpeedyStepper. Any help will be appreciated. I've try many combinations and placement for the code without any success.
The code complies and uploads fine, it's the output that doesn't provide a new location for the stepper.
I read thru the rules and methods to ask a question. Hopefully, I have adhered to the rules of the forum and provided what is needed for some help. If i haven't then the feedback that i haven't is welcome to so I can improve that too.
commands successfully. I just can't get the getCurrentPositionInSteps nor the setCurrentPositionInSteps to work.
I am thinking I can set a location then move using the any of the step move commands that exist in SpeedyStepper and be able to then ask for current position. I know it's not current position from the motors viewpoint rather it is the current position based on whatever commands were sent to driver using the commands within SpeedyStepper. I think it should be keeping track of the math basically from what I see.