我是Arduino的新手,我已经设置了一个座椅,其中嵌入了四个50kg负载传感器。它们连接到称重传感器组合器,后者使用跨接线连接到称重传感器放大器。 VDD在Arduino上连接到5V,VCC在3.3V上,因为我不知道如何将它们短路。
我尝试将5V和3.3V接头连接器无济于事。我还尝试过更改校准。
可以在此处查看设置:https://imgur.com/gallery/zv7cCmV
#include "HX711.h"
#define calibration_factor -7050.0 //This value is obtained using the SparkFun_HX711_Calibration sketch
#define DOUT 3
#define CLK 2
HX711 scale(DOUT, CLK);
void setup() {
Serial.begin(9600);
Serial.println("HX711 scale demo");
scale.set_scale(calibration_factor); //This value is obtained by using the SparkFun_HX711_Calibration sketch
scale.tare(); //Assuming there is no weight on the scale at start up, reset the scale to 0
Serial.println("Readings:");
}
void loop() {
Serial.print("Reading: ");
Serial.print(scale.get_units(), 1); //scale.get_units() returns a float
Serial.print(" lbs"); //You can change this to kg but you'll need to refactor the calibration_factor
Serial.println();
}
我希望在将新物体放在座位上时读数会发生变化,但是我仍然会得到零读数。
任何帮助将不胜感激!