{"id":15,"date":"2025-06-02T21:29:33","date_gmt":"2025-06-02T19:29:33","guid":{"rendered":"https:\/\/blog.bratfisch.net\/?p=15"},"modified":"2026-01-10T00:03:58","modified_gmt":"2026-01-09T23:03:58","slug":"a-beelogger-on-esp32-basis-part-3-the-scale","status":"publish","type":"post","link":"https:\/\/blog.bratfisch.net\/index.php\/2025\/06\/02\/a-beelogger-on-esp32-basis-part-3-the-scale\/","title":{"rendered":"A beelogger on ESP32 basis, part 3: Test setup: The scale"},"content":{"rendered":"\n<p>I built four bee-hive scales according to the <a href=\"https:\/\/beelogger.de\/stockwaage\/aufbauanleitung-double\/\" data-type=\"link\" data-id=\"https:\/\/beelogger.de\/stockwaage\/aufbauanleitung-double\/\">great instructions of the Beelogger project<\/a>.<\/p>\n\n\n\n<p>Remarks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I used the  &#8220;2 holes per side&#8221;-variant of the <strong>Load Cell Senso<\/strong>r (CZL601 instead of the CZL601-AC), it works fine too.<\/li>\n<\/ul>\n\n\n\n<p>In my test-setup I connected it like this:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"665\" src=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-scale-1-1024x665.png\" alt=\"\" class=\"wp-image-265\" style=\"width:auto;height:300px\" srcset=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-scale-1-1024x665.png 1024w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-scale-1-300x195.png 300w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-scale-1-768x498.png 768w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-scale-1.png 1188w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-accent-3-color has-text-color has-link-color wp-elements-af7e501f1478f3fdd24daa338b479f71\"><strong>NOTE: Do not use this wiring in production. It&#8217;s suitable for testing purposes only.<\/strong><br><strong>The HX711-breakout-boards do not work as intended when powered with 3.3V.<br>For details, see <a href=\"https:\/\/community.hiveeyes.org\/t\/stromversorgung-hx711\/893\/16\">https:\/\/community.hiveeyes.org\/t\/stromversorgung-hx711\/893\/16<\/a><\/strong><\/p>\n\n\n\n<p>I see two possible solutions for this problem:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Exchanging some resistors on the hx711-breakout-board\n<ul class=\"wp-block-list\">\n<li>Turns out this is not the way to go, there are at least 4 different versions of the board:\n<ul class=\"wp-block-list\">\n<li>blue PCB:<br>exchanging the resistors is doable, but needs experience<\/li>\n\n\n\n<li>green PCB:<br>exchanging the resistors is hard, special equipment needed<\/li>\n\n\n\n<li>purple PCB:<br>exchanging the resistors is practically impossible.<\/li>\n\n\n\n<li>red (the recommend version, it&#8217;s shielded) PCB:<br>exchanging the resistors is practically impossible.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Use another breakout board that doesn&#8217;t cause that much problems, I ordered a NAU7802-breakout-board for testing.\n<ul class=\"wp-block-list\">\n<li>This is the way to go:\n<ul class=\"wp-block-list\">\n<li>It&#8217;s connected via I2C, this makes the wiring more easy<\/li>\n\n\n\n<li>it works out-of-the-box with 3.3V<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><br>For calibrating, I used weight-lifting weights.<br><br>The testing-code for  the HX711 :<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>substitutions:\n  update_interval: 5s\n\nsensor:\n  - platform: hx711\n    name: \"HX711 Weight\"\n    dout_pin: GPIO4\n    clk_pin: GPIO5\n    gain: 128\n    update_interval: ${update_interval}\n    filters:\n      - calibrate_linear:\n          datapoints:\n          # measuring at 25 \u00b0C\n          -  77915  -&gt; 0\n          -  167520 -&gt; 4.08    # empty super + tension belt\n          -  205782 -&gt; 5.88    # super with empty frames + tension belt\n          -  308103 -&gt; 9.08    # super with empty frames + tension belt + 5kg\n          -  413973 -&gt; 14.08   # super with empty frames + tension belt + 10kg\n          ...\n          - 1554032 -&gt; 69.08   # super with empty frames + tension belt + 65kg\n          - 1655332 -&gt; 74.08   # super with empty frames + tension belt + 70kg\n      - clamp:\n          min_value: 0\n          ignore_out_of_range: true<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Compensating the temperature drift of the scale is still an open TODO.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I built four bee-hive scales according to the great instructions of the Beelogger project. Remarks: In my test-setup I connected it like this: NOTE: Do not use this wiring in production. It&#8217;s suitable for testing purposes only.The HX711-breakout-boards do not work as intended when powered with 3.3V.For details, see https:\/\/community.hiveeyes.org\/t\/stromversorgung-hx711\/893\/16 I see two possible solutions [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3,4,5],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-beelogger","tag-esp32","tag-esphome"],"_links":{"self":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":54,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":1065,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions\/1065"}],"wp:attachment":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}