So, I have successfully created a formula to scrape the coconut in a spherical fashion according to the radius of the coconut, however, there's just this one problem.
For some reason, some of the coconuts that has been scrapped didn't start from the center and instead determined that the center is in the upper left side of the coconut. Now I already had a function for placing the holder at the center before the program starts, but it seems that wasn't enough.
I needed to create a function that can take the center of the coconut and adjust it according to where the scrapper is. I already had the resolution of the image already set as a fixed variable, and the program can send the center coordinates of the coconut from the image from the Raspberry Pi to the Arduino. Though I have yet to acquire the full values of the stepper motor from one end of the corner to another, I would be able to do this, though minor help will be needed.
With all of the values set and acquired, how am I going to create the function of centering the coconut to the center of the scrapper?
Thanks in advance.