Tag: magnetometer

2 articles found.

MPU9250 Library for Proteus V1.0: GY-9250 9-Axis IMU for Arduino

MPU9250 Library for Proteus V1.0: the GY-9250 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 MPU9250 Library for Proteus V1.0. The MPU-9250 is the 9-axis motion sensor on the purple GY-9250 module: a 3-axis accelerometer, a 3-axis gyroscope and a 3-axis magnetometer in one small package. Drones, self-balancing robots, gimbals and head trackers use it to know their roll, pitch and yaw. Now you can build and test those projects in Proteus. Behind the part sits our own model, not a part that shows three angles. The MPU-9250 answers the Arduino exactly as its register map says: the sample rate, the ranges, the offset registers, the FIFO and the INT pin, and the AK8963 magnetometer hidden behind the I2C bypass. You turn the board in 15 degree steps, rotate it, wave it in a figure eight or put a magnet on it, and the gyro sees every turn. You get two devices: a Simple device with a live STATUS panel and the board's controls, and an Advance device with a pop-up window and the test tools. The demo runs the MPU9250 library by hideakitai with its Madgwick filter on our Arduino UNO V4.0. NOTICE: an IMU is easy to fake: hand the Arduino three angles from a property. We wanted more. Our MPU-9250 turns the board's attitude into gravity, rotation and the Earth's field on each chip's own axes, in each chip's own registers, so the hideakitai library and its Madgwick filter work out the angles exactly as on your desk, and a missing magnetometer, a slow loop or a magnet next to the board fails exactly as ...

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 ...