You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to use the TeensyStep4 library to run 10-12 steppers motors. The intent is that I animate the path of the camera rig/model rig in an animation software, query each keyframes position/angles, and export it as a kuper ascii text file. The file is essentially a matrix containing columns representing each stepper motor/axis and the rows representing the keyframes specific position/angle.
I've already written a python script to export the kuper ascii file and the associative code to read the text file and reconfigure it into a proper numerical matrix (lot's of converting strs to numbers, but it works great).
The basic intent of the system is to have the camera exposure time (per frame) dictate the feedrate of the stepper motors. I have a nested for loop that grabs that specific column/stepper motor's row/position and calculates the delta from the next position.
For example, if I'm exposing each frame for a second, and I need the camera to go from 0mm to 100mm, the speed of the stepper needs to go 100mm/s to get to that position in time. Once I stack multiple stepper motors with the same intent, I also need to adjust the speed of the others to match the currently-fastest stepper between those keyframes.
It seems like the StepperArray.ino example is the step in the right direction. However, I was wondering if the library can handle setTargetAbs function calls for a group of steppers within that nested for loop of keyframe rows?
If anything did not make sense, please let me know and I will try my best to clarify.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm looking to use the TeensyStep4 library to run 10-12 steppers motors. The intent is that I animate the path of the camera rig/model rig in an animation software, query each keyframes position/angles, and export it as a kuper ascii text file. The file is essentially a matrix containing columns representing each stepper motor/axis and the rows representing the keyframes specific position/angle.
I've already written a python script to export the kuper ascii file and the associative code to read the text file and reconfigure it into a proper numerical matrix (lot's of converting strs to numbers, but it works great).
The basic intent of the system is to have the camera exposure time (per frame) dictate the feedrate of the stepper motors. I have a nested for loop that grabs that specific column/stepper motor's row/position and calculates the delta from the next position.
For example, if I'm exposing each frame for a second, and I need the camera to go from 0mm to 100mm, the speed of the stepper needs to go 100mm/s to get to that position in time. Once I stack multiple stepper motors with the same intent, I also need to adjust the speed of the others to match the currently-fastest stepper between those keyframes.
It seems like the StepperArray.ino example is the step in the right direction. However, I was wondering if the library can handle setTargetAbs function calls for a group of steppers within that nested for loop of keyframe rows?
If anything did not make sense, please let me know and I will try my best to clarify.
Thank you for your time!
Beta Was this translation helpful? Give feedback.
All reactions