Building my own Digital Solid-state Compass

  • Thread starter Flyboy
  • Start date
  • Tags
    Truck
  • #1
Flyboy
181
194
I'm interested in making a digital compass that I can install on my truck, just for the fun of it. I've looked online and found some simple 8-point designs, which is probably suitable for what I have in mind, but it did raise the question: What would it take to make one capable of resolution on par with a typical airplane standby/"whiskey" compass, which is usually got for 1 degree resolution? Is it something that can be done at home and interfaced with an Arduino, or would it take specialist hardware?
 
Engineering news on Phys.org
  • #2
You can buy this in IC or development board format. Check the Adafruit, Sparkfun, MikroElektronika, Digikey, Amazon, eBay, etc. web sites.

I don't know about accuracy, this often depends on your calibration in SW because of nearby metals and such. It also raises some complex questions regarding the difference between accuracy, repeatability, resolution, etc. Even those whiskey compasses with no electronics require some calibration in situ. Boats, for example, often just have a table printed to show the deviation because really great calibration is a pain.

For the old school "steampunk" version, which you could really build from scratch, look into "flux gates", which is a magnetic device sort of like a transformer and some associated control circuitry. This is what you would find in electronic compasses before 1990, or so. These will be a bit difficult to get really good performance, so it's probably not the best way, but I think the underlying concepts are really interesting.
 
Last edited:
  • #3
BTW, TIL "whiskey compass" got that name because early compasses were filled with alcohol to keep them from freezing.
 
  • Informative
Likes berkeman
  • #4
Flyboy said:
I'm interested in making a digital compass that I can install on my truck
Sounds like a fun project. Have you done any mapping of your truck yet with a regular magnetic compass? I was very surprised at all of the error that I got when trying to mount magnetic compasses in my Explorer and Suburban SUVs. The middle of the front windshield seemed to have the least error, but it was still significant (and hard to null out with the simple adjustment that those compasses had at the time.

You might consider a little more advanced project where you use 2 GPS antennas to give you a lot more accurate compass reading... :smile:

https://oceannavigator.com/gps-compass/
 
  • #5
DaveE said:
You can buy this in IC or development board format. Check the Adafruit, Sparkfun, MikroElektronika, Digikey, Amazon, eBay, etc. web sites.

I don't know about accuracy, this often depends on your calibration in SW because of nearby metals and such. It also raises some complex questions regarding the difference between accuracy, repeatability, resolution, etc. Even those whiskey compasses with no electronics require some calibration in situ. Boats, for example, often just have a table printed to show the deviation because really great calibration is a pain.

For the old school "steampunk" version, which you could really build from scratch, look into "flux gates", which is a magnetic device sort of like a transformer and some associated control circuitry. This is what you would find in electronic compasses before 1990, or so. These will be a bit difficult to get really good performance, so it's probably not the best way, but I think the underlying concepts are really interesting.
I'll have to look into the dev boards. I'm just trying to understand how they arrange the senor(s) and what type of sensor it is.

Re: accuracy of standby compasses: Yeah, aviation ones have a correction chart, in 30 degree increments, and get recalibrated every so often. You take them out to a designated area and use a handheld "master compass" to guide the plane to point the right direction. Person inside the plane then takes note of the actual readings and will correct as needed. There's usually a couple of degrees of error at the 45s, i.e. NW, SW, NE, SE. Cardinal points are usually pretty spot on.

As for flux gates, I think I've got some stuff on them from my mechanic school books, as they're still used in some aircraft. I remember then being called flux valves, and they're very picky about what hardware you use to mount them and their inspection panels. Even tools have to be carefully selected.
DaveE said:
BTW, TIL "whiskey compass" got that name because early compasses were filled with alcohol to keep them from freezing.
Yep! These days, it's a kerosene derivative, iirc.
berkeman said:
Sounds like a fun project. Have you done any mapping of your truck yet with a regular magnetic compass? I was very surprised at all of the error that I got when trying to mount magnetic compasses in my Explorer and Suburban SUVs. The middle of the front windshield seemed to have the least error, but it was still significant (and hard to null out with the simple adjustment that those compasses had at the time.

You might consider a little more advanced project where you use 2 GPS antennas to give you a lot more accurate compass reading... :smile:

https://oceannavigator.com/gps-compass/
I haven't mapped anything yet. Was waiting to see what kind of accuracy was possible first before I got that detailed. And even then, I was planning on using the aviation approach of setting it up in an environment with minimal disturbances and pointing the truck at intervals, then taking note of the reading. I figured I could probably turn that into a table that an Arduino could use as a correction.

GPS might be a later addition. It's a bit more than I'm willing to dive into right now, but in the future could be handy. I've got some projects in the future that might need that.
 
  • #6
Google for HMC5883L (just as an example).
 
  • Like
Likes Flyboy
  • #7
@Flyboy -- I saw the post below in my Facebook feed and it made me think of your project. How is it coming along? :smile:

1695687912255.png
 
  • Haha
Likes Borek

1. What is a digital solid-state compass?

A digital solid-state compass is a type of compass that uses electronic sensors to determine the direction of the Earth's magnetic field. It does not rely on a physical needle like traditional compasses, making it more accurate and durable.

2. What are the benefits of building my own digital solid-state compass?

Building your own digital solid-state compass allows you to customize the design and features to fit your specific needs. It also gives you a better understanding of how the technology works and can be a fun and educational project.

3. What materials do I need to build a digital solid-state compass?

To build a digital solid-state compass, you will need an Arduino microcontroller, an electronic compass sensor, a power source, and basic electronic components such as resistors and wires. You may also need a breadboard and soldering tools depending on your design.

4. What programming skills are required to build a digital solid-state compass?

Basic programming skills are required to build a digital solid-state compass. You will need to be familiar with the Arduino programming language and have a basic understanding of electronic circuits. There are also many tutorials and resources available online to help guide you through the process.

5. How accurate is a digital solid-state compass?

A digital solid-state compass can be very accurate, with some models having a resolution of 0.1 degrees. However, the accuracy can be affected by external factors such as electromagnetic interference, so it is important to calibrate the compass regularly for optimal performance.

Similar threads

  • Electrical Engineering
Replies
10
Views
2K
Replies
1
Views
417
  • STEM Academic Advising
Replies
5
Views
1K
  • STEM Academic Advising
Replies
15
Views
4K
  • Earth Sciences
Replies
16
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
3K
  • General Discussion
Replies
4
Views
7K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
7
Views
2K
Back
Top