I am trying to create a scale for a box that is being filled by a conveyor, using a HX711 and a 20kg load cell. Ideally the scale would have a liquid crystal display showing current weight of box, as well as a piezo buzzer that would buzz constantly once a certain weight is achieved, until the box is replaced with a new empty box. I have watched several videos on the subject (trying to make a scale with a HX711) and tried multiple variations of code, none seem to give me desired bench test results. I am getting communication with the arduino Uno, and it seems to be receiving data from the HX711, but regardless of the code used, the serial monitor shows no change to the data, regardless of how much weight added to the load cell. I have the 'fixed' side screwed to a large steel block (approximately 10kg) with several washers below load cell, and a small piece of polycarbonate sheet, also spaced with washers, attached on top of the 'movable' side of the load cell. I've gotten this code to work the best, as it at least shows 'add calibrated weight' on the serial monitor, until something is placed on the weigh platform, but then, no matter how long I wait, I do not get the 'calibration complete' message, and I can add as much or as little weight and get no change in the data. Attached is my code, which I got from makersportal.com
hx711test.ino (1.38 KB)




