Inverse kinematics -matlab to arduino

i have inverse kinematics equations in matlab code for a robot arm , how could i send them to arduino , is it even possible? 1

1 Like

Via Serial.
Not sure what good it would do you.
What are you trying to achieve?

That would depend a lot on how the Arduino controls the robot arm.

control the robot arm with the arduino board

1 Like

by entering a certain position in xyz space to arduino
then arduino should solve the required angles for this position

And have you written a MATLAB translator for Arduino?
If not, what efforts have you made to translate the MATLAB equations to C++?

I have no idea about MATLAB translator but it's not hard to translate the MATLAB code to c++
If I did so what is the next step

Then you don't need a computer running Matlab.

Yep

Arduino is programmed in C/C++, which you can have Matlab produce. It is available as an add-on.

so , if i have a c/c++ code , could i enter it for arduino ? how

In the Arduino IDE, chose menu option file>new and enter your code in the bodies of the setup() and loop() functions.

The IDE comes with a bunch of examples for you to study.

i didn't mean that
my question is how could i write arduino code in pure c/c++

Arduino code IS pure C/C++.

sure?

Yep.

ok thank you man

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.