Greetings,
I am undergoing a project that involves the use of a load cell to detect the presence of weight on top of a plate (E.g. when something is placed on it)
Here is my problem: I always get a reading of 0 regardless of what is on the load cell. There are some occasional fluctuations (random values) popping out but most of the time it stays 0.
I've included my code here:
#include "HX711.h"
HX711 scale(A1, A0); // DOUT, SCK
void setup()
{
Serial.begin(9600);
scale.set_scale(2280.f);
scale.tare();
}
void loop()
{
Serial.print("one reading: ");
Serial.println(scale.get_units(), 1);
}
And this is my setup:
Things I've tried:
- Reinstalling the library
- Switching Arduino boards
- Switching load cells
- Checking the wiring multiple times
Can anyone take a look and provide me with some guidance? Your advice is much appreciated.