The doubt was came in mind after seeing Arduino documentation. I have to turn my Arduino uno robot 20 degrees without using encoders. So I surfed on Internet for how can I do that. Interestingly I found the reference available on above link. They are not saying about any specific Arduino board. So I have to know that can I do this stuff on my Arduino uno? Also I have to know is that every Arduino comes with onboard compass?

  • No, there is no built-in compass on an arduino microcontroller. However, you can interface the arduino with a magnetometer sensor to measure the direction of the earth's magnetic field, and use that as a compass. – MichaelT Feb 5 '19 at 18:16
  • If you simply want to obtain a controlled rotation then use a stepper motor. – MichaelT Feb 5 '19 at 18:17
  • the documentation is for this hardware store.arduino.cc/arduino-robot – Juraj Feb 5 '19 at 18:19

No current Arduino board comes with an on-board compass. That function description comes from the documentation for the Arduino Robot, which is a retired product.

There may be other "maker" dev boards, such as the Adafruit Circuit Playground Express which have on-board compass peripherals.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.