A beelogger on ESP32 basis, part 3: Test setup: The scale

I built two bee-hive scales according to the great instructions of the Beelogger project.

Remarks:

  • I used the “2 holes per side”-variant of the Load Cell Sensor (CZL601 instead of the CZL601-AC), it works fine too.

In my test-setup I connected it like this:

There are 2 possible solutions for this problem, I don’t know yet which way to go:

  • exchanging some resistors on the hx711-breakout-board
  • use another breakout board that doesn’t cause that much problems, I ordered a NAU7802-breakout-board for testing.


For calibrating, I used weight-lifting weights.

The code for esphome to use it:

substitutions:
  update_interval: 5s

sensor:
  - platform: hx711
    name: "HX711 Weight"
    dout_pin: GPIO4
    clk_pin: GPIO5
    gain: 128
    update_interval: ${update_interval}
    filters:
      - calibrate_linear:
          datapoints:
          # measuring at 25 °C
          -  77915  -> 0
          -  167520 -> 4.08    # empty super + tension belt
          -  205782 -> 5.88    # super with empty frames + tension belt
          -  308103 -> 9.08    # super with empty frames + tension belt + 5kg
          -  413973 -> 14.08   # super with empty frames + tension belt + 10kg
          -  517992 -> 19.08   # super with empty frames + tension belt + 15kg
          -  630596 -> 24.08   # super with empty frames + tension belt + 20kg
          -  734680 -> 29.08   # super with empty frames + tension belt + 25kg
          -  836741 -> 34.08   # super with empty frames + tension belt + 30kg
          -  939262 -> 39.08   # super with empty frames + tension belt + 35kg
          - 1047388 -> 44.08   # super with empty frames + tension belt + 40kg
          - 1149025 -> 49.08   # super with empty frames + tension belt + 45kg
          - 1251903 -> 54.08   # super with empty frames + tension belt + 50kg
          - 1353236 -> 59.08   # super with empty frames + tension belt + 55kg
          - 1450079 -> 64.08   # super with empty frames + tension belt + 60kg
          - 1554032 -> 69.08   # super with empty frames + tension belt + 65kg
          - 1655332 -> 74.08   # super with empty frames + tension belt + 70kg
      - clamp:
          min_value: 0
          ignore_out_of_range: true

Compensating the temperature drift of the scale is still an open TODO.

Comments

2 responses to “A beelogger on ESP32 basis, part 3: Test setup: The scale”

  1. support@beelogger.de Avatar
    support@beelogger.de

    Hallo Tobias,
    deine Schaltung hat einen massiven Designfehler.
    Die HX711-Module sind in der Beschaltung des HX711 für 5V Betriebsspannung ausgelegt.
    Werden die an 3,3V betrieben, ist die Spannung an E+/E- ungeregelt und sehr temperaturabhängig.
    Das Ergebnis ist schlechtes Verhalten der Waage über die Tempeartur bis hin zu einem sehr unzuverlässigem Messwert.
    Gruß
    Rudolf

    1. tobias Avatar

      Danke, du hast völlig recht. Ich habe einen Hinweis in den Post eingepflegt.

Leave a Reply to tobias Cancel reply

Your email address will not be published. Required fields are marked *