The BBC micro:bit has a built-in compass. This video explains how you can use it in your projects. Find out more at https://www.microbit.org/get-started/user-guide/features-in-depth/
No download links available.