Skip to content

Commit ed30274

Browse files
committed
0.6.4 HX711
1 parent c32e28b commit ed30274

35 files changed

Lines changed: 55 additions & 31 deletions

libraries/HX711/.github/workflows/arduino-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
timeout-minutes: 5
88
steps:
9-
- uses: actions/checkout@v5
9+
- uses: actions/checkout@v6
1010
- uses: arduino/arduino-lint-action@v2
1111
with:
1212
library-manager: update

libraries/HX711/.github/workflows/arduino_test_runner.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ jobs:
66
runTest:
77
runs-on: ubuntu-latest
88
timeout-minutes: 20
9-
109
steps:
11-
- uses: actions/checkout@v5
10+
- uses: actions/checkout@v6
1211
- uses: ruby/setup-ruby@v1
1312
with:
1413
ruby-version: 2.6

libraries/HX711/.github/workflows/jsoncheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 5
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1717
- name: json-syntax-check
1818
uses: limitusus/json-syntax-check@v2
1919
with:

libraries/HX711/CHANGELOG..md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77

8+
## [0.6.4] - 2026-06-28
9+
- rename examples
10+
- update GitHub actions
11+
- minor edits
12+
813
## [0.6.3] - 2025-09-16
914
- fix #70, HX711 rate pin code
1015
- fix #70, add a doReset parameter to begin() to improve start up time.

libraries/HX711/HX711.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//
22
// FILE: HX711.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.6.3
4+
// VERSION: 0.6.4
5+
// DATE: 2019-09-04
56
// PURPOSE: Library for load cells for UNO
67
// URL: https://github.com/RobTillaart/HX711_MP
78
// URL: https://github.com/RobTillaart/HX711
@@ -54,6 +55,7 @@ void HX711::reset()
5455
_lastTimeRead = 0;
5556
_mode = HX711_AVERAGE_MODE;
5657
_price = 0;
58+
read(); // force settings.
5759
}
5860

5961

libraries/HX711/HX711.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//
33
// FILE: HX711.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.6.3
5+
// VERSION: 0.6.4
6+
// DATE: 2019-09-04
67
// PURPOSE: Library for load cells for Arduino
78
// URL: https://github.com/RobTillaart/HX711_MP
89
// URL: https://github.com/RobTillaart/HX711
@@ -15,7 +16,7 @@
1516

1617
#include "Arduino.h"
1718

18-
#define HX711_LIB_VERSION (F("0.6.3"))
19+
#define HX711_LIB_VERSION (F("0.6.4"))
1920

2021

2122
const uint8_t HX711_AVERAGE_MODE = 0x00;
@@ -54,7 +55,7 @@ class HX711
5455
bool is_ready();
5556

5657
// wait until ready,
57-
// check every ms
58+
// check every ms milliseconds.
5859
void wait_ready(uint32_t ms = 0);
5960
// max # retries
6061
bool wait_ready_retry(uint8_t retries = 3, uint32_t ms = 0);

libraries/HX711/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2025 Rob Tillaart
3+
Copyright (c) 2019-2026 Rob Tillaart
44
Copyright (c) 2018 Bogdan Necula
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy

libraries/HX711/README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ load etc. only 16 to 20 of the bits are expected significant in practice.
3636
This translates roughly to 4 or max 5 significant digits in a single measurement
3737
That's why it is advised to average (median) multiple measurements to reduce the noise.
3838

39+
Feedback as always is welcome.
40+
3941

4042
### Breaking change 0.4.0
4143

@@ -106,11 +108,13 @@ This is a close "relative" of the HX711 that allows to set the SPS to
106108

107109
### Related
108110

109-
- https://github.com/bogde/HX711
111+
- https://github.com/bogde/HX711
112+
- https://github.com/bogde/HX711/issues/172 - hx711 module design fault fix
110113
- https://github.com/RobTillaart/weight (conversions kg <> stone etc.)
111114
- https://github.com/RobTillaart/HX710AB
112-
- https://github.com/RobTillaart/HX711
113-
- https://github.com/RobTillaart/HX711_MP multipoint calibration version.
115+
- https://github.com/RobTillaart/HX711
116+
- https://github.com/RobTillaart/HX711_MP MP = multipoint calibration version.
117+
- https://github.com/RobTillaart/printHelpers engineering and scientific notation.
114118

115119
Discussion about resolution of the ADC
116120
- https://forum.arduino.cc/t/scale-from-50-kg-to-5000kg-what-adc/1139710
@@ -125,6 +129,12 @@ Never seen one and cannot tell if it will work with this library.
125129
Breakout with RATE exposed by ADAfruit
126130
- https://www.adafruit.com/product/5974
127131

132+
Reading multiple HX711's simultaneously
133+
- https://github.com/compugician/HX711-multi
134+
135+
TM7711 - compatible (seems to, needs investigation)
136+
- https://electropeak.com/learn/interfacing-tm7711-electronic-weighing-sensor-with-arduino/
137+
128138

129139
### Faulty boards
130140

@@ -373,6 +383,9 @@ Note: Having the RATE set to 10 or 80 SPS changes the time to start up.
373383
At 10 SPS it takes 400 milliseconds, at 80 SPS it takes 50 milliseconds.
374384
(See datasheet, Output settling time on page 3)
375385

386+
Note: add a pull up resistor on the CLK pin prevents waking up when the
387+
processor goes to sleep and cannot keep the CLK pin HIGH.
388+
376389

377390
### Rate
378391

@@ -440,7 +453,7 @@ Use calibrate to find your favourite values.
440453
- A+/A- uses gain of 128 or 64
441454
- B+/B- uses gain of 32
442455

443-
Colour scheme wires of two devices.
456+
Colour scheme wires of two devices. Check the datasheet of your device!
444457

445458
| HX711 Pin | Colour dev 1 | Colour dev 2 |
446459
|:-----------:|:---------------:|:---------------:|
@@ -537,6 +550,8 @@ See https://github.com/RobTillaart/HX711/issues/40
537550
- example for using rate functions.
538551
- investigate temperature compensation.
539552
- decide pricing keep/not => move to .cpp
553+
- implement HX711_RAW class, that only supports raw mode.
554+
540555

541556
#### Wont
542557

libraries/HX711/examples/HX_calibration/HX_calibration.ino renamed to libraries/HX711/examples/HX711_calibration/HX711_calibration.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// FILE: HX_calibration.ino
2+
// FILE: HX711_calibration.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: HX711 calibration finder for offset and scale
55
// URL: https://github.com/RobTillaart/HX711

libraries/HX711/examples/HX_delta_scale/HX_delta_scale.ino renamed to libraries/HX711/examples/HX711_delta_scale/HX711_delta_scale.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// FILE: HX_kitchen_scale.ino
2+
// FILE: HX711_kitchen_scale.ino
33
// AUTHOR: Rob Tillaart
44
// PURPOSE: HX711 demo
55
// URL: https://github.com/RobTillaart/HX711

0 commit comments

Comments
 (0)