Tag: compass

2 articles found.

BNO055 Orientation Sensor Library for Proteus Simulation

BNO055 Orientation Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the BNO055 module, an OLED artificial horizon and two LEDs

Hello friends, I hope you all are doing great. Today, I am going to share the new BNO055 Orientation Sensor Library for Proteus Simulation. Most motion sensors hand you raw numbers - an acceleration here, a rotation rate there - and leave the hard part to you: turning them into an angle that does not drift. The BNO055 does that part itself. An accelerometer, a gyroscope, a magnetometer and a small processor share one package, and the processor runs the fusion, so you simply read the heading, the roll and the pitch. With this library you can run a full Proteus simulation of the module, register by register, so that the code you test here works with the real board. The module comes alive at run time: its PWR LED lights with the supply, a FUSION LED shows when the fusion is running, and a small compass needle on the board turns with the heading. The demo is an artificial horizon: an Arduino reads the orientation as the board turns, rolls, pitches and gets shaken, draws the horizon and the heading on an OLED, and lights a LEVEL or a TILT LED. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the IMU board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the BNO055 Orientation Sensor Library for Proteus Simulation: Every ...

HMC5883L / QMC5883L Compass Library for Proteus V1.0: GY-271 Module

HMC5883L / QMC5883L Compass Library for Proteus V1.0: the GY-271 module with its STATUS panel and the Advance pop-up

Hello friends, I hope you all are doing great. Today, I am going to share the new HMC5883L / QMC5883L Compass Library for Proteus V1.0. The GY-271 is the small blue compass module that you find in robots, rovers, drones and digital compass projects. It measures the Earth's magnetic field on three axes, and from two of them the Arduino works out the heading: how many degrees the board points away from north. There is a catch: GY-271 boards come with two different chips, the HMC5883L and the QMC5883L, and a sketch written for one does not work on the other. Now you can build and test both in Proteus. Behind the parts sit our own models, not parts that show a number. Each chip answers the Arduino exactly as its datasheet says, with its own address, its own registers and its own byte order. You turn the board to any heading, put a magnet on it, tilt it, or turn it a full circle while the sketch calibrates. You get four devices: each chip as a Simple device with a live STATUS panel and the board's controls, and as an Advance device with a pop-up window and the test tools. The demo runs the Adafruit HMC5883 Unified library on our Arduino UNO V4.0 and finds whichever chip is on the board. NOTICE: a compass is easy to fake: hand the Arduino a heading from a property. We wanted more. Our GY-271 feels the Earth's field from the direction the board points, adds the magnet and the tilt, and turns the result into the chip's own counts and registers, so the Adafruit library reads it ...