Home Creators Posts Import Register Favorites Logout

Content

You'd think that making a custom accurate weighing scale would be complex, but in reality it is very easy due to the dedicated HX711 (or HX710b) chip that converts the tiny voltage differential from a set of strain gauges via a programmable gain amplifier and an ADC (analogue to digital converter), and provides a 24 bit value via a data interface for a microcontroller.

Add a display module to receive that data and you have a system that can be nulled to zero and then calibrated with a known weight using just three buttons. (It stores the calibration settings.)

The mass produced load cells are very cheap because they are basically a section of square aluminium with a few holes drilled in them, and a set of strain gauges (small mylar pads with a resistive track on them) glued to either side.

https://www.youtube.com/watch?v=eGho4TCdtj8

Files

How weighing scales work, and how to make your own

You'd think that making a pair of accurate custom weighing scales would be complex. But the availability of mass produced electronic weighing components means that is is very easy to create a set of surprisingly accurate scales. The key components here are the load cell, which converts weight to a voltage, and the dedicated HX711 integrated circuit that converts that voltage into a very high resolution number and communicates it to a microcontroller via a simple data and timing interface. Also featured in this video is a very convenient microcontroller based module that receives the number and can compute and display the weight based on a zero-weight reference and an adjustable scaling factor. The unit stores the set values to non-volatile memory so that it does not need to be calibrated for each use. Note that there are a few different types of the digital display units, and each has its own features and setup requirements. Here are the instructions for the three button version shown in the video. The load cell is connected to the HX711 module as follows:- E+ Red E- Black A- White A+ Green The HX711 module is connected to the digital display module as follows:- VCC Positive supply voltage (usually 5V) GND Negative/0V supply DT Data/DT/RX SCK Clock/SCK/TX 5V (USB power supply) is supplied to the digital module via its onboard jack, USB connector (if fitted) or two solder pads - ensuring correct polarity. It's a good idea to test a USB cable for the correct polarity, as some cables don't follow standard colour codes. Once your weighing assembly is set up - ensuring that nothing is on, touching or impeding the movement of the weighing platform, then power the module and allow it to stabilise. Initially it probably won't show zero. Press the left button to set zero. It will be stored. Now place an accurate weight on the platform. The display will probably show a random number that does not represent the actual weight. Now you have to use the middle button and right hand button to adjust the prescaler/calibration value to get the correct reading. You can make small adjustments with individual clicks, or if there's a large difference then you can hold the buttons to scroll faster. IMPORTANT NOTE! The prescaler is just a reference number and NOT the actual weight. When you stop adjusting the prescaler up or down there is a brief pause and then the display shows the measured weight. If it is still not correct then keep adjusting as needed. For the final accurate calibration (for example) a 100g weight, find the point where the display is jittering between 99g and 100g and note the calibration number. Then adjust the calibration value until it is jittering between 100g and 101g and note that number. Your perfect calibration is right in the middle of those two values. Once you have adjusted back to that value your scales have been calibrated. Note that the buttons should not be accessible to general users of the scales as random pressing of buttons will void the calibration. If a fixed size container is used on the scales then it can be nulled out by putting the empty container on the scales and pressing the left button to set the new zero reference. Note that I've only tested the display module with a 1kg load cell. Also note that I described the load cells as being made of steel. The big ones are actually an aluminium alloy, and the small body scale version is steel. If you fancy playing with the components used in the video, here are some links. These are affiliate links, but that will not affect the price you pay. Some listings may not work for some countries and some may just be sold out or disappear. When paying on AliExpress, let the transaction complete before leaving the purchase page as otherwise the purchase may not go through. Here's the three-button digital module:- https://s.click.aliexpress.com/e/_c2JLZTJV Load cell and HX711 module - I recommend the 1kg set:- https://s.click.aliexpress.com/e/_c3A9bAuF The platform kit minus the digital display:- https://s.click.aliexpress.com/e/_c4S5NfvZ Only buy it as a kit, as the assembled units may be damaged in shipping. Stand-on scale style load cell set:- https://s.click.aliexpress.com/e/_c2utB2Mj There are also kits with a large round PCB, but note that it involves surface mount components. If you enjoy my videos then the easiest way to support the channel is to subscribe for more good video content. But if you would like to contribute a dollar or two for coffee, cookies and gadgets to take apart, you can do so by supporting me on Patreon. I release videos without adverts for critique and feedback on Patreon as soon as they have been made. I also do Patreon live streams, which are much more relaxed and chatty than the busy public ones. https://www.patreon.com/bigclive Alternatively, for a single coffee contribution you can use PayPal:- https://www.paypal.com/paypalme/bigclive

Comments

Zeedijk Mike

Some years ago I bought a digital mini kitchen scale in the shape of a spoon (max 100g) I have never used it though, so I thpoght I'd "rebuild" it, with some help from the 3D printer. Still work in progress as I currently don't have any use for it. So more just for the fun of it. After seeing this video I might try to finish off the "project"

Amro

That's really great, Big Clive. It's just what some of my relatives think I should have done with all my "science knowledge".

Roy Sigurd Karlsbakk

I'd thought about these a bit, it'd be interesting to put a load cell under each leg of a bed so that you can read off your weight automatically. It could also be used to print nice graphs in case someone is having a bit of fun in bed :)

Dennis

I've used various load cells and HX711 chips and boards to make scales before in the R&D stages to make some IOT scales. I now have a set of scales I can stand on, wait a few seconds and it then sends the weight to a database that (obviously has been secured very tightly). I then have a companion webpage to look at my weight changes as I visit the gym about 5 times a week. It was good motivation to drop 10kg. I used the logic of daily weight checks, but knowing this in itself was bad because it fluctuates quite widely., so I averaged the weight for every 7 days and and use that as my nominal weight value I trust.

Mike Page

This application-ready kit looks pretty good. For A Level technology back in the 1980s I was encouraged to make some weighing scales. Strain gauges were sourced from RS and stuck onto the metal, decal-style. There were no fancy PGAs, converters or microcontrollers back then - just opamps and zero understanding on my part of temperature or galvanic potential compensation - and very little help and advice pre-Internet. So of course it didn't work!

Mike Page

That HX711 is quite impressive: English datasheet with reference implementation and $0.26 in volume! It's DC performance isn't well specified but for a manual weigh scale with zero button that doesn't matter.

Seán Byrne

I did wonder how the small handheld luggage scales could weigh a 30+kg suitcase. Speaking of accuracy, two friends who were about to fly from Bulgaria by Ryanair decided to check their luggage on a parcel scale outside a vacant shipping company desk. When they went to check their luggage in, the Ryanair scale was 1.5kg less for both bags, so either Ryanair's scales were weighing under by 1.5kg (which I doubt) or the shipping company possibly had theirs rigged.

Big Clive

I did ponder if the chip has other unusual applications. The datasheet was very good - especially adding sample assembly code.

Jon Knight

A couple of years ago I tinkered with making an interface for the big brother of these: high resolution force plates. Exactly the same idea as the scales (strain gauges in whetstone bridges) but the ADC had to be fast and accurate because we were capturing rapid, short lived transitions when the force plate was jumped on, run over, etc.

Big Clive

The luggage scales are usually a metal core with the strain gauges, and the case is just a loose shell around them to hold the batteries and electronics.

Gordo

I bought one of those kits a few years back when I was building hexacopter drones. The load cell was mounted vertically, anchored at the bottom and thick acrylic bar affixed to the 'weighing' side. A brushless motor was attached to the other end of the arm and it could measure the thrust produced by various motor/propellor combos at different rpm and current draw. Calibration was by tipping it on its side and placing a known weight where the motor would normally go. That was a fun time, when "who are DJI" was a legitimate question, drones were unregulated and you built everything yourself.. Ahhh, the good old days..

Roberto Coli

Great video 😀 I spent some weeks on that and this video confirmed what I had learnt. I have purchased several gauges in several max values plus version in the micro flex pcb because I was planning to modify one of my 3D printers, the old PRUSA MK3.5, and transform the extruder in a pressure enabled extruder like the bigger brother Mk4S, but I have never found the time to finish the project. Moreover I have a digital scale for the kitchen that apparently did not had any battery ...😂 and worked for 10 years until.... the battery inside discharged. Unfortunately when I dismounted and replaced the battery the LCD displayed an error message "FACTORY CALIBRATION REQUIRED" and it died. Now that I know how those objects work, I planned (still if I will have time) to resuscitate it either trying to build a calibrator or just replacing the electronics.

Big Clive

Sometimes factory calibration is a mode that can be entered by holding in a few buttons until the scale goes into calibration mode, and then putting an accurate weight on it that is usually the rating of the scale. Usually something like 1 or 2kg.

Roberto Coli

Amazing! I will try. May be it requires just to put 100gr weigh on it and press together some buttons 😁

Paul Malloy

Love these things. After the video I bought 1 assembled, 1 unassembled, and a few cells with the HX711, and displays. And I've got more coming to give to friends. The supplied acrylic pieces are somewhat flimsy, so I made one with 3/8 inch acrylic. Will use 1/4" for future ones. I'm in the US and all available scales you can only select Pounds & Ounces. We don't use pounds + ounces over here. We use ounces up until about 200 ounces, or Pounds + Decimal. These allow to do Pounds XX.XX or ounces XXX.X. It would really be nice if the Decimal points could be lit up. They don't have a pin out of their own, so it would have to be done in the software. Maybe it is hidden in there somehow accessible with the right button push combo.