{"id":12862,"date":"2021-10-29T10:49:51","date_gmt":"2021-10-29T10:49:51","guid":{"rendered":"https:\/\/wolles-elektronikkiste.de\/strain-gauges"},"modified":"2024-10-29T15:00:16","modified_gmt":"2024-10-29T15:00:16","slug":"strain-gauges","status":"publish","type":"post","link":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges","title":{"rendered":"Strain gauges"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">About this post<\/h2>\n\n<p>Much has already been published about strain gauges. However, there are very few articles that really show concretely how to connect the strain gauge and evaluate the measured values with a microcontroller. I would like to close this gap with this article. Specifically, I will cover the following:<\/p>\r\n<ul>\r\n<li><a href=\"#Allgemeines\">General information about strain gauges<\/a><\/li>\r\n<li><a href=\"#Wheatstone\">Wheatstone bridge circuit<\/a><\/li>\r\n<li><a href=\"#HX711\">Strain gauge measurements with the HX711<\/a><\/li>\r\n<li><a href=\"#Opamps\">Strain gauge measurements with operational amplifiers<\/a>\r\n<ul>\r\n<li><a href=\"#Instrumentenverstaerker\">Instrumentation amplifier<\/a><\/li>\r\n<li><a href=\"#Differenzverstaerker\">Differential amplifier<\/a><\/li>\r\n<\/ul>\r\n<\/li>\r\n<li><a href=\"#Fuer_Bequeme\">For the lazy ones: a ready-made solution<\/a><a id=\"Allgemeines\"><\/a><\/li>\r\n<\/ul>\r\n\n<h2 class=\"wp-block-heading\">General information about strain gauges<\/h2>\n\n<h3 class=\"wp-block-heading\">What is a strain gauge and how does it work?<\/h3>\n\n<p>A strain gauge is a stretchable resistor whose resistance value changes linearly with strain. There are a wide variety of shapes and materials. The classic that you can get for little money in online shops is the foil strain gauge:<\/p>\r\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges-1024x518.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"518\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges-1024x518.jpg\" alt=\"Various foil strain gauges\" class=\"wp-image-12626\" style=\"width:768px;height:389px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges-1024x518.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges-300x152.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges-768x389.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges-1536x777.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges-1320x668.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/various_strain_gauges.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Various foil strain gauges<\/figcaption><\/figure>\n\n<p>The foil strain gauge consists of a carrier foil on which a thin metallic conductor path is located. The metal used is often constantan or another alloy with low temperature dependence. An overview of different strain gauge designs can be found on the recommendable web pages of <a href=\"https:\/\/www.hbm.com\/en\/7164\/how-to-find-the-right-strain-gauge\/\" target=\"_blank\" rel=\"noopener\">HBM<\/a>.<\/p>\r\n<p>The principle of operation of a strain gauge is simple. The resistance of a body depends (among other things) on the specific electrical resistance of the material, the diameter and the length. If the strain gauge is stretched, the diameter of the conducting path is reduced and the conducting path becomes longer. Consequently, resistance is increasing. In the case of compression, on the other hand, it is the other way around.<\/p>\r\n\n<h2 class=\"wp-block-heading\">Strain gauge characterization <\/h2>\n\n<p>A strain gauge has a certain base resistance. The most common are strain gauges with 120 or 350 ohms. These values are not standardized, but have simply become established. The sensitivity of the strain gauge is described by its so-called k-factor. For a resistor R of a length l:<\/p>\r\n\n<p><\/p>\r\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 40px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-ea11a25fcc3fe2b853688fea789f0c3c_l3.png\" height=\"40\" width=\"322\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#92;&#102;&#114;&#97;&#99;&#123;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#82;&#125;&#123;&#82;&#125;&#61;&#107;&#92;&#99;&#100;&#111;&#116;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#108;&#125;&#123;&#108;&#125;&#32;&#92;&#59;&#92;&#59;&#92;&#59;&#92;&#59;&#92;&#59;&#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#92;&#59;&#92;&#59;&#92;&#59;&#92;&#59;&#92;&#59;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#82;&#61;&#107;&#92;&#99;&#100;&#111;&#116;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#108;&#125;&#123;&#108;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#82; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\r\n\n<p>The maximum elongation of commercially available foil strain gauges is often specified as 2%. The k-factor is usually 2 to 2.2. This results in the following maximum resistance change for a 120 Ohm strain gauge:<\/p>\r\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-4c32e7948e0c308a596355d459d65262_l3.png\" height=\"19\" width=\"283\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#92;&#68;&#101;&#108;&#116;&#97;&#32;&#82;&#95;&#123;&#109;&#97;&#120;&#125;&#61;&#50;&#46;&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#48;&#46;&#48;&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#50;&#48;&#32;&#61;&#32;&#53;&#46;&#50;&#56;&#92;&#59;&#32;&#91;&#92;&#79;&#109;&#101;&#103;&#97;&#93; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\n<p>In most cases, however, you work far below the maximum limits. The relative resistance changes to be measured are correspondingly small. Since resistors are measured by the voltages that drop across them, the same is true for voltages. Typically, fractions of millivolts must therefore be measured.<a id=\"Wheatstone\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">The Wheatstone Bridge Circuit<\/h2>\n\n<p>The measurement of low voltages is not a problem in itself. The sticking point is the small relative change due to the large underlying. To measure only the voltage change, you can use the Wheatstone bridge circuit:<\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Wheatstone-1024x614.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Wheatstone-1024x614.png\" alt=\"Wheatstone Bridge for strain gauges\" class=\"wp-image-12630\" style=\"width:512px;height:307px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Wheatstone-1024x614.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Wheatstone-300x180.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Wheatstone-768x461.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Wheatstone-1320x792.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Wheatstone.png 1349w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Wheatstone bridge circuit<\/figcaption><\/figure>\n<\/div>\n<p>I do not want to go too far with the explanation. If you need further information on the basics, I recommend the relevant <a href=\"https:\/\/www.hbm.com\/en\/7163\/wheatstone-bridge-circuit\/\" target=\"_blank\" rel=\"noopener\">HBM pages<\/a>. Here are the main points:&nbsp;<\/p>\r\n<ul>\r\n<li>R1 and R2 or R3 and R4 are resistors connected in series.<\/li>\r\n<li>The resulting resistors R1+R2 and R3+R4 are connected in parallel.<\/li>\r\n<li>If R1 = R2 = R3 = R4, then the total resistance is R1.<\/li>\r\n<li>R1 and R2 or R3 and R4 are voltage dividers. The voltage at points A and B is determined accordingly by the ratio of R1 to R 2 and of R3 to R 4, respectively.<\/li>\r\n<li>The bridge is balanced when the voltage between A and B is zero (for U<sub>0<\/sub> \u2260 0). In this case:<\/li>\r\n<\/ul>\r\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 39px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-16a9fc23dba87d1ba4ed370e1db1b0b1_l3.png\" height=\"39\" width=\"77\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#92;&#102;&#114;&#97;&#99;&#123;&#82;&#49;&#125;&#123;&#82;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#82;&#51;&#125;&#123;&#82;&#52;&#125; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\n<p>So if you use a strain gauge as R1, R2 corresponds to the base value of the strain gauge and R3 is equal to R4, then the bridge is balanced. Accordingly, you only measure the voltage caused by the strain or compression of the strain gauge.<\/p>\r\n\n<h2 class=\"wp-block-heading\">Using multiple strain gauges<\/h2>\n\n<p>In practice, several strain gauges are often used. The arrangement of the strain gauges in the Wheatstone bridge depends on which of them are stretched or compressed. If you use two strain gauges, and both are stretched or compressed at the same time, then you have to install them diagonally opposite (R1\/R4 or R2\/R3). If one strain gauge is stretched and the other compressed, they must be positioned on one side (R1\/R2 or R3\/R4). When using four strain gauges, you must proceed in the same way: The antagonists are positioned on one side, the synchronously operating strain gauges are arranged diagonally opposite.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_bridge_variants.PNG-1024x231.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"231\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_bridge_variants.PNG-1024x231.jpg\" alt=\"Strain gauges in the Wheatstone bridge: quarter, diagonal, half and full bridges\" class=\"wp-image-12637\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_bridge_variants.PNG-1024x231.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_bridge_variants.PNG-300x68.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_bridge_variants.PNG-768x173.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_bridge_variants.PNG-1320x297.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_bridge_variants.PNG.jpg 1439w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Strain gauges in the Wheatstone bridge: quarter, diagonal, half and full bridges<\/figcaption><\/figure>\n\n<p>There are several reasons for using multiple strain gauges:<\/p>\r\n<ul>\r\n<li>Stronger signals<\/li>\r\n<li>Less noise<\/li>\r\n<li>Compensation of thermal expansion<\/li>\r\n<li>Separation of normal and bending elongation<\/li>\r\n<\/ul>\r\n<p>A detailed article can be found <a href=\"https:\/\/www.hbm.com\/en\/7163\/wheatstone-bridge-circuit\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\r\n\n<h2 class=\"wp-block-heading\">Gluing and wiring the strain gauges<\/h2>\n\n<p>Gluing of strain gauges is a science in itself. The choice of the optimum adhesive depends, among other things, on the application temperature, the surface roughness and the expected elongation. Again, I recommend taking a look at the <a href=\"https:\/\/www.hbm.com\/en\/4314\/selecting-adhesives-for-strain-gauge-installation\/\" target=\"_blank\" rel=\"noopener\">HBM pages<\/a>. The problem is that these adhesives are quite expensive. However, the good news is that you can use ordinary cyanoacrylate glue (superglue) if you do not need the highest precision and the elongation is not too high. There are also special products for use as a protective layer for strain gauges. I just used simple tape in my experiments.<\/p>\r\n<p>If you use strain gauges with pre-installed connection cables, you must check whether the cables are insulated and take appropriate measures. If your strain gauges do not have wires, you should solder them on <em>before<\/em> you glue them on. That&#8217;s a little fiddly, but it works. In addition, it is recommended to twist the connection cables (which I read too late!).<\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/DMS_glued-1024x562.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/DMS_glued-1024x562.jpg\" alt=\"Glued-on strain gauge\" class=\"wp-image-12639\" style=\"width:768px;height:422px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/DMS_glued-1024x562.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/DMS_glued-300x165.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/DMS_glued-768x422.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/DMS_glued.jpg 1240w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Glued-on strain gauge<\/figcaption><\/figure>\n<\/div>\n<p>When gluing, be careful not to get your fingers glued down. I pressed the strain gauges on with household foil. And less glue is more! Thick adhesive layers are counterproductive.<\/p>\r\n<p>I had first soldered cut jumper cables to the strain gauges and built the Wheatstone bridge on the breadboard. I thought this was a good idea to stay flexible for my experiments. However, I advise against this. The contact resistances are not negligible. Every touch of the cables changed my readings. It wasn&#8217;t until I firmly soldered Wheatstone bridge that my readings became stable.<a id=\"HX711\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">Strain gauge measurements with the HX711<\/h2>\n\n<p>Maybe one or the other of you has previously dealt with <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/hx711-based-balance\" target=\"_blank\" rel=\"noopener\">HX711 based scales<\/a>. The load cells and the HX711 module are sold in a set. I once removed the protective layer of a load cell and lo and behold: four strain gauges (two at the top, two at the bottom) come to light. So it is obvious to use the HX711, or &#8211; conveniently &#8211; an HX711 module for measurements with strain gauges. &nbsp;<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-1024x350.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"350\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-1024x350.jpg\" alt=\"HX711 module and a load cell with strain gauge\" class=\"wp-image-12643\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-1024x350.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-300x102.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-768x262.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-1536x524.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-2048x699.jpg 2048w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_module_balance-1320x451.jpg 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">HX711 module \/ load cell with strain gauge<\/figcaption><\/figure>\n\n<h3 class=\"wp-block-heading\">The HX711<\/h3>\n\n<p>The HX711 is a 24 bit (!) ADC that is particularly suitable for voltage measurements on Wheatstone bridges. It is operated with 2.6 to 5.5 volts. The pins E+ and E- provide the supply voltage for the Wheatstone bridge (U<sub>0<\/sub> according to my figure above). The output voltage of the bridge (points A and B in my drawing) is read at pins A+ and A- (channel A).<\/p>\r\n<p>You can choose between two gains, namely 128 and 64. At 5 volts input voltage, this corresponds to a measuring range of +\/-20 or +\/-40 mV. Alternatively, you can use channel B (connections B+\/B-). However, this has only a gain factor of 32. This results in a measuring range of +\/-80 mV at 5 volts input voltage.<\/p>\r\n<p>The module has a conversion frequency of 10 Hz preset. To change it to 80 Hz, desolder the (zero) resistor at the 10 Hz label and connect the contacts at the 80 Hz label. However, 10 Hz should be sufficient for most applications.<\/p>\r\n<p>There are no more settings. A data sheet for the HX711 can be found <a href=\"https:\/\/cdn.sparkfun.com\/datasheets\/Sensors\/ForceFlex\/hx711_english.pdf\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\r\n\n<h4 class=\"wp-block-heading\">Connection to the MCU<\/h4>\n\n<p>Here is an example of connecting the HX711 to a Wheatstone bridge (simplified below) and a microcontroller:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_Wiring-1024x287.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"287\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_Wiring-1024x287.png\" alt=\"HX711: Connection to Wheatstone bridge and MCU\" class=\"wp-image-12653\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_Wiring-1024x287.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_Wiring-300x84.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_Wiring-768x215.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_Wiring-1320x370.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_Wiring.png 1530w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">HX711: Connection to Wheatstone bridge and MCU<\/figcaption><\/figure>\n\n<h4 class=\"wp-block-heading\">Reading \/ Controlling the HX711<\/h4>\n\n<p>The HX711 outputs its measured values via DOUT. In its basic state is DOUT HIGH. The HX711 is controlled solely via the SCK pin. You first set the SCK level to LOW.<\/p>\r\n<p>When a measured value is available for retrieval, DOUT goes to LOW. Then you can read out the measured values bit by bit, starting with the MSB, i.e. the highest (most significant) bit. To do this, switch SCK briefly HIGH and LOW again. If the MSB (bit 23) of the measured value is a 1, DOUT is now HIGH, otherwise LOW. You read DOUT, then you send a short SCK signal again. Now the state of DOUT shows whether the bit 22 is set. So this continues to bit 0. You put the measured value together bit by bit.<\/p>\r\n<p>After reading bit 0, DOUT goes permanently to HIGH with the next (i.e. the 25th) SCK signal. If you leave it at that, then you will receive the next measured value via channel A with gain 128. If you send another SCK signal, then you will receive the next measured value via channel B with gain 32. If you send another SCK signal, then you will receive the next measured value via channel A with gain 64. This completes a readout and setting sequence. Then everything starts all over again with DOUT going LOW. So you control the parameters for the next measurement during the reading of the current measured value.<\/p>\r\n<p>This is how it looks schematically:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_data_out-1024x373.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_data_out-1024x373.png\" alt=\"Reading the HX711 \/ setting gain; Source: HX711 datasheet (corrected) \" class=\"wp-image-12647\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_data_out-1024x373.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_data_out-300x109.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_data_out-768x280.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_data_out-1320x480.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_data_out.png 1349w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Reading the HX711 \/ setting gain; Source: HX711 datasheet (corrected) <\/figcaption><\/figure>\n\n<p>The data sheet contained a small error. Gain 64 is on channel A. I have corrected this here.<\/p>\r\n<p>The measured value is supplied as a <a href=\"https:\/\/academickids.com\/encyclopedia\/index.php\/Two%27s_complement\" target=\"_blank\" rel=\"noopener\">two&#8217;s complement<\/a>. The number range is from 0x800000 (= -8388608) to 0x7FFFFF (= +8388607). Even if you define the measured values as a signed &#8220;long&#8221; variable (32 bits), the negative numbers would be misinterpreted as positive numbers without further precautions. This is because the highest, 31st bit (counting starts at zero) of the &#8220;long&#8221; variable is always 0. The trick: you just flip bit no. 23. This shifts the value range to 0&#8230;.16777216.<\/p>\r\n\n<h4 class=\"wp-block-heading\">Sketch for reading the raw data<\/h4>\n\n<p>This may all seem a bit confusing. However, the programming is simple:<\/p>\r\n\n<div class=\"scroll-paragraph-long\">\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HX711_raw_data.ino\" data-enlighter-title=\"HX711_raw_data.ino\">#define GAIN_128 25\r\n#define GAIN_64 27\r\n\r\nconst int doutPin = 4;\r\nconst int sckPin = 5;\r\n\r\nvoid setup() {\r\n  Serial.begin(57600);\r\n  pinMode(doutPin, INPUT);\r\n  pinMode(sckPin, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n  unsigned long raw = readHX711();\r\n  Serial.println(raw);\r\n  delay(500);\r\n}\r\n\r\nunsigned long readHX711(){  \r\n  unsigned long data = 0;\r\n  uint8_t dout;\r\n  \r\n  while(digitalRead(doutPin)){}  \/\/ wait until value is available\r\n  for (uint8_t i=0; i&lt;GAIN_128; i++){   \/\/highest Gain\r\n    \/\/delayMicroseconds(1); \/\/ uncomment for fast MCUs\r\n    digitalWrite(sckPin, 1);\r\n    \/\/delayMicroseconds(1); \/\/ uncomment for fast MCUs\r\n    digitalWrite(sckPin, 0);\r\n    if (i &lt; (24)){\r\n      dout = digitalRead(doutPin);\r\n      data = (data &lt;&lt; 1) | dout;\r\n    }\r\n  }\r\n  data = data ^ 0x800000; \/\/ flip bit 23\r\n  \r\n  return data; \r\n}\r\n\r\nvoid powerDown(){\r\n  digitalWrite(sckPin, LOW);\r\n  digitalWrite(sckPin, HIGH);\r\n}\r\n\r\nvoid powerUp(){\r\n  digitalWrite(sckPin, LOW);\r\n}<\/pre>\r\n<\/div>\r\n\n<p>A few more explanations:<\/p>\r\n<ul>\r\n<li>The SCK signals (i.e. the HIGH and LOW phases) should be at least 0.2 \u03bcs long. Fast MCUs like the ESP32 can fall short of these times, so you need to add delays.<\/li>\r\n<li>If the SCK pin is in HIGH state for more than 60 \u03bcs, the HX711 goes into a power-down state and consumes only 1.5 \u03bcA of current. The power supply for the rather power-hungry Wheatstone bridge is also interrupted.<\/li>\r\n<\/ul>\r\n\n<h3 class=\"wp-block-heading\">A practical test with strain gauges and the HX711<\/h3>\n\n<p>My goal was to build a primitive scale using strain gauges, a metal strip and the HX711. Not so much to really have a scale, but to check how accurately and reproducible you can measure with strain gauges and a simple experimental setup. I simply placed the metal strip on two pieces of wood. Applied weights bend the strip and I measured this with strain gauges.<\/p>\r\n<p>I made a first attempt with a half bridge, a second with a full bridge. In the half-bridge test, I used 120 ohm strain gauges and 100 ohm resistors on the opposite side. Since I only used a small part of the measuring range of the HX711, I did not have to balance the bridge.<\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711-1024x627.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"627\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711-1024x627.jpg\" alt=\"HX711 and half bridge with two strain gauges\" class=\"wp-image-12657\" style=\"width:768px;height:470px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711-1024x627.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711-300x184.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711-768x470.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711-1536x941.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711-1320x809.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/2_DMS_HX711.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">HX711 and half bridge with two strain gauges<\/figcaption><\/figure>\n<\/div><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711-1024x635.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"635\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711-1024x635.jpg\" alt=\"HX711 and full bridge with four strain gauges\" class=\"wp-image-12659\" style=\"width:768px;height:476px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711-1024x635.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711-300x186.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711-768x476.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711-1536x952.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711-1320x818.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_HX711.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">HX711 and full bridge with four strain gauges<\/figcaption><\/figure>\n<\/div>\n<p>In my experiments with the half-bridge, the metal was not well suited. When placing weights, a stable measured value was achieved only slowly. When the weights were removed, the readings changed slowly and did not completely return to baseline. In other words, the metal has not only deformed elastically, but also plastically.<\/p>\r\n\n<p>The metal strip I used my full bridge test was more suitable. Using a known weight (54 g), I determined a slope factor (rawToWeight) and calibrated the &#8220;scale&#8221; this way. I also applied a tare button. This is what the sketch looked like:<\/p>\r\n\n<div class=\"scroll-paragraph-long\">\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"HX711_balance.ino\" data-enlighter-title=\"HX711_balance.ino\">const int doutPin = 4;\r\nconst int sckPin = 5;\r\nconst int taraPin = 7;\r\nconst float rawToWeight = 11296.3; \/\/ units per gram\r\nlong tara = 7385000;\r\n\r\nvoid setup() {\r\n  Serial.begin(57600);\r\n  pinMode(doutPin, INPUT);\r\n  pinMode(taraPin, INPUT);\r\n  pinMode(sckPin, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n  unsigned long raw = readHX711();\r\n  if(digitalRead(taraPin)){\r\n    tara = raw;\r\n  }\r\n  float weight = ((long)raw - tara)\/rawToWeight;\r\n  Serial.print(\"Raw result: \");\r\n  Serial.println(raw);\r\n  Serial.print(\"Weight [g]: \");\r\n  Serial.println(weight);\r\n  Serial.println(\"****************\");  \r\n  \r\n  delay(500);\r\n}\r\n\r\nunsigned long readHX711(){  \r\n  unsigned long data = 0;\r\n  uint8_t dout;\r\n  while(digitalRead(doutPin)){}\r\n  for (uint8_t i=0; i&lt;25; i++){ \r\n    \/\/delayMicroseconds(1); \r\n    digitalWrite(sckPin, 1);\r\n    \/\/delayMicroseconds(1);\r\n    digitalWrite(sckPin, 0);\r\n    if (i &lt; (24)){\r\n      dout = digitalRead(doutPin);\r\n      data = (data &lt;&lt; 1) | dout;\r\n    }\r\n  }\r\n  data = data ^ 0x800000; \/\/ flip bit No 23 \r\n \r\n  return data; \r\n}\r\n\r\nvoid powerDown(){\r\n  digitalWrite(sckPin, LOW);\r\n  digitalWrite(sckPin, HIGH);\r\n}\r\n\r\nvoid powerUp(){\r\n  digitalWrite(sckPin, LOW);\r\n}<\/pre>\r\n<\/div>\r\n\n<p>And here is the output with different, known weights. To get this output, I lowered the output frequency to have enough time to change the weights.<\/p>\r\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_balance_output.png\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"401\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_balance_output.png\" alt=\"Output of HX711_balance.ino\" class=\"wp-image-12661\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_balance_output.png 827w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_balance_output-300x145.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/HX711_balance_output-768x372.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/a><figcaption class=\"wp-element-caption\">Output of HX711_balance.ino<\/figcaption><\/figure>\n\n<p>Not so bad, right? A certain deviation in this design of a scale is because the weighing material must always be placed exactly in the same place. As mentioned before, I didn&#8217;t aim to build a scale. I just wanted to show that strain gauges can be used excellently with the HX711.<a id=\"Opamps\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">Strain gauge measurements with operational amplifiers<\/h2>\n\n<h3 class=\"wp-block-heading\">General information about op amps<\/h3>\n\n<p>I could easily fill several posts with the topic of operational amplifiers (op amp for short). That is why I am not going to explain them in detail here. If you want to take a closer look, I recommend <a href=\"https:\/\/www.electronics-tutorials.ws\/opamp\/opamp_1.html\" target=\"_blank\" rel=\"noopener\">this web page<\/a>. Just this much:<\/p>\r\n<ul>\r\n<li>Op amps are used for voltage amplification.<\/li>\r\n<li>They have an inverting (&#8220;-&#8220;) input, a non-inverting input (&#8220;+&#8221;) and an output (VOUT).<\/li>\r\n<li>The power supply of op amps often covers a negative and positive range (i.e. from +x volts to -x volts), but there are also applications with just positive power supply (V+ \/ GND). For simplicity, I use the latter method here.<\/li>\r\n<li>The op amp only gets its function by wiring with other components (primarily by resistors).<\/li>\r\n<li>Op amps can be used as inverting or non-inverting amplifiers, as differential amplifiers, integrators, etc.<\/li>\r\n<\/ul>\r\n\n<p>The op amp ICs in DIP format with 8 pins contain two op amps. Here are a few common representatives:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps-1024x294.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"294\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps-1024x294.jpg\" alt=\"Various op amps: TLV2462, LM358, MCP6002\" class=\"wp-image-7109\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps-1024x294.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps-300x86.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps-768x220.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps-1536x441.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps-1320x379.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamps.jpg 1900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Various op amps: TLV2462, LM358, MCP6002<\/figcaption><\/figure>\n\n<p>The pinout scheme is the same for all the above representatives:<a id=\"Instrumentenverstaerker\"><\/a><\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamp_pinout.png\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"589\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamp_pinout.png\" alt=\"Pinout of DIP8 op amps\" class=\"wp-image-7110\" style=\"width:433px;height:295px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamp_pinout.png 865w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamp_pinout-300x204.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/07\/opamp_pinout-768x523.png 768w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/a><figcaption class=\"wp-element-caption\">Pinout of DIP8 op amps<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">Instrumention amplifiers<\/h2>\n\n<p>First I tried the so-called <a href=\"https:\/\/de.wikipedia.org\/wiki\/Instrumentenverst%C3%A4rker\" target=\"_blank\" rel=\"noopener\">instrumentation amplifier circuit<\/a>. Usually, it contains three op amps, but there&#8217;s also a simpler version with two op amps. I chose the latter version.<\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP-1024x686.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"686\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP-1024x686.png\" alt=\"Instrumentation amplifier with two op amps\" class=\"wp-image-12675\" style=\"width:512px;height:343px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP-1024x686.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP-300x201.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP-768x514.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP.png 1305w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Instrumentation amplifier with two op amps<\/figcaption><\/figure>\n<\/div>\n<p>The circuit amplifies the voltage difference between V1 and V2 according to the following equation:<\/p>\r\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 46px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-cc0f1492dd95896fe306140390d8c50f_l3.png\" height=\"46\" width=\"304\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#86;&#95;&#123;&#111;&#117;&#116;&#125;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#49;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#82;&#95;&#50;&#125;&#123;&#82;&#95;&#49;&#125;&#43;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#82;&#95;&#50;&#125;&#123;&#82;&#95;&#123;&#103;&#97;&#105;&#110;&#125;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#86;&#95;&#50;&#32;&#45;&#32;&#86;&#95;&#49;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\n<p>V1 and V2 are the voltages at points A and B (see below) of the Wheatstone bridge. There is something important to consider. If V1 is greater than V2, then VOut should be negative. However, this would only work if you supplied the op amp with negative voltage. The solution: You attach another potentiometer with which you can adjust the bridge voltage between A and B. Bring the output voltage to the positive range enough to measure the expected values. The potentiometer should be rather high-impedance because then setting is easier. I used a 1 M\u03a9 potentiometer.<\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"623\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_with_adj.png\" alt=\"\" class=\"wp-image-12689\" style=\"width:472px;height:312px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_with_adj.png 943w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_with_adj-300x198.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/wheatstone_with_adj-768x507.png 768w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><figcaption class=\"wp-element-caption\">Wheatstone bridge with potentiometer (for adjusting the base value)<\/figcaption><\/figure>\n<\/div>\n<p>You can measure the amplified voltage directly with the ADC of your microcontroller. However, these internal converters are often not particularly accurate, as e.g. the ADC of the Arduino UNO or the ESP32. Better is an external A\/D converter like the <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/ads1115-a-d-converter-with-amplifier\" target=\"_blank\" rel=\"noopener\">ADS1115<\/a>.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Practical example of strain gauge measurements with an instrumentation amplifier<\/h3>\n\n<p>Again, I used my metal strip with the full bridge and tried to measure weights. For the instrumentation amplifier I used the following resistors:<\/p>\r\n<ul>\r\n<li>R1 = 10 k\u03a9<\/li>\r\n<li>R2 = 100 k\u03a9<\/li>\r\n<li>RGain = 330 \u03a9<\/li>\r\n<\/ul>\r\n<p>This results in a gain factor of ~617.<\/p>\r\n<p>This is what the circuit looked schematically with Fritzing:&nbsp;<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-1024x511.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-1024x511.png\" alt=\"Complete circuit for strain gauges with instrumentation amplifier\" class=\"wp-image-12855\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-1024x511.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-300x150.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-768x383.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-1536x766.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-860x430.png 860w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2-1320x658.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Instr_OPAMP_ADS1115_2.png 1554w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"> Complete circuit with instrumentation amplifier <\/figcaption><\/figure>\n\n<p>And in reality:<\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-1024x644.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"644\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-1024x644.jpg\" alt=\"The complete experimental setup in reality\" class=\"wp-image-12669\" style=\"width:768px;height:483px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-1024x644.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-300x189.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-768x483.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-1536x965.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-542x340.jpg 542w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP-1320x830.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/4_DMS_Instr_OPAMP.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">The complete experimental setup in reality<\/figcaption><\/figure>\n<\/div>\n<p>And here is the sketch:<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"instr_opamp_strain_gauge_read.ino\" data-enlighter-title=\"instr_opamp_strain_gauge_read.ino\">#include&lt;ADS1115_WE.h&gt; \r\n#include&lt;Wire.h&gt;\r\n#define I2C_ADDRESS 0x48\r\nconst int taraPin = 7;\r\nconst float milliVoltToWeight = 12.15;\r\n\r\nADS1115_WE adc = ADS1115_WE(I2C_ADDRESS);\r\n\r\nvoid setup() {\r\n  Wire.begin();\r\n  Serial.begin(9600);\r\n  adc.setVoltageRange_mV(ADS1115_RANGE_6144); \r\n  adc.setMeasureMode(ADS1115_CONTINUOUS); \r\n}\r\n\r\nvoid loop() {\r\n  float weight = 0.0;\r\n  static float tara = 0.0;\r\n  float voltage = adc.getResult_mV();\r\n  if(digitalRead(taraPin)){\r\n    delay(2000);\r\n    voltage = adc.getResult_mV();\r\n    tara = voltage;\r\n  }\r\n  weight = (voltage - tara)\/milliVoltToWeight; \r\n  voltage = adc.getResult_mV();\r\n  Serial.print(\"Voltage 0 vs GND [mV]: \");\r\n  Serial.println(voltage);\r\n  Serial.print(\"Weight [g]: \");\r\n  Serial.println(weight);\r\n  delay(500);\r\n}<\/pre>\r\n\n<p>I had noticed that pressing the tare button affects the reading (interesting finding!). That is why I have included a <code>delay(2000)<\/code> in line 21.<\/p>\r\n<p>With a known weight, I determined the conversion factor from millivolts to grams (milliVoltToWeight). This is what the output looked like after pressing the tare button and after applying a 54 g weight:<\/p>\r\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"363\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/OPAMP_INSTR_DMS.png\" alt=\"Strain gauge measurement with instrument amplifier and ADS1115, left: without weight, right: 54 g\" class=\"wp-image-12692\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/OPAMP_INSTR_DMS.png 827w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/OPAMP_INSTR_DMS-300x132.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/OPAMP_INSTR_DMS-768x337.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><figcaption class=\"wp-element-caption\">Strain gauge measurement with instrument amplifier and ADS1115, left: without weight, right: 54 g<\/figcaption><\/figure>\n\n<p>Not so bad either, I think. By using averaging or damping functions, the noise of the values can be reduced.<a id=\"Differenzverstaerker\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">Differential amplifier<\/h2>\n\n<p>Alternatively, you can use a differential amplifier circuit. his requires only one operational amplifier and one less resistor.<\/p>\r\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP-1024x568.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"568\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP-1024x568.png\" alt=\"The op amp as differential amplifier\" class=\"wp-image-12677\" style=\"width:512px;height:284px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP-1024x568.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP-300x167.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP-768x426.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP-1536x853.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP-1320x733.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP.png 1544w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">The op amp as differential amplifier<\/figcaption><\/figure>\n<\/div>\n<p>If R1 = R2 and R3 = R4, then the following applies:<\/p>\r\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 41px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-d9d972df5b467b8d8bacedaaa09e5b3f_l3.png\" height=\"41\" width=\"171\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#86;&#95;&#123;&#111;&#117;&#116;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#82;&#95;&#51;&#125;&#123;&#82;&#95;&#49;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#86;&#95;&#50;&#45;&#86;&#95;&#49;&#92;&#114;&#105;&#103;&#104;&#116;&#41; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\n<p>Here, too, you have to make sure that (V<sub>2<\/sub> &#8211; V<sub>1)<\/sub> does not become negative. So, I added a potentiometer again to set the baseline of the bridge output voltage to a positive value.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115-1024x441.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"441\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115-1024x441.png\" alt=\"Complete circuit with differential amplifier \" class=\"wp-image-12857\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115-1024x441.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115-300x129.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115-768x331.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115-1536x662.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115-1320x569.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Diff_OPAMP_ADS1115.png 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"> Complete circuit with differential amplifier <\/figcaption><\/figure>\n\n<p>In my experiments, I used full bridge again. The resistors R1 and R2 for the OpAmp were 330 ohms, R3 and R4 were 680 kOhm. This results in a gain factor of ~2061. This allowed me to achieve similarly good results as with the instrumentation amplifier circuit.<a id=\"Fuer_Bequeme\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">For the lazy ones: a ready-made solution<\/h2>\n\n<p>If you do not feel like soldering and you can get by with a single strain gauge, then I can recommend such a ready-made solution:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module-1024x303.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"303\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module-1024x303.jpg\" alt=\"The ready-made solution for strain gauges\" class=\"wp-image-12698\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module-1024x303.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module-300x89.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module-768x227.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module-1536x454.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module-1320x390.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/strain_gauge_module.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">The ready-made solution for strain gauges<\/figcaption><\/figure>\n\n<p>On the module there is an LM358 based amplifier circuit with fixed gain factor. The potentiometer is used to set the zero point. In principle, this is similar to the circuits described before. You only have to connect 5 volts and can read the output voltage directly. I tried such a part and it worked flawlessly. You can get these modules on eBay or AliExpress for a few euros. Just search for &#8220;strain gauge&#8221; or &#8220;strain gauge module&#8221;.<\/p>\r\n\n<h2 class=\"wp-block-heading\">Acknowledgement<\/h2>\n\n<p>The lady with the stretching exercise on the post picture, I owe <a href=\"https:\/\/pixabay.com\/de\/users\/pexels-2286921\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1834827\" target=\"_blank\" rel=\"noopener\">Pexels<\/a> on <a href=\"https:\/\/pixabay.com\/de\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1834827\" target=\"_blank\" rel=\"noopener\">Pixabay<\/a>.<\/p>\r\n<p><a href=\"https:\/\/github.com\/brucetsao\" target=\"_blank\" rel=\"noopener\">Bruce Tsao<\/a> created the HX711 as a Fritzing component. You can get it <a href=\"https:\/\/github.com\/brucetsao\/Fritzing\/blob\/master\/HX711%20Weighing%20Sensor%20Module.fzpz\" target=\"_blank\" rel=\"noopener\">here<\/a> on GitHub.<\/p>\r\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With strain gauges you can measure the strain and bending of components. I&#8217;ll show you how to use them with the HX711 or op amps.<\/p>\n","protected":false},"author":1,"featured_media":12685,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[572],"tags":[556,1256,1572,1107,1573,1250,1252,1568,1570,1569,1571],"class_list":["post-12862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sensors","tag-arduino-en-2","tag-differential-amplifier","tag-gluing","tag-hx711-adc-library-2","tag-instrumentation-amplifier","tag-op-amp-en","tag-operational-amplifier-en","tag-strain-gauges","tag-wheatstone-en","tag-wheatstone-bridge","tag-wheatstone-bridge-circuit"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Strain gauges &#8226; Wolles Elektronikkiste<\/title>\n<meta name=\"description\" content=\"With strain gauges, you can measure the strain and bending of components. I&#039;ll show you how to use them with the HX711 or op amps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Strain gauges &#8226; Wolles Elektronikkiste\" \/>\n<meta property=\"og:description\" content=\"With strain gauges, you can measure the strain and bending of components. I&#039;ll show you how to use them with the HX711 or op amps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges\" \/>\n<meta property=\"og:site_name\" content=\"Wolles Elektronikkiste\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-29T10:49:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-29T15:00:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Beitragsbild.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1036\" \/>\n\t<meta property=\"og:image:height\" content=\"1036\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Wolfgang Ewald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wolfgang Ewald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges\"},\"author\":{\"name\":\"Wolfgang Ewald\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"headline\":\"Strain gauges\",\"datePublished\":\"2021-10-29T10:49:51+00:00\",\"dateModified\":\"2024-10-29T15:00:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges\"},\"wordCount\":2936,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Beitragsbild.jpg\",\"keywords\":[\"Arduino\",\"differential amplifier\",\"gluing\",\"HX711 ADC library\",\"instrumentation amplifier\",\"op amp\",\"operational amplifier\",\"strain gauges\",\"Wheatstone\",\"Wheatstone bridge\",\"Wheatstone bridge circuit\"],\"articleSection\":[\"Sensors\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges\",\"name\":\"Strain gauges &#8226; Wolles Elektronikkiste\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Beitragsbild.jpg\",\"datePublished\":\"2021-10-29T10:49:51+00:00\",\"dateModified\":\"2024-10-29T15:00:16+00:00\",\"description\":\"With strain gauges, you can measure the strain and bending of components. I'll show you how to use them with the HX711 or op amps.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#primaryimage\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Beitragsbild.jpg\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Beitragsbild.jpg\",\"width\":1036,\"height\":1036},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/strain-gauges#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Strain gauges\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\",\"name\":\"Wolles Elektronikkiste\",\"description\":\"Die wunderbare Welt der Elektronik\",\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\",\"name\":\"Wolfgang Ewald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"width\":512,\"height\":512,\"caption\":\"Wolfgang Ewald\"},\"logo\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Strain gauges &#8226; Wolles Elektronikkiste","description":"With strain gauges, you can measure the strain and bending of components. I'll show you how to use them with the HX711 or op amps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges","og_locale":"en_US","og_type":"article","og_title":"Strain gauges &#8226; Wolles Elektronikkiste","og_description":"With strain gauges, you can measure the strain and bending of components. I'll show you how to use them with the HX711 or op amps.","og_url":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges","og_site_name":"Wolles Elektronikkiste","article_published_time":"2021-10-29T10:49:51+00:00","article_modified_time":"2024-10-29T15:00:16+00:00","og_image":[{"width":1036,"height":1036,"url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Beitragsbild.jpg","type":"image\/jpeg"}],"author":"Wolfgang Ewald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Wolfgang Ewald","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#article","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges"},"author":{"name":"Wolfgang Ewald","@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"headline":"Strain gauges","datePublished":"2021-10-29T10:49:51+00:00","dateModified":"2024-10-29T15:00:16+00:00","mainEntityOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges"},"wordCount":2936,"commentCount":8,"publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Beitragsbild.jpg","keywords":["Arduino","differential amplifier","gluing","HX711 ADC library","instrumentation amplifier","op amp","operational amplifier","strain gauges","Wheatstone","Wheatstone bridge","Wheatstone bridge circuit"],"articleSection":["Sensors"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges","url":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges","name":"Strain gauges &#8226; Wolles Elektronikkiste","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#primaryimage"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Beitragsbild.jpg","datePublished":"2021-10-29T10:49:51+00:00","dateModified":"2024-10-29T15:00:16+00:00","description":"With strain gauges, you can measure the strain and bending of components. I'll show you how to use them with the HX711 or op amps.","breadcrumb":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#primaryimage","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Beitragsbild.jpg","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2021\/10\/Beitragsbild.jpg","width":1036,"height":1036},{"@type":"BreadcrumbList","@id":"https:\/\/wolles-elektronikkiste.de\/en\/strain-gauges#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wolles-elektronikkiste.de\/en"},{"@type":"ListItem","position":2,"name":"Strain gauges"}]},{"@type":"WebSite","@id":"https:\/\/wolles-elektronikkiste.de\/en#website","url":"https:\/\/wolles-elektronikkiste.de\/en","name":"Wolles Elektronikkiste","description":"Die wunderbare Welt der Elektronik","publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wolles-elektronikkiste.de\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46","name":"Wolfgang Ewald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","width":512,"height":512,"caption":"Wolfgang Ewald"},"logo":{"@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png"}}]}},"_links":{"self":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/12862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/comments?post=12862"}],"version-history":[{"count":0,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/12862\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media\/12685"}],"wp:attachment":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media?parent=12862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/categories?post=12862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/tags?post=12862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}