Hi, I have got a scale with a Load Cell that I am trying to integrate into esphome.
I have setup the load cell, but am unable to get any readings from it, instead I am just getting a static reading from the HX711, it does not change.
Wiring like this.
LOAD CELL | HX711
RED | E+
BLACK | E -
White | A-
GREEN | A +
[13:31:32][D][hx711:031]: 'HX711 Value': Got value -8388608
[13:31:32][D][sensor:094]: 'HX711 Value': Sending state -8388608.00000 kg with 3 decimals of accuracy
Nothing pops up. Control your wiring.
Anyway, check the datasheet of your load cell, sometimes they use color coding differently from “standard”.
Also, generally don’t use Gpio12, it’s strapping pin and has internal pulldown.
And lastly, there’s no correct way of using that green module with 3.3V MCU. Supply voltage for excitation should be 5V, but giving that to VCC pin would/could damage Esp. There is module with separate VCC and VDD available.
If you have the wires disconnected, you should be able to measure the resistance between green and white, which should be around 300-1000 ohm. Resistance between black and red should be 10-20% higher than that between green/white.
I got this working last night by looking at a different diagram,
I wired it
Red >> HX711 A +
Black >> HX711 E -
White >> HX711 E+
Green >> HX711 A -
But, I am getting fluctuating values when there is no weight applied.
How am I supposed to get accurate readings with fluctuating values. Can I add some filters to try bring the noise down?
[10:05:49][D][hx711:031]: 'HX711 Value': Got value 26006
[10:05:49][D][sensor:094]: 'HX711 Value': Sending state 26006.00000 kg with 3 decimals of accuracy
[10:05:54][D][hx711:031]: 'HX711 Value': Got value 25960
[10:05:54][D][sensor:094]: 'HX711 Value': Sending state 25960.00000 kg with 3 decimals of accuracy
[10:05:59][D][hx711:031]: 'HX711 Value': Got value 25965
[10:05:59][D][sensor:094]: 'HX711 Value': Sending state 25965.00000 kg with 3 decimals of accuracy
[10:06:04][D][hx711:031]: 'HX711 Value': Got value 25916
[10:06:04][D][sensor:094]: 'HX711 Value': Sending state 25916.00000 kg with 3 decimals of accuracy
[10:06:09][D][hx711:031]: 'HX711 Value': Got value 25985
[10:06:09][D][sensor:094]: 'HX711 Value': Sending state 25985.00000 kg with 3 decimals of accuracy