{"id":101,"date":"2018-06-28T21:59:15","date_gmt":"2018-06-28T19:59:15","guid":{"rendered":"https:\/\/www.honey-pi.de\/?p=101"},"modified":"2025-02-24T18:47:33","modified_gmt":"2025-02-24T17:47:33","slug":"a-d-wandler-hx711","status":"publish","type":"post","link":"https:\/\/honey-pi.de\/en\/a-d-wandler-hx711\/","title":{"rendered":"A\/D converter (HX711)"},"content":{"rendered":"\n<p>An A\/D converter is required for the weight sensors (<a href=\"https:\/\/www.honey-pi.de\/waegezellen\/\">load cells<\/a>). Unlike other boards, such as the Arduino or the ESP32, the Raspberry Pi has no integrated A\/D converter. An A\/D converter converts the analog signal into digital values. Therefore we need this 3 Euro component for the Raspberry Pi. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Number of load cells per Raspberry Pi<\/h4>\n\n\n\n<p>The HX711 has two channels (A and B). This allows two load cells to be connected to one HX711 and two hives to be measured. Depending on the number of free GPIOs on the Raspberry, it is also possible to connect multiple HX711s. This means that at least 3 HX711s can be connected to one Raspberry Pi. In the maintenance mode the GPIOs of the boards can be set.<\/p>\n\n\n\n<p><strong>HX711 to Raspberry Pi:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>VCC at pin 02\/5V, but better to a free 3.3V pin<\/li><li>GND at pin 06\/Ground<\/li><li>DT at pin 29\/GPIO5<\/li><li>SCK at pin 31\/GPIO6<\/li><\/ul>\n\n\n\n<p><strong>Load cell (Bosche H30A) at HX711:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Red at E+ (input)<\/li><li>Black at E- (input)<\/li><li>Green at A+ (output)<\/li><li>White at A- (output)<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Bosche-H30A-Anschlu\u0308sse.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"203\" src=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Bosche-H30A-Anschlu\u0308sse-300x203.png\" alt=\"\" class=\"wp-image-989\" srcset=\"https:\/\/honey-pi.de\/wp-content\/uploads\/Bosche-H30A-Anschlu\u0308sse-300x203.png 300w, https:\/\/honey-pi.de\/wp-content\/uploads\/Bosche-H30A-Anschlu\u0308sse.png 472w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption>Cable colours of the Bosche H30A load cell. Source: https:\/\/www.bosche.eu\/waagenkomponenten\/waegezellen\/plattform-waegezellen\/plattform-waegezellen-h30a <\/figcaption><\/figure>\n\n\n\n<p><strong>Load cell (Banggood) at HX711 (has completely different assignment), <a href=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/20181208_164712.jpg\">see picture<\/a>):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Black at E+<\/li><li>White at E-<\/li><li>Red at A+<\/li><li>Green at A-<\/li><\/ul>\n\n\n\n<p><strong>Some load cells have the following colours:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Red at E+<\/li><li>Black at E-<\/li><li>Grey at A+<\/li><li>Green at A-<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Does the HX711 always measure just 0kg?<\/h4>\n\n\n\n<p>Then the cables are probably not connected correctly or the load cell is defective. The cables are easy to check. To check whether the load cells are defective, we recommend the following video:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"W\u00e4gezelle defekt? So gelingt die Fehlersuche\" width=\"665\" height=\"374\" src=\"https:\/\/www.youtube.com\/embed\/V0omZUW3oPs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">The HX711 measures wrong values?<\/h4>\n\n\n\n<p>That&#8217;s because you need to calibrate the load cell. See the article &#8220;<a href=\"\/waegezellen-kalibrieren\/\">Calibrating the load cell<\/a>&#8221; to see how this works. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Improve measurement results of the HX711 module<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If there is still a 3.3V PIN free on the Raspberry Pi, or if you can use a 3.3V PIN twice thanks to the <a href=\"https:\/\/www.honey-pi.de\/sensoren-anschliessen-ohne-loeten\/\">breadboard\/plug-in board<\/a>, we recommend connecting the VCC of the HX711 to a 3.3V PIN instead of a 5V PIN. Tests have shown that there are fewer outliers when measuring.<\/li><li>There are different HX711 boards. Optimally the resistance between E- and GND should be zero. If this is not the case with this HX711 module, you can help by connecting a short cable between E- and GND. Further information can be found at the Arduino colleagues: https:\/\/beelogger.de\/?page_id=195802_id=195802 <\/li><li>Some load cells, such as Bosche&#8217;s, have a fifth, thicker cable. This is the cable shield. You should put the cable screen on the housing. You can use it to attenuate external interference. Actually the housing is connected to the GND. <\/li><li>The Green HX711 boards have one channel A and one channel B. The measurement results on channel B have a higher noise. We therefore recommend connecting several HX711 boards for several scale sensors. These are not expensive and the Raspberry has enough free GPIO.<\/li><li>Experience has shown that there are cheap HX711s that don&#8217;t work well. If you buy a <a href=\"https:\/\/amzn.to\/2Wqz8ub\">higher quality HX711 module<\/a> ?, for example, you will also get measurement results. In addition, GND is already connected to E there. <\/li><li>Outliers in the measurement can also occur because the surfstick is too close to the HX711 and interference occurs. A USB cable increases the distance.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Timing problems at Raspberry Zero with green HX711<\/h4>\n\n\n\n<p>With the <strong>Raspberry Zero<\/strong>, timing problems may occur during transmission to the HX711. Therefore the weight is not measured correctly and regular outliers or repeated measurements are the result.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/rate_pin_80sps.png\" alt=\"\" class=\"wp-image-1633\" width=\"367\" height=\"249\" srcset=\"https:\/\/honey-pi.de\/wp-content\/uploads\/rate_pin_80sps.png 640w, https:\/\/honey-pi.de\/wp-content\/uploads\/rate_pin_80sps-300x204.png 300w\" sizes=\"auto, (max-width: 367px) 100vw, 367px\" \/><figcaption>HX711 with lifted pin<\/figcaption><\/figure>\n\n\n\n<p>A workaround is to lift pin 15 of the HX711 and connect it to VCC so the conversion runs more often and you have much better constancy in the values. (see picture above)<\/p>\n\n\n\n<p>Furthermore, it helps to deactivate debug mode (this setting is in <a href=\"\/wartungsmodus-webinterface\/\">maintenance mode<\/a>) and do not plug in an HDMI cable.<\/p>\n\n\n\n<p class=\"has-text-align-right\"><em>Translated 28.07.2019 by JK<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An A\/D converter is required for the weight sensors (load cells). Unlike other boards, such as the Arduino or the ESP32, the Raspberry Pi has no integrated A\/D converter. An A\/D converter converts the analog signal into digital values. Therefore we need this 3 Euro component for the Raspberry Pi. Number of load cells per Raspberry Pi The\u2026 <span class=\"read-more\"><a href=\"https:\/\/honey-pi.de\/en\/a-d-wandler-hx711\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":2112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[14,16],"class_list":["post-101","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-component","tag-load-cell","tag-sensor"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["de","en"],"languages":{"de":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":34,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":2565,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts\/101\/revisions\/2565"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/media\/2112"}],"wp:attachment":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}