DIY digital weight scale using ESP32 and HX711 module

ESP32 03-03-26
11 0

Tutorial plan

1- Objective of the project

2- Required Components

3- Circuit Connections of system

4- Micropython program of ESP32 Weight Scale

 

Objective of the project

The objective of this project is to design and build a low-cost and accurate digital weight scale using an ESP32 board, an HX711 amplifier module, a load cell sensor, and an LCD I2C display. This project demonstrates how electronic weighing systems work by combining a sensor, a signal amplifier, and a microcontroller. It helps students and beginners understand sensor interfacing, analog-to-digital conversion, and real-time data display. The system can be used as a learning tool for embedded systems and practical electronics applications.

Functioning of the System

The system works by converting physical weight into an electrical signal and then into a readable digital value. When an object is placed on the load cell platform, the load cell slightly deforms. This deformation changes the internal resistance of the strain gauges inside the load cell, generating a very small analog voltage signal proportional to the applied weight.

Because this signal is extremely small (in millivolts), it cannot be read directly by the ESP32. The HX711 module is used to amplify this weak signal and convert it into a digital value using its built-in analog-to-digital converter (ADC). The amplified digital data is then transmitted to the ESP32.

The ESP32 processes the received data, applies calibration factors to convert the raw value into weight units (such as grams or kilograms), and calculates the final weight measurement. Finally, the measured weight is displayed clearly on the LCD I2C screen, allowing the user to read the result in real time.

 

Required Components

1. ESP32 board

The ESP32 board is the main microcontroller of the system. It reads digital data from the HX711 module, processes the values, applies calibration, and controls the LCD display. The ESP32 is powerful, fast, and suitable for real-time sensor applications.

2. Load cell sensor

The load cell sensor is the component responsible for measuring weight. It works using strain gauges that change resistance when pressure or weight is applied. When an object is placed on the platform, the load cell slightly deforms and produces a very small analog voltage proportional to the weight.

3. HX711 amplifier module

The HX711 module is a precision 24-bit analog-to-digital converter (ADC) specially designed for weight measurement systems. Since the signal generated by the load cell is extremely small (in millivolts), the HX711 amplifies this weak signal and converts it into digital data that the ESP32 can read accurately.

4. LCD Display with I2C Module

The LCD I2C display is used to show the measured weight. It receives data from the ESP32 board and displays the weight value in real time.

5. Breadboard 

Breadboard

A breadboard is used to assemble the circuit without soldering. It makes it easy to connect and modify the components during testing and development.

6. Jumper Wires

Jumper wires

Jumper wires are used to connect the ESP32 board, HX711 module, load cell, and LCD display together. They ensure proper electrical connections between all components.

 

Circuit Connections of system

 

1- Connection of Load cell sensor to HX711 module 

Load cell sensor HX711 module
Red E+
Black E-
White A-
Green A+

 

2- Connection of HX711 module to ESP32 board

HX711 ESP32
VCC 3V
GND GND
DT GPIO 19
SCK GPIO 18

 

3- Connection of LCD I2C display to ESP32 board

LCD I2C display ESP32 board
VCC 5V of GPIO card
GND GND
SDA GPIO 21
SCL GPIO 22

 

Micropython program of ESP32 Weight Scale

This MicroPython program implements a digital weight scale system using an ESP32, an HX711 load cell amplifier, and an LCD I2C display. The program reads weight data from a load cell sensor, processes it using calibration values, and displays the measured weight in grams on the LCD screen.

You need to install this libraries :

i2c_lcd et lcd_api for I2C LCD screen

hx711 for HX711 module

0 comment

Leave a comment

Veuillez noter s'il vous plaît*

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Purpose of this website

Educational robotics refers to the use of robots and robotics technology to promote learning in educational settings. It involves the integration of technology, engineering, and computer science into the classroom, allowing students to engage in hands-on, project-based learning experiences.
In this context, our website represents an excellent resource for parents, teachers and children who wish to discover robotics.

Contact details

Zaouiet Kontech-Jemmel-Monastir-Tunisia

+216 92 886 231

medaliprof@gmail.com

Pictures of the articles

Robotic site created by Mohamed Ali Haj Salah - Teacher info