#include "HX711.h"
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 3;
const int LOADCELL_SCK_PIN = 2;
#define calibration_factor 103000 _________________________________________ ไม่ค่อยเข้าใจ
char Size = '0' ;
HX711 scale;
void setup () {
Serial.begin(9600) ;
Serial.println("ArduinoAll Calibrating...");
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
scale.set_scale(calibration_factor) ; _______________________________________ ไม่ค่อยเข้าใจ
scale.tare();
Serial.println("OK start : ");
}
void loop() {
Serial.print("Weight:");
Serial.print(scale.get_units(),3); _______________________________________ ไม่ค่อยเข้าใจ
Serial.println(" kg");
เขียน arduino load cell อยากรบกวนช่วยอธิบายหน่อยครับ แล้วอยู่โหลดเซลล์ไม่ทำงาน
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 3;
const int LOADCELL_SCK_PIN = 2;
#define calibration_factor 103000 _________________________________________ ไม่ค่อยเข้าใจ
char Size = '0' ;
HX711 scale;
void setup () {
Serial.begin(9600) ;
Serial.println("ArduinoAll Calibrating...");
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
scale.set_scale(calibration_factor) ; _______________________________________ ไม่ค่อยเข้าใจ
scale.tare();
Serial.println("OK start : ");
}
void loop() {
Serial.print("Weight:");
Serial.print(scale.get_units(),3); _______________________________________ ไม่ค่อยเข้าใจ
Serial.println(" kg");