Hello,
I am trying to simulate and control the Lynxmotion AL5D 4DOF (without gripper rotation) from MatlabR2015 (connected to a Arduino UNO pwm and with USB to Matlab) , first drawing simulation of the arm and then send the parameters to arm.
I have done the direct and inverse kinematics in Matlab, using the Denavit Heartenberg and trigonometric approach for inverse; but as always the simulation doesn’t correspond to reality.
The main issue is that the simulation is done using positive and negative angles (-90 - 90) and the arduino addon from Matlab sends only angles between 0 and 180 and i haven’t got a way to transform the angles for the arm to look like simulation.
For example, for the specified angle zero the simulation draws a L, but the same position for the AL5D corresponds to 90 degree for all servos.
Adding 90 degree for zero angle works, but for other angles is not corresponding.
Another issue is the common problem, elbow up and elbow down, if someone understands how to choose between two cases in this situation would be helpful, in theory it would be a minus or plus sign, but when comes to control of the arm is not the same as simulation, as a conversion for the angles is needed.