DIY Arduino Smart Digital Scale | ESP8266 + HX711

Hello to everyone, today I am here to show you a very insteresting project that I was working on for a while, it consists on a digital scale using the ESP-12S microcontroller plus a load cell and it HX711 wheatstone bridge to i2c converter, it is capable to measure weight precisely in the spectrum of grams, the sensor I am using is limited to 5Kg but you can use one for smaller or bigger weights.

As you can noticed, I am using the ESP8266 so it has WiFi capabilities that let me in the future send the measure data to the cloud.

The code can be modified to allow the scale to count objects, calculate liquid volume or what you imagine to do with force measuring.

Here I leave you a tutorial with all the information so you can make your own version.If you are a visual learner I know that a video worth more than 1000 words, so here is a Tutorial video. (I am a Spanish speaker, so please consider turning on English subtitles):

Step 1: Skills Required:

This project may seem difficult or very complex, but it is definitely not completely, since you will have all the guidance for the construction, it was difficult for me to design it to make life a little easier for you. Any conceptual doubt, you are free to ask it without problems.

  • You should have an understanding of:
  • 3D Printing (Optional for the case).
  • Arduino programming (I give you the code).
  • Soldering through hole components.

Step 2: Components and Parts List

The Electronics discrete components as resistors and transistors will be attached in a BOM file attached here.

?Materials to build it without PCB:

?Materials to build it wit custom PCB:

Step 3: Circuit Diagrama and Schematic

Here is the Circuit Diagram of our project:

It has all the internal conections of the circuit that will us allow to create the PCB design later.

I also attached the PDF of the Schematics so you can see it better.

Step 4: PCB Design and Ordering

For the implementation of a good project we need a reliable assembly for the circuit that makes it up, and there is no better way to do it than with a good PCB.

Here you can download for FREE the Gerber, BOM and Pick & Place Files, the ones you need to order your PCB on your PCB manufacturing company.

I suggest JLCPCB:

$2 for 1-4 Layer PCBs⚑, Get SMT Coupons?

Step 5: 3D Design & Parts

Here you have the STL files for the 3D parts of the project.

  • Case.
  • Plate

Step 6: Assambling the Whole Project

  1. Insert the PCB on the 3D printed case.
  2. Fix the load cell.
  3. Wire up everything with jumper wires.
  4. Glue the button panel.
  5. Place and wire the OLED display.
  6. Fix the plate of the scale and close the case with it.

Step 7: Code and Programming the ESP8266 Microcontroller

Download the CODE here for FREE (just insert 0 in the charge box).

Install the Hx711 Library and Ug2lib attached.

After you have opened the code in your Arduino IDE verify:

  1. That line 26 has: float CALIBRACION = 475910.00;
  2. That line 97 is commented://CALIBRACION = eeGetInt(addr);
  3. This let us firstly to set a calibration parameter that would next be tuned to get the right measurements.
  4. Select the NodeMCU 1.0 board. and the right port after connecting the main board of the project to your PC USB port.
  5. Upload the code.
  6. The scale need to be calibrated, see next step.

Source: DIY Arduino Smart Digital Scale | ESP8266 + HX711

About The Author

Scroll to Top