I have compiled the necessary files for you. You can download the library package (containing the .LIB and .HEX files) from a shared repository, or follow the manual creation steps below.
#include "HX711.h" // Define Pins const int LOADCELL_DOUT_PIN = 3; const int LOADCELL_SCK_PIN = 2; HX711 scale; void setup() Serial.begin(9600); scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN); // Set scale factor for simulation scale.set_scale(2280.f); scale.tare(); void loop() if (scale.is_ready()) long reading = scale.get_units(10); Serial.print("Weight: "); Serial.println(reading); else Serial.println("HX711 not found."); delay(1000); Use code with caution. Running the Simulation Compile the code in Arduino IDE and export the file. hx711 proteus library
Limitations