Determining heading for a robot based on the Arduino platform