+21622886281
App Inventor ESP32 HX711 Project

Weighing scale using HX711 and ESP32 for remote weight monitoring (by bluetooth)

A weighing scale is a device that is used to measure the weight of an object or a group of objects. There are many different types of weighing scales, including mechanical scales, electronic scales, and digital scales.

Mechanical scales use a spring or balance beam to measure weight. They are typically less accurate than electronic or digital scales, and are often used for rough estimates of weight.

Electronic scales use a load cell to convert weight into an electrical signal. They are typically more accurate than mechanical scales, and can be used to measure weight with greater precision.

Digital scales use a load cell to convert weight into an electrical signal, which is then displayed digitally. They are typically the most accurate type of scale and can display weight in a variety of units.

An ESP32 microcontroller can be used to build a weighing scale by interfacing with a load cell sensor and using its built-in analog-to-digital converter (ADC) to convert the sensor’s output into a weight measurement. The ESP32 also has built-in WiFi and Bluetooth capabilities, which can be used to wirelessly transmit weight measurements to other devices such as a smartphone or computer.

To build a weighing scale with ESP32, the load cell sensor should be connected to an amplifier circuit, such as the HX711, which amplifies the small electrical signals produced by the sensor and sends them to the ESP32. The ESP32 can then read the amplified signals using its ADC and convert them into weight measurements.

The ESP32 can also be used to create a web server or a mobile application, to display the weight measurements and to store the data. The weight measurement can be sent over WiFi or Bluetooth to other devices, where the data can be read and displayed in real-time.

It’s important to note that building a weigh scale with ESP32 requires a good understanding of programming with the ESP32 and also experience with load cells and the HX711. Also, as with any other weigh scale, it’s important to calibrate the load cells before start working with it.

Purpose of project:

In this project, we will build a weighing scale equipped with the ESP32 card, the HX711 module and weight sensor for remote weight monitoring by a smartphone via bluetooth.

This is why we will create two programs: a mobile application with App Inventor for the smartphone and micropython programs for the ESP32 card.

Necessary components

ESP32 card

An ESP32 card is a small form factor version of the ESP32 microcontroller board that is designed to be easily integrated into other devices and systems. ESP32 card is a compact version of the ESP32 microcontroller board which can be easily integrated into other devices and systems. It typically includes the ESP32 microcontroller, power management components, and a variety of interfaces such as USB, UART, and SPI.

The ESP32 card can be used in a wide range of applications, such as IoT devices, home automation systems, and industrial control systems. The ESP32 card offers a variety of features that make it a suitable choice for these types of applications, including its low power consumption, high processing power, and built-in WiFi and Bluetooth capabilities.

HX711 module

The HX711 is an integrated circuit that is commonly used to interface with load cells, which are sensors used to measure weight. The HX711 is a 24-bit analog-to-digital converter (ADC) designed specifically for weigh scales and other industrial control applications. It has two input channels for differential measurements and can convert the analog signals from the load cells into a digital representation of the weight being measured.

The HX711 can be easily interfaced with a microcontroller such as the ESP32 through its digital interface. The HX711 has three pins: VCC, GND, and DT. The VCC and GND pins are used to power the chip and the DT pin is used to send and receive data to and from the ESP32. The HX711 communicates with the ESP32 using a serial protocol, so it can be easily integrated with any load cell.

The HX711 is a very popular choice for load cell amplifiers because it is inexpensive, easy to use, and has a high resolution and accuracy. It also has a low noise level, making it ideal for use in low-light environments. It’s important to note that the HX711 requires a library to be integrated with the ESP32 and also it’s important to calibrate the load cell before start working with it.

weight sensor

A weight sensor, also known as a load cell, is a type of transducer that converts a force, such as weight, into an electrical signal. Load cells are commonly used in industrial and commercial applications to measure the weight of objects, such as in scales and weighing systems. There are several types of load cells available, each with their own unique characteristics and advantages.

Connecting wires

Wires in a robotic system are used to connect and transmit electrical signals between different components of the robot. These components can include sensors, actuators, motors, and the microcontroller, such as an Arduino. The wires in a robotic system are typically made of copper and are insulated to prevent electrical interference and short circuits.

The type of wires used in a robotic system depends on the specific application and requirements of the robot. For example, a robot that requires high-current power transmission may use thicker, high-gauge wires, while a robot that requires a high degree of flexibility and movement may use thinner, more flexible wires.

Test plate

A test plate is a type of device that is used to test the functionality of other devices or systems. It can be used to test a variety of different components such as sensors, actuators, and electronic circuits. The design and construction of a test plate will depend on the specific components or systems being tested.

Mounting

  • We connect the VCC pin of the hx711 module to the 3.3V pin of ESP32

  • We connect the GND pin of the hx711 module to the GND pin of ESP32

  • We connect the DT pin of the hx711 module to the D5 pin of ESP32

  • We connect the SCK pin of the hx711 module to the D4 pin of ESP32

  • We connect the E+ pin of the hx711 module to the red wire of the weight sensor

  • We connect the E- pin of the hx711 module to the black wire of the weight sensor

  • We connect pin A- of the hx711 module to the white wire of the weight sensor

  • We connect the A+ pin of the hx711 module to the green wire of the weight sensor

Scale operation

Micropython program

Here are the micropython programs needed to connect the ESP32 board to the smartphone and send the value of the weight measured by the HX711 module to the smartphone.

boot.py

esp_ble_uart.py

hx711.py

Creating the application with App Inventor:

We will create a mobile application named ‘ESP32Poids’ with App Inventor which allows you to receive the weight measured by the ESP32 card.

We therefore suggest that you create the design of the application, with the following visual:

Programmation avec App Inventor

Pour programmer l’application, App Inventor nous propose d’utiliser L’espace Blocs qui permet de créer un programme sous forme de schéma bloc. Très simple d’utilisation mais nécessitant un peu de logique de programmation.

Voici le programme de l’application réalisée dans l’espace Blocs de l’App Inventor:




1 commentaire

saบาคาร่า 12-12-2323

Thanks for the marvelous posting! I truly enjoyed reading it, you will be a great author.I will ensure that I bookmark your blog and will eventually come back very soon. I want to encourage one to continue your great posts, have a nice weekend!


Leave a comment

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

Scroll to Top