Smart device implementation on BBB for controlling a servo motor