Creating a Force Sensor Based on ESP32 and HX711

Creating a Force Sensor Based on ESP32 and HX711—— Research Project on Basic Education Reform in Hunan Province

Creating a Force Sensor Based on ESP32 and HX71101Working PrincipleCreating a Force Sensor Based on ESP32 and HX711

  • Force Sensor → HX711 → ESP32 → Bluetooth → Phyphox Mobile AppCreating a Force Sensor Based on ESP32 and HX711

HX711 ModuleHX711 is a high-precision 24-bit analog-to-digital converter chip specifically designed for pressure sensors. Its main function is to amplify the measured small voltage signals to a range that can be read by a microcontroller, with a working voltage of 2.6-5.5V.Pin DescriptionVDD Power Positive GND Power Ground SCK Clock Signal Pin DT Data Input/Output Pin

Wiring HX711 with ESP32

  1. Power Connection

    HX711 VCC: Connect to the 3.3V output of ESP32

HX711 GND: Connect to the common ground of ESP32‌

  1. Data Communication Interface

    HX711 DOUT (Data Output): Connect to any GPIO input pin of ESP32 (e.g., GPIO15)

HX711 PD_SCK (Clock Signal): Connect to any GPIO output pin of ESP32 (e.g., GPIO14)‌

  1. Creating a Force Sensor Based on ESP32 and HX711Weighing Sensor Interface

  • Sensor E+ (Red): Connect to HX711 E+
  • Sensor E- (Black): Connect to HX711 E-
  • Sensor A+ (Green): Connect to HX711 A+
  • Sensor A- (White): Connect to HX711 A-‌

02PCB Design for ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711

  • PCB Manufacturing PlatformCreating a Force Sensor Based on ESP32 and HX711
  • Jialichuang is a high-tech enterprise focused on PCB prototyping and small batch production. Jialichuang provides services including online circuit design, PCB manufacturing, component trading, SMT assembly, stencil production, and 3D printing.
  • Schematic DiagramCreating a Force Sensor Based on ESP32 and HX711
  • Connect ESP32 and HX711 through the PCB, and reserve two PH2.0 interfaces, one for the strain gauge and one for the OLED display SSD1306.

Creating a Force Sensor Based on ESP32 and HX711

  • Overall Design

Creating a Force Sensor Based on ESP32 and HX71103Finished Product of the Force SensorCreating a Force Sensor Based on ESP32 and HX711

  • Weld the ESP32 and HX711 along with the PH2.0 interface, and install all components.

Creating a Force Sensor Based on ESP32 and HX711

  • Overall effect after adding the casing

Creating a Force Sensor Based on ESP32 and HX71104ESP32 Program SectionCreating a Force Sensor Based on ESP32 and HX711

  • HX711 Program

Creating a Force Sensor Based on ESP32 and HX711

  • SSD1306 Program

Creating a Force Sensor Based on ESP32 and HX711

  • Data Reading and Bluetooth Sending Program

Creating a Force Sensor Based on ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711

On August 23, 2023, Teacher Zhu shared a notification about the “2023 Shuangfeng County Basic Education Quality Course Selection” in the Loudi High School Physics Master Teacher Studio. The studio can recommend a “Quality Experimental Teaching Course”. As a member of the master teacher studio, I proactively told Teacher Zhu: “If no one signs up, I am willing to try again. If someone else signs up, then this opportunity should go to them.” Last year, I was fortunate to participate in the first experimental quality course selection, but due to time constraints, I was directly recommended from the city to the national selection, unfortunately, I was not selected; however, the province did not provide further rewards, which was a bit regrettable, so I wanted to make up for this regret.

Creating a Force Sensor Based on ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711

In the previous device, I did not consider that the volume of the sealing box would change significantly, leading to large errors when changing pressure due to volume changes. Ultimately, this experimental device failed. However, there are always more solutions than difficulties, so I purchased a glass jar online to replace the sealing box and improve it again to address the impact of significant volume changes when changing the enclosed gas volume, assembled as follows.

Creating a Force Sensor Based on ESP32 and HX711

Although this time I solved the problem of volume change, the sealing at the bottle cap is not

ENDCreating a Force Sensor Based on ESP32 and HX711ShareCreating a Force Sensor Based on ESP32 and HX711CollectCreating a Force Sensor Based on ESP32 and HX711LikeCreating a Force Sensor Based on ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711Creating a Force Sensor Based on ESP32 and HX711Long press to scan the code to followWeChat signal:XuesiwuliWelcome to communicate, criticize, and correct

Leave a Comment