Schlagwort: compass

  • This electronic compass guides you using LEDs and OLED display

    This electronic compass guides you using LEDs and OLED display

    Reading Time: 2 minutes

    Of all the tools humanity has developed for navigation over our history, the humble compass is arguably the most important. A compass is cheap to produce, reliable, and incredibly useful for every kind of navigation. But standard mechanical compasses aren’t perfect; they can stick, are easy for people to misread, and don’t always indicate exact angles well. This simple digital compass built by Mirko Pavleski solves those problems.

    There are, of course, many digital compasses on the market that will work just as well as this device. But this could still be a fun weekend project. It is a digital compass that aids navigation in two ways. First, it indicates magnetic north using an outer ring of LEDs. But there are only 60 LEDs, so that can be off by as much as three degrees in either direction. For that reason, this device also contains an OLED display that shows the exact angle (down to two decimal places) relative to magnetic north.

    This is a very simple device to build and it only requires four components: an Arduino Nano board, an HMC5883L compass module, a ring with 60 WS2812B individually addressable RGB LEDs, and an OLED screen. If you want to use it on the go, a standard 9V battery will provide portable power. Those components fit into a basic 3D-printable case that protects the electronics and puts everything in the correct orientation.

    [youtube https://www.youtube.com/watch?v=4SRXFxqP2Fw?feature=oembed&w=500&h=281]

    The post This electronic compass guides you using LEDs and OLED display appeared first on Arduino Blog.

    Website: LINK

  • This compass reads the correct heading even when tilted

    This compass reads the correct heading even when tilted

    Reading Time: 2 minutes

    This compass reads the correct heading even when tilted

    Arduino TeamMay 15th, 2019

    Consider an analog or even digital compass. While you can reasonably expect either to point towards magnetic north when held flat, when you add tilt and/or roll to the equation, things get a bit wonky. That is unless you’re maker “lingib,” who was able to construct a magical compass using an Arduino Uno and an MPU-9250 IMU unit, with an accelerometer/gyro in the same package.

    As seen in the video below, when the compass unit is set at an angle, the heading output varies significantly—as much as 100 degrees according to the project write-up. When stabilization is turned on, however, the gyro/accelerometer is used to compensate for magnetometer heading variations—reducing output errors to just a few degrees.

    This Instructable explains how to make a tilt compensated compass using an Arduino Uno R3, an LCD display, and an IvenSense MPU-9250 multi-chip-module that contains an MPU-6050 accelerometer / gyro and an AK8963 magnetometer within the same package.

    The LCD simultaneously displays the heading, (P)itch, and (R)oll.

    The heading accuracy is within 2 degrees depending on how well the compass has been calibrated.

    Without tilt compensation the compass headings vary significantly … sometimes by as much as 100 degrees.

    When stabilised, the tilted compass headings only vary by one or two degrees … the improvement is amazing.

    The tilt stabilization may be disabled by placing a jumper wire between Arduino pins A0 and GND.

    [youtube https://www.youtube.com/watch?v=PY_17f5RByI?feature=oembed&w=500&h=375]

    Website: LINK