# STM32F103_WindSensor **Repository Path**: hilbert-wang/STM32F103_WindSensor ## Basic Information - **Project Name**: STM32F103_WindSensor - **Description**: https://github.com/KoSik-prog/STM32F103_WindSensor - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-23 - **Last Updated**: 2024-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

WindSensor Library for STM32

- HAL library uses

Description:

Library for handling a sensor constructed based on 2 load cells HX711. Sensors with a measurement range up to 1kg were used. The HX711 system operates at a frequency of 80Hz. In the "dataReader" directory, you can find Python scripts for visualizing measurements. The "visChart" program plots points on a Cartesian coordinate system (the red dot indicates the current calculated measurement). The "visWind" program draws a wind direction indicator and wind strength indicator.

How to use:

INIT:

struct HX711 windSensX = {X_HX711_DT_GPIO_Port, X_HX711_DT_Pin, X_HX711_SCK_GPIO_Port, X_HX711_SCK_Pin, 0}; struct HX711 windSensY = {Y_HX711_DT_GPIO_Port, Y_HX711_DT_Pin, Y_HX711_SCK_GPIO_Port, Y_HX711_SCK_Pin, 0}; wind_init(&windSensX, &windSensY);

READ:

wind_collect(&windSensX, &windSensY, 70, 10); needCalibFlag = wind_measure(&windSensX, &windSensY); if(needCalibFlag == 1){ hx711_tara(&windSensX, 30); hx711_tara(&windSensY, 30); } ## :memo: License ## This project is licensed under the MIT License. For more details, please refer to the [LICENSE](LICENSE.md) file.

Made by KoSik


Back to top