Design and the mechanism of controlling a robotic arm