The UI is designed in SquareLine Studio and built with PlatformIO.
Parts required:
1. ESP32 C3 Supermini
2. 1.28" GC9A01 display (7 Pin Version)
AliExpress➡️ Buy option 1 Buy option 2
3. QMC5883P magnetometer (GY-271 module)
(Note: This project is based on QMC5883P not HMC5883L)
Source Code:
Visit my github repository for code https://github.com/LazydaysCr/micro-compass
If you face any issue send me an email with subject "micro compass" to abid.business01@gmail.com







I'd love one of these for aligning a telescope for astrophotography, does it reflect magnet or true North?
ReplyDeleteNot true north. Magnetic north only.
DeleteThe hardware MEASURES magnetic north, but you can use a fixed offset in the code, or an adjustable offset from either GPS, or an external knob to have it display true north.
DeleteThis comment has been removed by the author.
ReplyDeleteCan you integrate a battery?
ReplyDeleteI’d love as well
DeleteI wanted this to work so bad. I’m a pilot and low how this matches a vertical compass card, however I was not able to get it to accurately read known headings. When turning the the Magnetometer 180 from a fixed point it would only read 165 degrees. I’ve calibrated twice with no change. Would really like for it to work correctly.
ReplyDeleteI have the similar problem! Definitely a cool project. I ran the calibration test, entered the results and set the heading offset. It works perfectly from north to west but when I rotate from north to east it shows 120 degrees and south shows 220 degrees.
DeleteAnybody know why this is happening? I'm thinking it's a bad magnatometer
Just like a whisky compass this needs an adjustment mechanism so it can be 'swung'. i.e. calibrated by offsetting the magnetic field of the actual mechanism so it detects only the earths magnetic field. It would need a small ferous magnetic object nearby that can be adjusted in horizontal XY position to do this. As a pilot you should know this.
ReplyDelete