Hello all.
About 1 year ago i programmed a weight scale using the HX711_ADC library and had boards manufactured according breadboard setup.
I then had issues getting the correct size weight cells, plus had a pc breakdown, so that got replaced during this time also.
Yesterday i soldered the first unit and tried to load it. The HX711_ADC library was missing, so i installed the current version. Plugged it in aaaaaaand: no signal reading.
After comparing sample codes i noticed it now needs a sensor.begin(); command which was not required in the old version.
So i added the code lines:
Sensor1.begin(); Sensor2.begin(); Sensor3.begin();
I now get the usual reading on Sensor1, but Sensor2 and Sensor3 get no readings.
Hardware is an Arduino Nano V3, 3 HX711 boards and 3 load cells.
Wiring:
HX711_CLK=2; //shared common clock signal Sensor1_data=3; Sensor2_data=4; Sensor3_data=5;
+5v and GND are self explanatory
Behavior:
If i start all 3 in sequence then only sensor 1 works. If i comment out sensor1, then only sensor2 works. Commenting out 1 and 2 then only 3 works.
After checking the sample code i noticed the deviation that now the sample has 2 different clock pins defined.
Sadly i dont have a backup of the old library, so i have no idea what version it was. But something was changed so that now the old code is not running anymore. Im not sure if the common clock signal has something to do with it, or the timeshift between the 3 sensors being "begun" one after the other, which was not necessary in previous code....
Does anyone have enough experience in this library to explain the behavior, and how to fix it?
Thanks for any inputs, and sorry for not posting the full code, but its many many pages because the sensors have about 8 modes of operation and a few dozen subroutines. The initialization and reading are identical to the examples, and worked until the update, so "error" must be in the library update, but i cant find anything....
Cheers and merry christmas
Hank