This project was done at school with a classmate, the parts were designed in Blender and then 3D printed. Once all the parts were assembled, servomotors were added to give it movement. This video showcases a bit of the process by which it was done.
I think this is the code i used: https://github.com/asefrind/roboticarm