14/09/2026
ESP32 Smart Wind Vane with True North | AS5600 + HMC5883L + ST7735 Display - This Code Actually Works!
AS5600 https://link.amazon/B03THIkKy
Compass https://link.amazon/B04khC10t
ESP32 https://link.amazon/B0cu32yMd
TFT display https://link.amazon/B0clLZjif
This is my DIY Smart Wind Vane project. I used AS5600 magnetic encoder for wind vane angle and HMC5883L compass for real north. ESP32 calculates True Wind Direction = VANE + COMPASS and shows it on ST7735 1.8 inch TFT with smooth rotating compass and arrow.
No flicker, fast SPI 40MHz, smart delta check for low CPU usage.
WIRING:
I2C: SDA-21, SCL-22 (both sensors share same wire)
TFT: CS-5, DC-2, RST-4, MOSI-23, SCK-18, VCC-3.3V, GND-GND
AS5600: VCC-3.3V, GND-GND, SDA-21, SCL-22, DIR-GND
HMC5883L: VCC-3.3V, GND-GND, SDA-21, SCL-22
LIBRARIES:
Adafruit GFX Library, Adafruit ST7735 and ST7789 Library, Wire.h, SPI.h
No library needed for AS5600 and HMC5883L - direct Wire reading.
BOARD: ESP32 DevKit V1 DOIT ESP32-WROOM-32
IDE Setting: ESP32 Dev Module
Full code in comment. Like, Share and Subscribe!
TAGS:
esp32 wind vane, as5600 esp32, hmc5883l esp32, qmc5883l esp32, st7735 esp32, wind direction sensor, true north wind vane, esp32 weather station, arduino wind vane, diy weather station