Post topics, source code that relate to the Arduino Platform

User avatar
By gulaschcowboy
#58569 Hi,

today i struggled suddenly with the same problem.

Before
Code: Select allHX711 scale(13, 12);

simply worked for month.
Yesterday I recompiled my code and ESP started to get Watchdog issues before setup()

So luckily I found this post and changed it to:
Code: Select all...
HX711 scale;
...
setup() {
  scale.begin(13, 12);
  scale.set_scale(cell_divider);
  scale.set_offset(offset);
...
}


Can somebody explain me the reason?
User avatar
By gulaschcowboy
#58571 Have to correct myself: I cheered too early.
Even after the above changes, I now have two same ESP-07 modules that behave with same Firmware on the same PCB differently.

One runs into WDT before Serial.start() is called
the other one simply runs as intended.
It seems to be a very weird timing issue :-(

Any clues, somebody?
Thanks.
User avatar
By gulaschcowboy
#58576 Hi,

no. Other sketches without calling HX711 scale(13, 12); work fine.

I have several nodes running with different sensors, nowhere appeared that problem before.
As said, it also worked before with HX711 scale(13, 12); and without the workaround mentioned above.

Unfortunately I have no suspect, because I didn't update the HX711 Lib and even with a very simple sketch just calling HX711 scale(13, 12); in the init and just a serial.print in the loop the WDT bites. Remove HX711 scale(13, 12); completly or use the workaround and the dog seems to be happy.

Updating the lib didn't help either.