<div dir="ltr">-All,<div>     I was perusing <a href="http://instructables.com">instructables.com</a> and came across a recent instructable about a "smart car" type robot using a GPS and a magnetometer. In the article, the author mentioned that the headers that he used on the magnetometer module, contained iron and were a source of error when using his magnetometer. </div><div><br></div><div>Quote from the instructable:</div><div>" <span style="color:rgb(85,85,85);font-family:Nunito,helvetica,arial,sans-serif;font-weight:700">I cannot stress enough how important it is to get this part of the project </span><span style="color:rgb(85,85,85);font-family:Nunito,helvetica,arial,sans-serif;font-weight:700">Exactly Right. </span><span style="color:rgb(85,85,85);font-family:Nunito,helvetica,arial,sans-serif">There are so many things that could go wrong in this part of the build. The first step in adding the compass to our robot is to solder header pins to the compass. We</span><span style="color:rgb(85,85,85);font-family:Nunito,helvetica,arial,sans-serif;font-weight:700"> must </span><span style="color:rgb(85,85,85);font-family:Nunito,helvetica,arial,sans-serif">make sure that our pins are not made of ferrous material, in other words no iron or anything magnetic should be anywhere near our magnetometer; otherwise, our compass readings will be inaccurate. When we tell our robot to turn right, it needs to turn exactly 90 degrees to the right, or at least very close to it.</span><p style="margin:3px 0px 20px;color:rgb(85,85,85);font-family:Nunito,helvetica,arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:300;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I made a Youtube Video demonstrating this problem a while back. My magnetometers came with it's own pin connectors that I would need to solder to the HMC5883L. After noticing that my compass readings were consistently wrong I started looking for the source of the problem. Well after a lot of aggravation I finally discovered that the pins were ferrous and throwing off my compass. Here is the Youtube video demonstrating this. "<span style="font-family:arial,sans-serif;color:rgb(34,34,34)"> </span></p><p style="margin:3px 0px 20px;text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:300;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">The YouTube video is at:<a href="goog_680161816"> </a></span><a href="https://www.youtube.com/watch?time_continue=2&v=UysOlmQC73o">https://www.youtube.com/watch?time_continue=2&v=UysOlmQC73o</a></p><p style="margin:3px 0px 20px;text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I always use Nylon fasteners when working with magnetometer modules, but had not thought to check the header material. Going through my bin of 100 mil male headers, I checked several, and some were magnetic (bought bulk from China) and some were not (source unknown - most likely Tanners or Fry's). </p><p style="margin:3px 0px 20px;text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I will take this into account next time I use a magnetometer module. </p><p style="margin:3px 0px 20px;text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Regards,<br>Doug P.</p><p style="margin:3px 0px 20px;text-align:left;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></p></div></div>