IK_Scara Inverse KInematics for SCARA robotic arm, it's programed on QT and you can use the code for implementation in your microcontroller