void loop() long reading = scale.read(); Serial.println(reading); delay(500);
Connect to any digital input pin on your microcontroller (e.g., Arduino Pin A0 or D3). This pin shifts out the 24-bit data.
The HX711 Proteus library is an essential tool for engineers and hobbyists looking to simulate digital weighing scales and force measurement systems
Open Proteus and create a new schematic capture project. Use the Component Mode (click the button) to search for and add the following components to your workspace: Arduino Uno (or your preferred microcontroller library) HX711 Module / Chip (from your newly installed library) hx711 proteus library
A known bug existed in the HX711 simulation model of some older versions of Proteus regarding the switching between Channel A (gain 128) and Channel B (gain 32). The simulation would ignore the change to Channel B.
Connect the (Data Output) pin of the HX711 to Arduino Digital Pin 3 .
void loop() if (scale.is_ready()) long reading = scale.read(); Serial.print("HX711 reading: "); Serial.println(reading); else Serial.println("HX711 not found."); void loop() long reading = scale
Ensure the downloaded compressed archive contains at least two critical file types:
If you cannot get the library to work, consider these alternatives:
The installation path varies depending on your Proteus version: Use the Component Mode (click the button) to
Often, a sample hex file for the component simulation model. Step 2: Install the Library in Proteus
Connect the variable output of your POT-HG to the A+ pin of the HX711. Connect A- to ground (or set up a full Wheatstone bridge simulation using four resistors if advanced accuracy is needed). Digital Side (Outputs):
You can find the library on various electronics forums and repositories. A trusted source is and GitHub . Search for:
Note: ProgramData is a hidden folder. Type it directly in the address bar.