r/matlab • u/ss4stef • 52m ago
HomeworkQuestion Using AI for Servo Lab in Matlab
We have not used AI for anything in my Matlab class but the final lab assignment is designed to meet a learning objective that includes it. Because of this we are not allowed to write the code ourselves, the goal is to use AI entirely.
The lab premise is simple, my instructor will come up to our whiteboard and draw 2 dots. We need to then run the matlab program to have the 2 servo arms draw a straight line connecting them.
I am running into issues with getting the AI to understand where the servo arms are moving, and defining points rigorously. I need to be able to look at two points on the whiteboard and tell the program where they are so that the script will connect them with an expo marker.
Another issue is my school doesn’t pay for AI accounts and on the free version of claude and gemini we ran out of tokens that allow for program writing and screenshot uploads. Chatgpt is even worse as it seems to allow like 2 screenshot uploads before you run out of tokens.
Things we have tried:
- Uploading the lab handout pdf and explaining in detail the goal of the lab.
- Uploaded photos of the Servo whiteboard setup and included measurements of the board, the arms, and the degrees of rotation.
- Explained to the ai that the test points it gave us yielded different locations on the board than it intended and what those actual points were
- Had the Ai draw a grid over the whiteboard to determine (x,y) coordinates for us to test points
The main issue is that the test points are always very off and sometimes have the arms rotate off the board completely.
Any advice would be greatly appreciated.
