Calibration for single yoke apparatus

This commit is contained in:
2025-12-02 11:47:44 -06:00
parent 0580c44aa3
commit 942827b36f
2 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
#ifndef CONSTANTS_H
#define CONSTANTS_H
#define OFFSET 19532
#define SCALE 108.633064
#endif

View File

@@ -6,6 +6,7 @@
#include "HX711.h"
#include "CalibConsts.hpp"
HX711 myScale;
@@ -24,14 +25,14 @@ void setup()
Serial.println();
myScale.begin(dataPin, clockPin);
myScale.set_offset(26784);
myScale.set_scale(106.557518);
myScale.set_offset(OFFSET);
myScale.set_scale(SCALE);
}
void loop()
{
// Serial.println(myScale.get_units());
calibrate();
Serial.println(myScale.get_units());
// calibrate();
}