My project consists of a robot with two stepper motors and three servo motors. Connected to an Arduino Uno with a CNC Shield. It's basically like a programmable SCARA robot.
I need to create a c library, external to the Arduino code, this would run on netbeans and would have two functions as follows:
parameters ( m1, m2, m3, m4, m5 )
This function uses a library to write to the serial port and what Arduino gets is a string with the following format
Those are just the positions that the motors should be at.
It tells Arduino all positions were already sent and it should run them one after the other.
What would be the best way to save all the positions?
I was thinking of something like an array int, but I have some questions about that
First, it's not going to be resizable, and I don't know how many times the parameters function is going to be executed before the run function
Second, is there a limit on how many integers can I store in an array, given that Arduino has a fixed amount of memory?
Thanks in advance!