5
Example program
You can download the example Arduino® program by going to the official Whadda github page:
github.com/WhaddaMakers/Electronic-scale-load-cell-sensor
1. Click the “Download ZIP” link in the “Code” menu:
2. Unzip the downloaded file, and browse to the calibrate_sensor folder. Open the
calibrate_sensor Arduino® sketch (calibrate_sensor.ino) located in the folder.
3. Use the Arduino Library manager to install the HX711 Arduino Library, by going to Sketch >
Include Library > Manage Libraries… , typing in HX711 Arduino Library in the search bar and
clicking “Install”:
4. Connect your Arduino compatible board, make sure the correct Board and connection port are
set in the tools menu, and hit Upload
5. Open the serial monitor by clicking the serial monitor button , make sure the baudrate is set
at 9600 baud. No weight should be attached yet to the measuring side of the load cell.
6. Follow the on-screen instructions to generate the required calibration parameters.. Once a few
zero weight readings have been received, put a known weight on the measuring end of the load
cell. You can adjust the calibration parameter to get an accurate reading of your known weight
by sending the +and –characters using the serial monitor, which will increase and decrease the
calibration factor by a set amount respectively.