Tag: QMC5883L

2 articles found.

STM32 Black Pill Library for Proteus: MPU9250, Compass, OLED

STM32 Black Pill Library for Proteus: an attitude and heading display with an MPU9250, a GY-271 and an OLED

Hello friends, I hope you all are doing great. Today, I am going to share the STM32 Black Pill Library for Proteus. The Black Pill from WeAct Studio is the favourite cheap STM32 board: an STM32F411CEU6 - an ARM Cortex-M4 with a floating-point unit at 100 MHz, 512 KB of flash and 128 KB of RAM - on a 53 x 21 mm board with USB-C and 40 pins that fits a breadboard. With this library it runs your STM32 Arduino sketch in Proteus 8.5, with the STM32 core's pin names. The demo is an attitude and heading display for a boat, a rover or a camera mount. An MPU9250 gives the pitch and the roll, a GY-271 compass the heading, a 1.3" SH1106 OLED shows a compass needle or a bubble level, and an ESP-01S puts the Black Pill on Wi-Fi with a page for a phone and a laptop. Tilt the mount past 20 degrees and the alarm starts. NOTICE: Proteus has no STM32F411 model, so our team has put a lot of effort into building this board ourselves: the Black Pill's pins, buttons and LEDs are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the STM32 Black Pill board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the STM32 Black Pill Library for Proteus: The name comes from its older cousin, the Blue Pill - a blue STM32F103 board with a slow 72 MHz Cortex-M3 and a famous wrong USB resistor. WeAct Studio made a ...

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