Esp8266 + HX711 (Scale)

Hi there,
I have lately been trying to do a scale: with Esp8266 + Hx711 + Blynk; ven I test it calibrating, it works with Esp8266, but when I add the Blynk code the scale stays in a fix value and doesn´t work

The calibrating code

#include “HX711.h”

#define DOUT A1
#define CLK A0

HX711 balanza(DOUT, CLK);

void setup() {
Serial.begin(9600);
Serial.print(“Lectura del valor del ADC:t”);
Serial.println(balanza.read());
Serial.println(“No ponga ningun objeto sobre la balanza”);
Serial.println(“Destarando…”);
balanza.set_scale(); //La escala por defecto es 1
balanza.tare(20); //El peso actual es considerado Tara.
Serial.println(“Coloque un peso conocido:”);

}

void loop() {

Serial.print(“Valor de lectura: t”);
Serial.println(balanza.get_value(10),0);
delay(100);
}

The calibrating code + Blink code

#include “HX711.h”
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

#define DOUT 4
#define CLK 5

HX711 balanza(DOUT, CLK);

char auth = “e77ee9685c374f0c890048adb6d8ae31”;

void setup() {
Serial.begin(9600);
Blynk.begin(auth, “Cherlios Mobile”, “4593148975”);
Serial.print(“Lectura del valor del ADC:t”);
Serial.println(balanza.read());
Serial.println(“No ponga ningun objeto sobre la balanza”);
Serial.println(“Destarando…”);
balanza.set_scale(); //La escala por defecto es 1
balanza.tare(20); //El peso actual es considerado Tara.
Serial.println(“Coloque un peso conocido:”);

}

void loop() {
Blynk.run();
Serial.print(“Valor de lectura: t”);
Serial.println(balanza.get_value(10),0);
delay(100);
}

dont add delay(100) or println in the loop() function.
in the Blynk code,the loop function should be clear.

@hznupeter Please take note of the Time Date stamps before posting… I think after three years this issue is not applicable anymore :joy: