{"product_id":"load-cell-1kg","title":"Load Cell","description":"\u003cdiv class=\"ep-desc\" style=\"color:#42434d; line-height:1.6;\"\u003e\n\n\u003cp style=\"font-size:1.08em; margin:0 0 10px;\"\u003e\u003cstrong\u003eA 4-wire strain-gauge bar load cell in 1 kg, 5 kg, 10 kg and 20 kg ratings, for building your own digital scale.\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp style=\"margin:0 0 16px;\"\u003eThis compact 75 mm bar bends slightly under load, and its strain gauges turn that into an electrical signal. Pair it with an HX711 amplifier board and an Arduino UNO, ESP32 or Raspberry Pi Pico to weigh anything up to the rated capacity.\u003c\/p\u003e\n\n\u003cdiv style=\"display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px;\"\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eRated capacity\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003e1 \/ 5 \/ 10 \/ 20 kg\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eSize\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003e75 × 12.7 × 12.7 mm\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eWires\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003e4 (red, black, green, white)\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"flex:1 1 130px; background:#f9f9fb; border:1px solid #e8e8e1; border-top:3px solid #313652; border-radius:6px; padding:10px 12px;\"\u003e\n\u003cdiv style=\"font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b6d7a;\"\u003eNeeds\u003c\/div\u003e\n\u003cdiv style=\"font-weight:700; color:#272831;\"\u003eHX711 amplifier board\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003ch2\u003eWhy choose it\u003c\/h2\u003e\n\u003cul style=\"padding-left:1.2em;\"\u003e\n\u003cli\u003e\n\u003cstrong\u003eFour capacities, one size\u003c\/strong\u003e — choose 1 kg, 5 kg, 10 kg or 20 kg to suit your heaviest load; the body size is the same.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eWorks with common boards\u003c\/strong\u003e — with an HX711 board it connects to Arduino UNO, ESP32 and Raspberry Pi Pico using two signal pins.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eEasy to fit\u003c\/strong\u003e — threaded mounting holes in the body let you fix one end and load the other.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eSpecifications\u003c\/h2\u003e\n\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em;\"\u003e\u003ctbody\u003e\n\u003ctr\u003e\u003cth colspan=\"2\" scope=\"colgroup\" style=\"text-align:left; background:#313652; color:#fff; padding:7px 10px; font-weight:600;\"\u003eCore\u003c\/th\u003e\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eType\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eStrain-gauge bar (beam) load cell, 4-wire\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eRated capacity (by option)\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1 kg · 5 kg · 10 kg · 20 kg\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eOutput\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSmall analogue signal; needs an amplifier such as the HX711\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth colspan=\"2\" scope=\"colgroup\" style=\"text-align:left; background:#313652; color:#fff; padding:7px 10px; font-weight:600;\"\u003ePhysical\u003c\/th\u003e\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eDimensions\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e75 mm × 12.7 mm × 12.7 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eMounting\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eThreaded mounting holes in the body\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth scope=\"row\" style=\"text-align:left; width:42%; padding:7px 10px; border-bottom:1px solid #e8e8e1; font-weight:600; color:#272831;\"\u003eWires\u003c\/th\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e4 colour-coded wires: red, black, green, white\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\u003c\/table\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003ePlatform\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWorks\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eArduino UNO \/ Nano (5 V)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e◐ With adapter\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eConnect through an HX711 amplifier board; never straight to a pin\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32 (3.3 V)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e◐ With adapter\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 board, powered from 3V3\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRaspberry Pi Pico (3.3 V)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e◐ With adapter\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 board, powered from 3V3(OUT)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSoftware\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e✓ Yes\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eArduino IDE with \"HX711 Arduino Library\"; MicroPython with the community hx711_gpio.py driver\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\n\u003ch2\u003eIn the box\u003c\/h2\u003e\n\u003cdiv style=\"display:flex; flex-wrap:wrap; gap:12px;\"\u003e\u003cdiv style=\"flex:1 1 220px; border:1px solid #e8e8e1; border-radius:6px; padding:10px 14px;\"\u003e\n\u003cdiv style=\"font-weight:700; color:#272831; margin-bottom:4px;\"\u003eIncluded\u003c\/div\u003e\n\u003cul style=\"margin:0; padding-left:1.2em;\"\u003e\u003cli\u003e1 × load cell (the capacity you choose)\u003c\/li\u003e\u003c\/ul\u003e\n\u003c\/div\u003e\u003c\/div\u003e\n\n\u003ch2\u003eOptions\u003c\/h2\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eOption\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWhat is different\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eChoose it when\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRated capacity 1 kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eYour heaviest load is under 1 kg\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRated capacity 5 kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eYour heaviest load is under 5 kg\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e10kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRated capacity 10 kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eYour heaviest load is under 10 kg\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e20kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRated capacity 20 kg\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eYour heaviest load is under 20 kg\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\n\u003ch2\u003eApplications\u003c\/h2\u003e\n\u003cul style=\"padding-left:1.2em;\"\u003e\n\u003cli\u003eKitchen or parcel scales\u003c\/li\u003e\n\u003cli\u003eWeighing a bag, bucket or tank on a bracket\u003c\/li\u003e\n\u003cli\u003eForce or load monitoring in small projects\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003c!-- EP:TUTORIAL START --\u003e\n\u003ch2\u003eTutorial\u003c\/h2\u003e\n\u003cdiv style=\"border:1px solid #e8e8e1; border-left:4px solid #313652; border-radius:6px; padding:10px 14px; margin:0 0 12px;\"\u003e\u003cdiv\u003e\n\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eWhat you'll build:\u003c\/strong\u003e a digital scale that prints the weight on your computer every half second · About 30 minutes.\u003c\/p\u003e\n\u003ch3 style=\"margin:18px 0 8px; color:#272831;\"\u003eChoose your board\u003c\/h3\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eBoard\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eLogic voltage\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003ePins used\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eLanguage\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eBest for\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eArduino UNO\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eD2, D3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eC++ (Arduino IDE)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eFirst-timers\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3.3 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGPIO16, GPIO4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eC++ (Arduino IDE)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSending weights over Wi-Fi later\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRaspberry Pi Pico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3.3 V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGP4, GP5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eMicroPython (Thonny)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLearning Python\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px;font-size:.95em;\"\u003eNew to this? Start with the Arduino UNO.\u003c\/p\u003e\n\u003ch3 style=\"margin:18px 0 8px; color:#272831;\"\u003eHow it works\u003c\/h3\u003e\n\u003cp style=\"margin:0 0 10px;\"\u003ePressing on the load cell bends the metal bar a tiny amount. Strain gauges glued to the bar change their resistance, and the load cell turns that into a very small voltage. A microcontroller cannot read such a small voltage, so an HX711 amplifier board makes it bigger and sends it to the board as a number.\u003c\/p\u003e\n\u003cul style=\"margin:0 0 10px; padding-left:20px;\"\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e — the return path; every GND must be joined.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eE+ \/ E−\u003c\/strong\u003e — the power (excitation) wires that feed the load cell.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eA+ \/ A−\u003c\/strong\u003e — the signal wires that carry the tiny voltage back.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eTare\u003c\/strong\u003e — setting the scale to zero with nothing on it.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdetails style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:10px 0;\"\u003e\u003csummary style=\"cursor:pointer;\"\u003e\u003csvg width=\"240\" height=\"26\" viewbox=\"0 0 240 26\" role=\"img\" aria-label=\"Arduino UNO Tutorial\" style=\"vertical-align:middle;\"\u003e\u003cdefs\u003e\u003clineargradient id=\"ep-tut-uno\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\" spreadmethod=\"reflect\"\u003e\u003cstop offset=\"0\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"0.5\" stop-color=\"#BFE3FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"1\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003canimatetransform attributename=\"gradientTransform\" type=\"translate\" from=\"-1 0\" to=\"1 0\" dur=\"3s\" repeatcount=\"indefinite\"\u003e\u003c\/animatetransform\u003e\u003c\/lineargradient\u003e\u003c\/defs\u003e\u003ctext x=\"2\" y=\"19\" font-size=\"18\" font-weight=\"700\" font-style=\"italic\" font-family=\"Arial,Helvetica,sans-serif\" fill=\"url(#ep-tut-uno)\"\u003eArduino UNO Tutorial\u003c\/text\u003e\u003c\/svg\u003e\u003c\/summary\u003e\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eYou need:\u003c\/strong\u003e Arduino UNO R3, a data USB cable, an HX711 amplifier board (\u003ca href=\"\/products\/rn1010\"\u003eLoad Cell HX711 Weighing Sensor\u003c\/a\u003e) and 4 jumper wires.\u003c\/p\u003e\n\u003cdiv style=\"max-width:760px; margin:0 0 12px; border:1px solid #e8e8e1; border-radius:6px; padding:8px; background:#fff;\"\u003e\u003csvg viewbox=\"0 0 760 270\" width=\"100%\" role=\"img\" aria-label=\"Wiring diagram: Arduino UNO R3 to HX711 board to load cell\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"display:block; font-family:Arial,sans-serif;\"\u003e\u003ctitle\u003eWiring diagram: Arduino UNO R3 to HX711 board to load cell\u003c\/title\u003e\n\u003crect x=\"10\" y=\"40\" width=\"170\" height=\"210\" rx=\"10\" fill=\"#1f6f8b\"\u003e\u003c\/rect\u003e\u003ctext x=\"95\" y=\"66\" fill=\"#fff\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eArduino UNO R3\u003c\/text\u003e\u003crect x=\"300\" y=\"40\" width=\"150\" height=\"210\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"375\" y=\"66\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eHX711 board\u003c\/text\u003e\u003crect x=\"590\" y=\"40\" width=\"160\" height=\"210\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"670\" y=\"66\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eLoad cell\u003c\/text\u003e\u003ctext x=\"168\" y=\"104\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003e5V\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"100\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 100 H310\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"104\" fill=\"#272831\" font-size=\"12\"\u003eVCC\u003c\/text\u003e\u003ctext x=\"168\" y=\"144\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eD2\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"140\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 140 H310\" stroke=\"#F9A825\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"144\" fill=\"#272831\" font-size=\"12\"\u003eDT\u003c\/text\u003e\u003ctext x=\"168\" y=\"184\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eD3\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"180\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 180 H310\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"184\" fill=\"#272831\" font-size=\"12\"\u003eSCK\u003c\/text\u003e\u003ctext x=\"168\" y=\"224\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGND\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"220\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 220 H310\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"224\" fill=\"#272831\" font-size=\"12\"\u003eGND\u003c\/text\u003e\u003ctext x=\"438\" y=\"104\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eE+\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 100 H590\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"104\" fill=\"#272831\" font-size=\"12\"\u003eRed wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"144\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eE−\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 140 H590\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"144\" fill=\"#272831\" font-size=\"12\"\u003eBlack wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"184\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eA+\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 180 H590\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"184\" fill=\"#272831\" font-size=\"12\"\u003eGreen wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"224\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eA−\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 220 H590\" stroke=\"#F9A825\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"224\" fill=\"#272831\" font-size=\"12\"\u003eWhite wire\u003c\/text\u003e\u003ctext x=\"245\" y=\"250\" fill=\"#6b6d7a\" font-size=\"11\" text-anchor=\"middle\"\u003eWire 1–4\u003c\/text\u003e\u003ctext x=\"520\" y=\"250\" fill=\"#6b6d7a\" font-size=\"11\" text-anchor=\"middle\"\u003eWire 5–8\u003c\/text\u003e\u003c\/svg\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.9em; color:#6b6d7a;\"\u003e\u003cspan style=\"color:#E53935;\"\u003e■\u003c\/span\u003e Power   \u003cspan style=\"color:#212121;\"\u003e■\u003c\/span\u003e GND   \u003cspan style=\"color:#F9A825;\"\u003e■\u003c\/span\u003e Signal   \u003cspan style=\"color:#43A047;\"\u003e■\u003c\/span\u003e Other signal   Load cell wires are named by their colour. Check the pin labels printed on your HX711 board.\u003c\/p\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e#\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eArduino UNO R3 pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e→\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eModule pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWire colour\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5V\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 VCC\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePower (5V)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e2\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eD2\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 DT\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eYellow\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eD3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 SCK\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eClock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 GND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 E+\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eExcitation +\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e6\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 E−\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eExcitation −\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e7\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 A+\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSignal +\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e8\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 A−\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eWhite\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSignal −\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.95em;\"\u003eWires 5–8 are the same on every board. \u003c\/p\u003e\n\u003cp style=\"margin:0 0 10px; padding:6px 10px; background:#fff8e6; border-left:3px solid #F9A825; border-radius:4px;\"\u003e\u003cstrong\u003eWatch out:\u003c\/strong\u003e The HX711 can run from 2.6–5.5 V, so 5 V from the UNO is fine. Keep wires 5–8 short and tidy: the signal from the load cell is very small and picks up noise easily.\u003c\/p\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e1\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall the HX711 library\u003c\/strong\u003e\u003cbr\u003eInstall the \u003ca href=\"https:\/\/www.arduino.cc\/en\/software\"\u003eArduino IDE\u003c\/a\u003e, then Sketch → Include Library → Manage Libraries → search for \u003cem\u003eHX711 Arduino Library\u003c\/em\u003e by Bogdan Necula (\u003ca href=\"https:\/\/github.com\/bogde\/HX711\"\u003elibrary page\u003c\/a\u003e) → Install.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e2\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eSelect the board and port\u003c\/strong\u003e\u003cbr\u003eTools → Board → Arduino UNO, then Tools → Port → the port of your board. If no port appears, use a data USB cable and install the USB driver for your board.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e3\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eWire it with the USB cable unplugged\u003c\/strong\u003e\u003cbr\u003eConnect wires 1–8 as in the table. Do not touch the load cell body yet; leave it resting on the bench.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e4\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eUpload the example\u003c\/strong\u003e\u003cbr\u003ePaste the code below into a new sketch and click Upload. Do not touch the load cell while it starts: it sets zero in the first seconds.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdetails open style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:8px 0 12px;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Example — Read the weight\u003c\/summary\u003e\u003cpre style=\"background:#272831; color:#f4f4f6; padding:12px; border-radius:6px; overflow-x:auto; font-size:13px; line-height:1.45;\"\u003e\u003ccode style=\"background:transparent !important;color:#f4f4f6 !important;padding:0 !important;border:0 !important;font-family:Menlo,Consolas,monospace;font-size:13px;white-space:pre;\"\u003e\/\/ Wiring: HX711 VCC-\u0026gt;5V, GND-\u0026gt;GND, DT-\u0026gt;D2, SCK-\u0026gt;D3\n#include \"HX711.h\"\n\nconst int LOADCELL_DOUT_PIN = 2;   \/\/ DT pin\nconst int LOADCELL_SCK_PIN  = 3;   \/\/ SCK pin\nconst float CALIBRATION_FACTOR = 1.0; \/\/ you can change this (see step 5)\n\nHX711 scale;\n\nvoid setup() {\n  Serial.begin(115200);                       \/\/ speed of the Serial Monitor\n  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);\n  if (!scale.wait_ready_timeout(1000)) {      \/\/ wait up to 1 second for the HX711\n    Serial.println(\"HX711 not found - check wiring\");\n    while (true) {}                           \/\/ stop here\n  }\n  Serial.println(\"OK - epartners.co.nz test\");\n  scale.set_scale(CALIBRATION_FACTOR);        \/\/ divide the raw value by this number\n  scale.tare(10);                             \/\/ set zero (nothing on the load cell)\n}\n\nvoid loop() {\n  Serial.print(\"Reading: \");\n  Serial.println(scale.get_units(10), 1);     \/\/ average of 10 readings\n  delay(500);\n}\n\u003c\/code\u003e\u003c\/pre\u003e\u003c\/details\u003e\u003cp style=\"margin:0 0 12px; padding:6px 10px; background:#eef7ee; border-left:3px solid #43A047; border-radius:4px;\"\u003e\u003cstrong\u003e✓ Check:\u003c\/strong\u003e Open the Serial Monitor at 115200 baud. It prints \"OK - epartners.co.nz test\" once, then \"Reading:\" every half second. If it says \"HX711 not found - check wiring\", check wires 1–4.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:10px 0;\"\u003e\u003csummary style=\"cursor:pointer;\"\u003e\u003csvg width=\"160\" height=\"26\" viewbox=\"0 0 160 26\" role=\"img\" aria-label=\"ESP32 Tutorial\" style=\"vertical-align:middle;\"\u003e\u003cdefs\u003e\u003clineargradient id=\"ep-tut-esp32\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\" spreadmethod=\"reflect\"\u003e\u003cstop offset=\"0\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"0.5\" stop-color=\"#BFE3FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"1\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003canimatetransform attributename=\"gradientTransform\" type=\"translate\" from=\"-1 0\" to=\"1 0\" dur=\"3s\" repeatcount=\"indefinite\"\u003e\u003c\/animatetransform\u003e\u003c\/lineargradient\u003e\u003c\/defs\u003e\u003ctext x=\"2\" y=\"19\" font-size=\"18\" font-weight=\"700\" font-style=\"italic\" font-family=\"Arial,Helvetica,sans-serif\" fill=\"url(#ep-tut-esp32)\"\u003eESP32 Tutorial\u003c\/text\u003e\u003c\/svg\u003e\u003c\/summary\u003e\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eYou need:\u003c\/strong\u003e ESP32 DevKitC (ESP32-WROOM-32), a data USB cable, an HX711 amplifier board (\u003ca href=\"\/products\/rn1010\"\u003eLoad Cell HX711 Weighing Sensor\u003c\/a\u003e) and 4 jumper wires.\u003c\/p\u003e\n\u003cdiv style=\"max-width:760px; margin:0 0 12px; border:1px solid #e8e8e1; border-radius:6px; padding:8px; background:#fff;\"\u003e\u003csvg viewbox=\"0 0 760 270\" width=\"100%\" role=\"img\" aria-label=\"Wiring diagram: ESP32 DevKitC (ESP32-WROOM-32) to HX711 board to load cell\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"display:block; font-family:Arial,sans-serif;\"\u003e\u003ctitle\u003eWiring diagram: ESP32 DevKitC (ESP32-WROOM-32) to HX711 board to load cell\u003c\/title\u003e\n\u003crect x=\"10\" y=\"40\" width=\"170\" height=\"210\" rx=\"10\" fill=\"#1f6f8b\"\u003e\u003c\/rect\u003e\u003ctext x=\"95\" y=\"66\" fill=\"#fff\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eESP32 DevKitC (ESP32-WROOM-32)\u003c\/text\u003e\u003crect x=\"300\" y=\"40\" width=\"150\" height=\"210\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"375\" y=\"66\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eHX711 board\u003c\/text\u003e\u003crect x=\"590\" y=\"40\" width=\"160\" height=\"210\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"670\" y=\"66\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eLoad cell\u003c\/text\u003e\u003ctext x=\"168\" y=\"104\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003e3V3\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"100\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 100 H310\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"104\" fill=\"#272831\" font-size=\"12\"\u003eVCC\u003c\/text\u003e\u003ctext x=\"168\" y=\"144\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGPIO16\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"140\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 140 H310\" stroke=\"#F9A825\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"144\" fill=\"#272831\" font-size=\"12\"\u003eDT\u003c\/text\u003e\u003ctext x=\"168\" y=\"184\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGPIO4\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"180\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 180 H310\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"184\" fill=\"#272831\" font-size=\"12\"\u003eSCK\u003c\/text\u003e\u003ctext x=\"168\" y=\"224\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGND\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"220\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 220 H310\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"224\" fill=\"#272831\" font-size=\"12\"\u003eGND\u003c\/text\u003e\u003ctext x=\"438\" y=\"104\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eE+\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 100 H590\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"104\" fill=\"#272831\" font-size=\"12\"\u003eRed wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"144\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eE−\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 140 H590\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"144\" fill=\"#272831\" font-size=\"12\"\u003eBlack wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"184\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eA+\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 180 H590\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"184\" fill=\"#272831\" font-size=\"12\"\u003eGreen wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"224\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eA−\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 220 H590\" stroke=\"#F9A825\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"224\" fill=\"#272831\" font-size=\"12\"\u003eWhite wire\u003c\/text\u003e\u003ctext x=\"245\" y=\"250\" fill=\"#6b6d7a\" font-size=\"11\" text-anchor=\"middle\"\u003eWire 1–4\u003c\/text\u003e\u003ctext x=\"520\" y=\"250\" fill=\"#6b6d7a\" font-size=\"11\" text-anchor=\"middle\"\u003eWire 5–8\u003c\/text\u003e\u003c\/svg\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.9em; color:#6b6d7a;\"\u003e\u003cspan style=\"color:#E53935;\"\u003e■\u003c\/span\u003e Power   \u003cspan style=\"color:#212121;\"\u003e■\u003c\/span\u003e GND   \u003cspan style=\"color:#F9A825;\"\u003e■\u003c\/span\u003e Signal   \u003cspan style=\"color:#43A047;\"\u003e■\u003c\/span\u003e Other signal   Load cell wires are named by their colour. Check the pin labels printed on your HX711 board.\u003c\/p\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e#\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eESP32 DevKitC (ESP32-WROOM-32) pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e→\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eModule pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWire colour\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3V3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 VCC\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePower (3V3)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e2\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGPIO16\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 DT\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eYellow\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGPIO4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 SCK\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eClock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 GND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 E+\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eExcitation +\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e6\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 E−\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eExcitation −\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e7\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 A+\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSignal +\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e8\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 A−\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eWhite\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSignal −\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.95em;\"\u003eWires 5–8 are the same on every board. \u003c\/p\u003e\n\u003cp style=\"margin:0 0 10px; padding:6px 10px; background:#fff8e6; border-left:3px solid #F9A825; border-radius:4px;\"\u003e\u003cstrong\u003eWatch out:\u003c\/strong\u003e ESP32 pins are 3.3 V only. Power the HX711 from 3V3, never 5 V, so DT stays at 3.3 V. Keep wires 5–8 short and tidy.\u003c\/p\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e1\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall the HX711 library\u003c\/strong\u003e\u003cbr\u003eInstall the \u003ca href=\"https:\/\/www.arduino.cc\/en\/software\"\u003eArduino IDE\u003c\/a\u003e, then Sketch → Include Library → Manage Libraries → search for \u003cem\u003eHX711 Arduino Library\u003c\/em\u003e by Bogdan Necula (\u003ca href=\"https:\/\/github.com\/bogde\/HX711\"\u003elibrary page\u003c\/a\u003e) → Install.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e2\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eAdd the ESP32 boards\u003c\/strong\u003e\u003cbr\u003eFollow the \u003ca href=\"https:\/\/docs.espressif.com\/projects\/arduino-esp32\/en\/latest\/installing.html\"\u003eofficial install guide\u003c\/a\u003e: File → Preferences → Additional boards manager URLs → add \u003ccode\u003ehttps:\/\/espressif.github.io\/arduino-esp32\/package_esp32_index.json\u003c\/code\u003e. Then Tools → Board → Boards Manager → install \u003cem\u003eesp32 by Espressif Systems\u003c\/em\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e3\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eSelect the board and port\u003c\/strong\u003e\u003cbr\u003eTools → Board → ESP32 Dev Module, then Tools → Port. If the upload fails, set Tools → Upload Speed → 115200 and upload again.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e4\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eWire it with the USB cable unplugged\u003c\/strong\u003e\u003cbr\u003eConnect wires 1–8 as in the table, then paste the code below and click Upload.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdetails open style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:8px 0 12px;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Example — Read the weight\u003c\/summary\u003e\u003cpre style=\"background:#272831; color:#f4f4f6; padding:12px; border-radius:6px; overflow-x:auto; font-size:13px; line-height:1.45;\"\u003e\u003ccode style=\"background:transparent !important;color:#f4f4f6 !important;padding:0 !important;border:0 !important;font-family:Menlo,Consolas,monospace;font-size:13px;white-space:pre;\"\u003e\/\/ Wiring: HX711 VCC-\u0026gt;3V3, GND-\u0026gt;GND, DT-\u0026gt;GPIO16, SCK-\u0026gt;GPIO4\n#include \"HX711.h\"\n\nconst int LOADCELL_DOUT_PIN = 16;   \/\/ DT pin\nconst int LOADCELL_SCK_PIN  = 4;   \/\/ SCK pin\nconst float CALIBRATION_FACTOR = 1.0; \/\/ you can change this (see step 5)\n\nHX711 scale;\n\nvoid setup() {\n  Serial.begin(115200);                       \/\/ speed of the Serial Monitor\n  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);\n  if (!scale.wait_ready_timeout(1000)) {      \/\/ wait up to 1 second for the HX711\n    Serial.println(\"HX711 not found - check wiring\");\n    while (true) {}                           \/\/ stop here\n  }\n  Serial.println(\"OK - epartners.co.nz test\");\n  scale.set_scale(CALIBRATION_FACTOR);        \/\/ divide the raw value by this number\n  scale.tare(10);                             \/\/ set zero (nothing on the load cell)\n}\n\nvoid loop() {\n  Serial.print(\"Reading: \");\n  Serial.println(scale.get_units(10), 1);     \/\/ average of 10 readings\n  delay(500);\n}\n\u003c\/code\u003e\u003c\/pre\u003e\u003c\/details\u003e\u003cp style=\"margin:0 0 12px; padding:6px 10px; background:#eef7ee; border-left:3px solid #43A047; border-radius:4px;\"\u003e\u003cstrong\u003e✓ Check:\u003c\/strong\u003e Open the Serial Monitor at 115200 baud. It prints \"OK - epartners.co.nz test\" once, then \"Reading:\" every half second. If it says \"HX711 not found - check wiring\", check wires 1–4.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:10px 0;\"\u003e\u003csummary style=\"cursor:pointer;\"\u003e\u003csvg width=\"290\" height=\"26\" viewbox=\"0 0 290 26\" role=\"img\" aria-label=\"Raspberry Pi Pico Tutorial\" style=\"vertical-align:middle;\"\u003e\u003cdefs\u003e\u003clineargradient id=\"ep-tut-pico\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\" spreadmethod=\"reflect\"\u003e\u003cstop offset=\"0\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"0.5\" stop-color=\"#BFE3FF\"\u003e\u003c\/stop\u003e\u003cstop offset=\"1\" stop-color=\"#4FA8FF\"\u003e\u003c\/stop\u003e\u003canimatetransform attributename=\"gradientTransform\" type=\"translate\" from=\"-1 0\" to=\"1 0\" dur=\"3s\" repeatcount=\"indefinite\"\u003e\u003c\/animatetransform\u003e\u003c\/lineargradient\u003e\u003c\/defs\u003e\u003ctext x=\"2\" y=\"19\" font-size=\"18\" font-weight=\"700\" font-style=\"italic\" font-family=\"Arial,Helvetica,sans-serif\" fill=\"url(#ep-tut-pico)\"\u003eRaspberry Pi Pico Tutorial\u003c\/text\u003e\u003c\/svg\u003e\u003c\/summary\u003e\u003cp style=\"margin:0 0 10px;\"\u003e\u003cstrong\u003eYou need:\u003c\/strong\u003e Raspberry Pi Pico (RP2040), a USB cable, an HX711 amplifier board (\u003ca href=\"\/products\/rn1010\"\u003eLoad Cell HX711 Weighing Sensor\u003c\/a\u003e) and 4 jumper wires.\u003c\/p\u003e\n\u003cdiv style=\"max-width:760px; margin:0 0 12px; border:1px solid #e8e8e1; border-radius:6px; padding:8px; background:#fff;\"\u003e\u003csvg viewbox=\"0 0 760 270\" width=\"100%\" role=\"img\" aria-label=\"Wiring diagram: Raspberry Pi Pico to HX711 board to load cell\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"display:block; font-family:Arial,sans-serif;\"\u003e\u003ctitle\u003eWiring diagram: Raspberry Pi Pico to HX711 board to load cell\u003c\/title\u003e\n\u003crect x=\"10\" y=\"40\" width=\"170\" height=\"210\" rx=\"10\" fill=\"#1f6f8b\"\u003e\u003c\/rect\u003e\u003ctext x=\"95\" y=\"66\" fill=\"#fff\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eRaspberry Pi Pico\u003c\/text\u003e\u003crect x=\"300\" y=\"40\" width=\"150\" height=\"210\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"375\" y=\"66\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eHX711 board\u003c\/text\u003e\u003crect x=\"590\" y=\"40\" width=\"160\" height=\"210\" rx=\"10\" fill=\"#f9f9fb\" stroke=\"#313652\" stroke-width=\"2\"\u003e\u003c\/rect\u003e\u003ctext x=\"670\" y=\"66\" fill=\"#272831\" font-size=\"15\" font-weight=\"700\" text-anchor=\"middle\"\u003eLoad cell\u003c\/text\u003e\u003ctext x=\"168\" y=\"104\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003e3V3(OUT) (36)\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"100\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 100 H310\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"104\" fill=\"#272831\" font-size=\"12\"\u003eVCC\u003c\/text\u003e\u003ctext x=\"168\" y=\"144\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGP4 (6)\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"140\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 140 H310\" stroke=\"#F9A825\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"144\" fill=\"#272831\" font-size=\"12\"\u003eDT\u003c\/text\u003e\u003ctext x=\"168\" y=\"184\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGP5 (7)\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"180\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 180 H310\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"184\" fill=\"#272831\" font-size=\"12\"\u003eSCK\u003c\/text\u003e\u003ctext x=\"168\" y=\"224\" fill=\"#fff\" font-size=\"12\" text-anchor=\"end\"\u003eGND (38)\u003c\/text\u003e\u003ccircle cx=\"180\" cy=\"220\" r=\"5\" fill=\"#fff\"\u003e\u003c\/circle\u003e\u003cpath d=\"M180 220 H310\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"310\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"322\" y=\"224\" fill=\"#272831\" font-size=\"12\"\u003eGND\u003c\/text\u003e\u003ctext x=\"438\" y=\"104\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eE+\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 100 H590\" stroke=\"#E53935\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"100\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"104\" fill=\"#272831\" font-size=\"12\"\u003eRed wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"144\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eE−\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 140 H590\" stroke=\"#212121\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"140\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"144\" fill=\"#272831\" font-size=\"12\"\u003eBlack wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"184\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eA+\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 180 H590\" stroke=\"#43A047\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"180\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"184\" fill=\"#272831\" font-size=\"12\"\u003eGreen wire\u003c\/text\u003e\u003ctext x=\"438\" y=\"224\" fill=\"#272831\" font-size=\"12\" text-anchor=\"end\"\u003eA−\u003c\/text\u003e\u003ccircle cx=\"450\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003cpath d=\"M450 220 H590\" stroke=\"#F9A825\" stroke-width=\"4\" fill=\"none\" stroke-linecap=\"round\"\u003e\u003c\/path\u003e\u003ccircle cx=\"590\" cy=\"220\" r=\"5\" fill=\"#313652\"\u003e\u003c\/circle\u003e\u003ctext x=\"602\" y=\"224\" fill=\"#272831\" font-size=\"12\"\u003eWhite wire\u003c\/text\u003e\u003ctext x=\"245\" y=\"250\" fill=\"#6b6d7a\" font-size=\"11\" text-anchor=\"middle\"\u003eWire 1–4\u003c\/text\u003e\u003ctext x=\"520\" y=\"250\" fill=\"#6b6d7a\" font-size=\"11\" text-anchor=\"middle\"\u003eWire 5–8\u003c\/text\u003e\u003c\/svg\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.9em; color:#6b6d7a;\"\u003e\u003cspan style=\"color:#E53935;\"\u003e■\u003c\/span\u003e Power   \u003cspan style=\"color:#212121;\"\u003e■\u003c\/span\u003e GND   \u003cspan style=\"color:#F9A825;\"\u003e■\u003c\/span\u003e Signal   \u003cspan style=\"color:#43A047;\"\u003e■\u003c\/span\u003e Other signal   Load cell wires are named by their colour. Check the pin labels printed on your HX711 board.\u003c\/p\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e#\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003ePico pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003e→\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eModule pin\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eWire colour\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e1\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3V3(OUT) (pin 36)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 VCC\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePower (3.3 V)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e2\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGP4 (pin 6)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 DT\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eYellow\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eData\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e3\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGP5 (pin 7)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 SCK\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eClock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e4\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGND (pin 38)\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 GND\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e5\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 E+\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eRed\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eExcitation +\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e6\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 E−\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBlack\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eExcitation −\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e7\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 A+\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eGreen\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSignal +\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e8\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHX711 A−\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e→\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoad cell\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eWhite\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSignal −\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:0 0 10px; font-size:.95em;\"\u003eWires 5–8 are the same on every board. \u003c\/p\u003e\n\u003cp style=\"margin:0 0 10px; padding:6px 10px; background:#fff8e6; border-left:3px solid #F9A825; border-radius:4px;\"\u003e\u003cstrong\u003eWatch out:\u003c\/strong\u003e Pico pins are 3.3 V only. Power the HX711 from 3V3(OUT) (pin 36), not VBUS (pin 40, which is 5 V). Keep wires 5–8 short and tidy.\u003c\/p\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e1\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall Thonny\u003c\/strong\u003e\u003cbr\u003eDownload and install \u003ca href=\"https:\/\/thonny.org\"\u003eThonny\u003c\/a\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e2\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eInstall MicroPython on the Pico\u003c\/strong\u003e\u003cbr\u003eHold the BOOTSEL button while plugging in the USB cable, then install the firmware from \u003ca href=\"https:\/\/micropython.org\/download\/RPI_PICO\/\"\u003emicropython.org\u003c\/a\u003e. In Thonny, choose the interpreter \u003cem\u003eMicroPython (Raspberry Pi Pico)\u003c\/em\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e3\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eAdd the HX711 driver\u003c\/strong\u003e\u003cbr\u003eDownload \u003ccode\u003ehx711_gpio.py\u003c\/code\u003e from the community \u003ca href=\"https:\/\/github.com\/robert-hh\/hx711\"\u003erobert-hh\/hx711\u003c\/a\u003e repository, open it in Thonny and choose File → Save as → Raspberry Pi Pico, keeping the name \u003ccode\u003ehx711_gpio.py\u003c\/code\u003e.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e4\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eWire it with the USB cable unplugged\u003c\/strong\u003e\u003cbr\u003eConnect wires 1–8 as in the table, then plug the USB cable in again.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv style=\"display:flex; gap:10px; align-items:flex-start; margin:0 0 10px;\"\u003e\n\u003cspan style=\"flex:0 0 24px; height:24px; border-radius:50%; background:#313652; color:#fff; font-size:13px; font-weight:700; text-align:center; line-height:24px;\"\u003e5\u003c\/span\u003e\u003cdiv\u003e\n\u003cstrong\u003eRun the example\u003c\/strong\u003e\u003cbr\u003ePaste the code below into Thonny and click Run. Do not touch the load cell while it sets zero. Save it as \u003ccode\u003emain.py\u003c\/code\u003e on the Pico to run it when the Pico is powered.\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdetails open style=\"border:1px solid #e8e8e1; border-radius:6px; padding:8px 12px; margin:8px 0 12px;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Example — Read the weight\u003c\/summary\u003e\u003cpre style=\"background:#272831; color:#f4f4f6; padding:12px; border-radius:6px; overflow-x:auto; font-size:13px; line-height:1.45;\"\u003e\u003ccode style=\"background:transparent !important;color:#f4f4f6 !important;padding:0 !important;border:0 !important;font-family:Menlo,Consolas,monospace;font-size:13px;white-space:pre;\"\u003e# Wiring: HX711 VCC-\u0026gt;3V3(OUT) pin 36, GND-\u0026gt;GND pin 38, DT-\u0026gt;GP4 (pin 6), SCK-\u0026gt;GP5 (pin 7)\nfrom machine import Pin\nfrom hx711_gpio import HX711      # hx711_gpio.py must be saved on the Pico\nimport time\n\nDT_PIN = 4                        # GP4 = DT\nSCK_PIN = 5                       # GP5 = SCK\nCALIBRATION_FACTOR = 1.0          # you can change this (see step 6)\n\nhx = HX711(Pin(SCK_PIN, Pin.OUT), Pin(DT_PIN, Pin.IN, pull=Pin.PULL_DOWN))\n\nhx.read()                          # first reading: the HX711 answered\nprint(\"OK - epartners.co.nz test\")\noffset = hx.read_average(15)       # zero point (nothing on the load cell)\n\nwhile True:\n    raw = hx.read_average(10)      # average of 10 readings\n    print(\"Reading:\", round((raw - offset) \/ CALIBRATION_FACTOR, 1))\n    time.sleep(0.5)\n\u003c\/code\u003e\u003c\/pre\u003e\u003c\/details\u003e\u003cp style=\"margin:0 0 12px; padding:6px 10px; background:#eef7ee; border-left:3px solid #43A047; border-radius:4px;\"\u003e\u003cstrong\u003e✓ Check:\u003c\/strong\u003e The Thonny shell prints \"OK - epartners.co.nz test\" once, then \"Reading:\" every half second. If nothing prints, check wires 1–4 and that the driver file is saved on the Pico.\u003c\/p\u003e\u003c\/details\u003e\u003ch3 style=\"margin:18px 0 8px; color:#272831;\"\u003eCalibrate it (all boards)\u003c\/h3\u003e\n\u003col style=\"margin:0 0 10px; padding-left:20px;\"\u003e\n\u003cli\u003eRun the example with \u003ccode\u003eCALIBRATION_FACTOR = 1.0\u003c\/code\u003e and nothing on the load cell. The reading should be close to 0.\u003c\/li\u003e\n\u003cli\u003ePlace a known weight on the free end, for example a 500 g item weighed on kitchen scales. Note the reading.\u003c\/li\u003e\n\u003cli\u003eDivide that reading by the weight in grams. Put the result in \u003ccode\u003eCALIBRATION_FACTOR\u003c\/code\u003e and run again: the reading is now in grams.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cp style=\"margin:0 0 10px;font-size:.95em;\"\u003eNever put more than the rated capacity of your load cell on it.\u003c\/p\u003e\n\u003ch3 style=\"margin:18px 0 8px; color:#272831;\"\u003eTroubleshooting\u003c\/h3\u003e\n\u003cdiv style=\"overflow-x:auto;\"\u003e\u003ctable style=\"width:100%; border-collapse:collapse; border:1px solid #e8e8e1; font-size:.95em; margin-bottom:12px;\"\u003e\n\u003cthead\u003e\u003ctr style=\"background:#f9f9fb;\"\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eBoard\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eProblem\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eLikely cause\u003c\/th\u003e\n\u003cth style=\"text-align:left; padding:7px 10px; border-bottom:2px solid #313652;\"\u003eFix\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eAll\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eReading is always 0 or does not change\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSignal wires A+ \/ A− not connected, or loose\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eCheck wires 7 and 8 and that the HX711 label matches the table\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eAll\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eReading goes down when you add weight\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eA+ and A− swapped, or the load is on the wrong side\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSwap the green and white wires, or flip the direction of the load\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eAll\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eReading drifts or jumps\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eLoose wires, long wires, or the load cell is not firmly mounted\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eShorten the wires, mount the cell firmly, leave it to settle for a minute\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eAll\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003e\"HX711 not found\" or no output\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eDT \/ SCK swapped, or VCC \/ GND wrong\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eCheck wires 1–4 against the table\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eStuck on \"Connecting…\"\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBoard not in upload mode\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eHold the BOOT button until uploading starts\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eESP32\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eUpload fails or stops part-way\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eUpload speed too high for the USB cable\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eTools → Upload Speed → 115200, then upload again\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eNo Pico drive appears\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eBOOTSEL not held while plugging in\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eUnplug, hold BOOTSEL, plug in again\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003ePico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eImportError: no module named hx711_gpio\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eDriver file not on the Pico\u003c\/td\u003e\n\u003ctd style=\"padding:7px 10px; border-bottom:1px solid #e8e8e1;\"\u003eSave hx711_gpio.py to the Pico (step 3)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003c\/div\u003e\n\u003cp style=\"margin:10px 0 0;font-size:.95em;\"\u003e\u003cstrong\u003eTry next:\u003c\/strong\u003e add a button to tare the scale, or show the weight on an OLED display.\u003c\/p\u003e\n\u003cp style=\"margin:12px 0 0; padding:8px 10px; background:#f9f9fb; border:1px dashed #e8e8e1; border-radius:4px; font-size:.92em; color:#42434d;\"\u003eSpotted a problem in this tutorial? Email \u003ca href=\"mailto:support@epartners.co.nz\"\u003esupport@epartners.co.nz\u003c\/a\u003e and we'll check it and update the tutorial.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/div\u003e\n\u003c!-- EP:TUTORIAL END --\u003e\n\n\u003cdiv style=\"border-left:4px solid #313652; background:#f9f9fb; border-radius:0 6px 6px 0; padding:12px 16px; margin:22px 0;\"\u003e\n\u003cdiv style=\"font-weight:700; color:#272831; margin-bottom:4px;\"\u003eGood to know\u003c\/div\u003e\n\u003cul style=\"margin:0; padding-left:1.2em;\"\u003e\n\u003cli\u003eNever load it beyond its rated capacity; overloading can damage it.\u003c\/li\u003e\n\u003cli\u003eFix one end firmly and load the other end, in the direction of the arrow printed on the body.\u003c\/li\u003e\n\u003cli\u003eHandle it gently and do not pull on the thin wires.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\n\u003ch2\u003eResources\u003c\/h2\u003e\n\u003cul style=\"padding-left:1.2em;\"\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/cdn.sparkfun.com\/datasheets\/Sensors\/ForceFlex\/hx711_english.pdf\" target=\"_blank\" rel=\"noopener\"\u003eHX711 amplifier datasheet (PDF)\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/github.com\/bogde\/HX711\" target=\"_blank\" rel=\"noopener\"\u003eHX711 Arduino Library (bogde\/HX711)\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/github.com\/robert-hh\/hx711\" target=\"_blank\" rel=\"noopener\"\u003eMicroPython HX711 driver (robert-hh\/hx711)\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/docs.espressif.com\/projects\/arduino-esp32\/en\/latest\/installing.html\" target=\"_blank\" rel=\"noopener\"\u003eArduino-ESP32 installation guide\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eFAQ\u003c\/h2\u003e\n\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Can I connect the load cell straight to an Arduino?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eNo. The load cell gives a very small signal, so use an HX711 amplifier board between the load cell and your Arduino, ESP32 or Raspberry Pi Pico.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ Which capacity should I choose?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eChoose a rating above the heaviest load you will weigh: 1 kg, 5 kg, 10 kg or 20 kg. Never exceed the rating.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails style=\"border-bottom:1px solid #e8e8e1; padding:8px 0;\"\u003e\u003csummary style=\"cursor:pointer; font-weight:600; color:#272831;\"\u003e▸ How do I get readings in grams?\u003c\/summary\u003e\u003cp style=\"margin:6px 0 0;\"\u003eCalibrate with a known weight: divide the reading by the weight in grams and use that number as the calibration factor, as shown in the Tutorial.\u003c\/p\u003e\u003c\/details\u003e\n\n\u003cp style=\"margin:20px 0 0; font-size:.92em; color:#6b6d7a;\"\u003eTechnical question about this part? Email \u003ca href=\"mailto:support@epartners.co.nz\"\u003esupport@epartners.co.nz\u003c\/a\u003e with your board and wiring, and we'll help you get it working.\u003c\/p\u003e\n\u003c\/div\u003e","brand":"ePartners","offers":[{"title":"1kg","offer_id":42724791615738,"sku":"RN1012","price":9.99,"currency_code":"NZD","in_stock":true},{"title":"5kg","offer_id":68264945451258,"sku":"RN1011","price":9.99,"currency_code":"NZD","in_stock":true},{"title":"10kg","offer_id":68264945484026,"sku":"RN1013","price":9.99,"currency_code":"NZD","in_stock":true},{"title":"20kg","offer_id":68264945516794,"sku":"RN1014","price":9.99,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0638\/6771\/5834\/files\/load-cell-1007729.png?v=1794976445","url":"https:\/\/epartners.co.nz\/products\/load-cell-1kg","provider":"ePartners","version":"1.0","type":"link"}