A Quick ESP32 Compass Project with a GY-271 Magnetic Sensor Module @rubin-tech
A Quick ESP32 Compass Project with a GY-271 Magnetic Sensor Module  @rubin-tech
Uploaded December 2023 | Updated September 2026, 2 weeks ago
I had purchased a triple axis Magnetic Sensor module, model GY-271and today were going to use the devboard to put together a fun project with it. After soldering the supplied pins onto the board, It will be wired into the development board along with my 240x240 tft LCD display module and my 4x20 LCD module assist with the development.

We get underway in VScode with platform IO. Installing the relevant Alibraries and get through a few library challenges. A quick test of the supplied example and everything is working. Then its time to add the LCD to provide into so we can detach from the computer.

An example on the bench shows good function of XYZ on the LCD display. Now its time for the TFT LCD display. the tft_espi library is installed and configured for the LCD display. Basic code is added to test the tft display, a red colour means it worked.

Initially I was going for a simple design, instead I saw a project from a channel I enjoy , Volos Projects, link below, In this project there was a rotating gauge that I believe could be adapted to a compass.

Having downloaded the project it would need lots of changes to work in the compass project. Once those changes were made the implementation came out great.

HiLetgo GY-271 QMC5883L 3-5V IIC Triple Axis Compass Magnetic Sensor Module
amzn.to/3N5ONMI

MakerFocus TFT LCD Screen Display 1.3inch TFT LCD Module, 240x240
amzn.to/47YrcFH

Code on Github
github.com/jordancrubin/esp32_compass

Volos Projects Channel
youtube.com/@VolosProjects

As an Amazon Associate I earn from qualifying purchases. If you choose to purchase any of these items the links above provide a small commission that I use towards the making of these videos at no additional cost to you.

#esp32 #platformio #arduino
A Quick ESP32 Compass Project with a GY-271 Magnetic Sensor ModuleESP32 Automated Irrigation Control System Project - PART 4 - Hardware AssemblyDyson V11 Torque Drive - Unboxing Test and Torque drive problem head wont spin and repairHayward AquaRite Turbo Cell - When is it time to replace the salt cell in your pool?Jura Coffee Machine Error 8, 1, 2, 3, 4 Fix | Step-by-Step DIYRoomba I7+ - Unboxing and Review for Pet owners - Is it worth it?Roborock S8 Pro Ultra Maintenance for Performance and Odor ControlFoodsaver FM3600 Not working - No Power, No lights - Troubleshoot whyKobalt Battery Pack Repair and UpgradeRestoring a 1940s Webster-Chicago Wire Recorder for 50,000 Subscribers!Rock Island 1911 Cleaning Disassembly and Reassembly for BeginnersGE Profile Ultrafast 2in1 Combo Washer Dryer - Out of Balance Repairs, New Maintenance Tricks & More
Rubintech |

A Quick ESP32 Compass Project with a GY-271 Magnetic Sensor Module

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER