Hello everyone, I am having an issue and can’t seem to get a solution or possible lead in obtaining a solution to my problem from web searches.
My issue that I need help with is, I have 2 nema 17 motor attached to the adafruit motorshield v2 which is connected to an arduino uno. I am using matlab to control the stepper to move in a grid like pattern. A 20 by 20 grid, where 0,0 is its origin. The setup that I have does what I want it to do, raster scanning using a carriage with a sensor attached, where one stepper controls the x axis and the other the y axis.
I am using the function move(obj, value) in matlab.
The stepper motors are defined as;
I am able to successfully move the steppers through the grid in both x and y direction,
At the end of the grid, the position of the stepper should be at 0,20, however i an having an issue where throughout the scan each row going upwards the x axis is some how being displaced. So instead of the final position being 0,20, it is at something like 4,20 on the grid.