Hi all,
I am using an Arduino Nano (ATmega328P and CH340 chips). 1KG Load cell and no-ground-plane green HX711 ADC. I am using the HX711_ADC library.
I am trying to understand the Library mechanism for setting the Calibration Variable. Here is the snippet of code from their example file (Read_1x_load_cell.ino):
float calibrationValue; // calibration value
calibrationValue = 696.0; // uncomment this if you want to set this value in the sketch
#if defined(ESP8266) || defined(ESP32)
//EEPROM.begin(512); // uncomment this if you use ESP8266 and want to fetch the value from eeprom
#endif
//EEPROM.get(calVal_eepromAdress, calibrationValue); // uncomment this if you want to fetch the value from eeprom
It appears that the variable calibrationValue can be set 3 ways. First is a manual assignment (calibrationValue = 696.0;). I don't want to do this.
The second and third ways are to pop the value from the eeprom, which was populated by running the also-included calibration sketch.
The second option says: "uncomment this if you use ESP8266 and want to fetch the value from eeprom". I assume this is not for an Arduino Nano, so I should comment out this line.
I think the third option:
//EEPROM.get(calVal_eepromAdress, calibrationValue);
is what I should use for a Nano, correct?