I'm going to run an IAC stepper controlled by an Arduino that's already handling a bunch of auxiliary stuff for my Microsquirt, talking to it over CAN. I'm getting the step value in the broadcast and can run the motor according to that position, but the question is how to handle the homing.
I was going to initialize my view of the "current" stepper position at power-up from the first position sent by the MS, but it has already gone through a substantial part of the homing sequence before I get the first broadcast packet. I think I need to independently home the motor before starting to listen to what position the MS is wanting. However, this requires me knowing how the IAC step value is initialized, and I haven't seen it documented exactly how this step value is defined.
If the settings are such that, say, wide open steps is 100 and homing is 150, does this mean that:
- If homing direction is closed, homing takes 150 steps in the closing direction and then calls the current position 0?
- If homing direction is open, homing takes 150 steps in the open direction and then calls the current position 100?
Thanks,
/Patrik