Hardware implementation of robotic arm for motion control using infrared communication