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

Описание к видео A Quick ESP32 Compass Project with a GY-271 Magnetic Sensor Module

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
https://amzn.to/3N5ONMI

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

Code on Github
https://github.com/jordancrubin/esp32...

Volos Projects Channel
   / @volosprojects  

#esp32 #platformio #arduino

Комментарии

Информация по комментариям в разработке