Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Load Cells and the HX711
Step 16 of 18 in Sensors and measurementPart of a learning path.
Next

How-to · Intermediate · 3 min read

Load Cells and the HX711

Build a Digital Scale

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerHow a load cell worksWiringTare and calibrationTry itStep by stepCommon mistakesFAQsParts and next steps
Short answer

A load cell is a metal bar with strain gauges that changes resistance very slightly under weight. The HX711 is a 24-bit amplifier and ADC that reads those tiny changes and sends a number to your microcontroller over two pins. You connect four cell wires to the HX711, tare it at zero, place a known weight, and compute a scale factor. Bar cells from 1 kg to 50 kg are common.

Key specs at a glance

HX711 resolution
24-bit ADC
Gain
128 or 64 (channel A), 32 (channel B)
Sample rate
10 or 80 samples per second (RATE pin)
Supply
2.6 to 5.5 V
Interface
2 pins: DOUT (DT) and SCK; not I2C
Load cell output
Typically 1 to 2 mV per volt of excitation at full load
01

How a load cell works

Inside a bar load cell are four strain gauges arranged as a Wheatstone bridge. When the bar bends, two gauges stretch and two compress, which unbalances the bridge and produces a signal of a few millivolts. A 5 kg cell rated at 1 mV/V, excited at 5 V, gives only 5 mV at full load, which is why you need the HX711's high gain and 24-bit resolution. Mount the cell with one end fixed to the base and the other end carrying the platform, with the arrow pointing in the direction of the load.

02

Wiring

Common 4-wire bar cells use: red E+, black E−, white A−, green A+. Some cells swap white and green; if the reading goes negative when you add weight, swap them or flip the sign in code.

HX711 to board: VCC to 3.3 V or 5 V, GND to GND, DT to a digital pin, SCK to another digital pin. The 3-wire half-bridge cells from bathroom scales need four of them wired together into a full bridge, or a combinator board.

03

Tare and calibration

Use the HX711 library by Bogdan Necula, or HX711_ADC. With nothing on the scale, call scale.tare() so the reading becomes zero. Place a known weight, such as a 500 g packet, and read the raw value. The scale factor is raw value ÷ known weight. Save it with scale.set_scale(factor), and store it in EEPROM so you do not recalibrate each boot. Average 10 or more readings for a steady display.

04

Try it: ADC resolution calculator

Change the values and the diagram and results update as you type.

05

Calibrate a load cell with an HX711 and Arduino

You need: Arduino Uno or Nano, HX711 module, Bar load cell, Base and platform plates with screws, Jumper wires · Tools: Computer with Arduino IDE, Known reference weight

Get the parts4 of 5 found in our store · ₹869

  • Arduino Uno or NanoArduino-Compatible UNO Starter Kit₹650
  • HX711 moduleHX711 Load Cell Amplifier and 50 kg Half-Bridge Load Cell₹39
  • Bar load cellLoad Cell Weight Sensor, Bar Type₹131
  • Base and platform plates with screwsFind this part
  • Jumper wiresDupont Jumper Wires (40 pcs)₹49
  1. 1
    Mount the cellScrew one end of the cell to the base and the other end to the platform so it can bend freely.
  2. 2
    Wire itConnect red, black, white and green to E+, E−, A− and A+, then DT and SCK to two digital pins.
  3. 3
    TareRun the sketch with an empty platform and call tare() to set zero.
  4. 4
    Measure a known weightPlace the reference weight and note the raw average reading.
  5. 5
    Set the scale factorDivide the raw value by the known weight, set it with set_scale() and save it in EEPROM.
06

Common mistakes to avoid

  • !Clamping both ends of the cell so it cannot bend.
  • !Overloading a small cell, which permanently bends it.
  • !Swapped A+ and A− giving negative readings.
  • !Expecting I2C: the HX711 uses its own two-wire protocol.
  • !Taking single readings instead of averaging.
07

Frequently asked questions

Is the HX711 I2C?

No. It uses its own clock and data protocol on any two digital pins.

Why does my scale drift?

Temperature changes, creep in the cell and a poor mount. Let it warm up, re-tare often and mount the cell rigidly.

Which load cell size should I buy?

Choose a rated load about 1.5 times your heaviest weight. Smaller cells give finer resolution.

Can I use the HX711 with ESP32?

Yes, at 3.3 V on any two GPIO pins. Some ESP32 cores need the library's timing setting for reliable reads.

How accurate is a hobby load cell scale?

Often within about 0.1 % of full scale after careful calibration, so around 5 g on a 5 kg cell.

Parts for this guide

  • LCD1602 16x2 Character LCD Display
    ₹109View
  • Digital Vernier Caliper 150mm
    ₹629View
Shop Motion & Position SensorsShop Arduino Boards

Calculators

ADC resolution calculator

Terms in this guide

Load cellA metal bar or beam fitted with strain gauges whose resistance changes slightly as it bends under weight, used in digital scales.Wheatstone bridgeFour resistances arranged in a diamond so that a tiny change in one gives a measurable voltage difference across the middle. Load cells and many pressure sensors use it.TareSetting a scale's reading to zero with a container or platform in place, so only the added weight is measured.GainHow much an amplifier multiplies its input. A gain of 10 turns a 0.1 V signal into 1 V. For an op-amp it is set by two resistors.ADCAnalog-to-digital converter: turns a voltage into a number. A 10-bit ADC gives 0 to 1023; a 12-bit ADC gives 0 to 4095.CalibrationMeasuring a sensor against known conditions so its raw numbers can be converted into meaningful values, such as dry and wet readings for a soil sensor.

Projects that use it

Put this into practice: 25 step-by-step builds in our project library use parts from this guide.

Intermediate · 2 hoursDigital kitchen scaleView projectIntermediate · 1–2 hoursWi-Fi weighing scaleView projectIntermediate · 1–2 hoursWi-Fi kitchen scaleView project
Browse all 25 projects

Keep learning

Concept explainerBeginnerADCs ExplainedAn analog-to-digital converter (ADC) measures a voltage and returns a number.4 min read · Electronics FundamentalsComponent guideBeginnerArduino UnoThe Arduino Uno is a beginner-friendly microcontroller board that reads sensors and controls LEDs, motors and relays using simple C++ programs called sketches.5 min read · Boards & MicrocontrollersComponent guideIntermediateOp-Amps for BeginnersAn operational amplifier (op-amp) amplifies the voltage difference between its two inputs by a huge amount; feedback resistors turn that into a precise, useful gain.4 min read · Semiconductors & ICsHow-toBeginner16x2 LCD with I2CA 16x2 LCD shows two lines of 16 characters using the HD44780 controller.3 min read · Displays & LEDsComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & Microcontrollers

Sources

  • Avia Semiconductor HX711 datasheet
  • Load cell manufacturer data for strain-gauge bar cells

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerHow a load cell worksWiringTare and calibrationTry itStep by stepCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹869

Arduino-Compatible UNO Starter Kit · HX711 Load Cell Amplifier and 50 kg Half-Bridge Load Cell · Load Cell Weight Sensor, Bar Type · Dupont Jumper Wires (40 pcs)

Ask the Community

Ask a question