![fritzing esp32 devkit fritzing esp32 devkit](https://cdn.hackaday.io/files/869123718443008/ESP32-Devkit-Pinout-Rev_12-HiRes.png)
Permission is hereby granted, free of charge, to any person obtaining a copy We wrote the following code taking into account the instructions to calibrate the load cell provided by the library documentation. I used my kitchen scale and weighed a glass with water (300g).Ģ) Upload the following code to your ESP32.
![fritzing esp32 devkit fritzing esp32 devkit](https://forum.fritzing.org/uploads/default/original/2X/e/e5db61309d03e299873707a0802a85c0eafa5345.jpeg)
Your calibration factor will be different than mine, so you shouldn’t skip this section.ġ) Prepare an object with a known weight. You should also have your scale set up (two plates wired on opposite ends on the load cell), and have installed the HX711 library.īefore getting the weight of objects, you need to calibrate your load cell first by getting the calibration factor. Now, if you go to your project folder and open the platformio.ini file, there should be a line to include the library as follows: lib_deps = add the following line to change the Serial Monitor speed to 115200: monitor_speed = 115200Ĭalibrating the Scale (ESP32 with Load Cell)Īt this time, we assume you have wired the load cell to the HX711 amplifier and the amplifier to the ESP32.