Skip to content

Commit 3cfd1b8

Browse files
committed
docs(wokwi-hx711): document automation controls
1 parent 5a4efe1 commit 3cfd1b8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/parts/wokwi-hx711.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ _note that `E+`/`E-`/`A+`/`A-`/`B+`/`B-` pins are non-interactive and rendered b
3838

3939
The HX711 amplifier allows you to easily read load cells and evaluate changes in resistance. A Wheatstone bridge is used to connect load cells to the IC, which is in turn connected to the microcontroller via `VCC`, `DT`, `SCK`, and `GND`. Use `begin()` to initialize the scale and `set_scale()` and `tare()` to calibrate it. `power_down()` and `power_up()` can be used to bring the ADC into and out of low power mode. `get_value()` and `get_units()` are used to read the ADC minus tare and divided, passing an optional integer value to obtain that number of values, averaged. Refer to the [`HX711` Arduino library](https://github.com/bogde/HX711#features) for more details on features and calibration.
4040

41-
Note that this chip does not implement channel B or gain settings of 32/64/128. The raw readings are from `0-2100` for the `"type":"5kg"` type,
41+
Note that this chip does not implement channel B or gain settings of 32/64/128. The raw readings are from `0-2100` for the `"type":"5kg"` type,
4242
and `0-21000` for the `"type":"50kg"`.
4343

4444
## Arduino code example
@@ -62,6 +62,14 @@ void loop() {
6262

6363
Try [this example on Wokwi](https://wokwi.com/projects/345134808605655636)
6464

65+
## Automation controls
66+
67+
The HX711 can be controlled using [Automation Scenarios](../wokwi-ci/automation-scenarios). It exposes the following controls:
68+
69+
| Control | Type | Description |
70+
| ------- | ----- | --------------------------------------- |
71+
| load | float | Set the load value of the scale (in kg) |
72+
6573
## Simulator examples
6674

6775
- [HX711 demo](https://wokwi.com/projects/344192176616374868)

0 commit comments

Comments
 (0)