Hi, im trying to read value’s from a load cell via a hx711 but my particle seems to be crashing (going offline) after first sending 1 value. Anybody got an idea why?
#include "HX711.h"
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = A2;
const int LOADCELL_SCK_PIN = A3;
HX711 scale;
void setup() {
Serial.begin(57600);
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}
void loop() {
if (scale.is_ready()) {
long reading = scale.read();
Particle.publish("HX711 reading: ", String(reading));
} else {
Particle.publish("HX711 not found.");
}
delay(1000);
}
And this is the output in the console.
Anybody got an idea what’s going wrong?
Greetings, Just