One of the drawbacks of current electronic compass technology, integrated in a portable device such as a smartphone or cellular phone, is that due to being subjected to widespread and variable magnetic interference sources, the compass direction output is in error quite often.