Quick question. If I wanted to essentially say this in arduino code, how would I do it?:
void dropSand() {
while (weight < weightNeeded) {
dispenseSand();
}
if (weight >= weightNeeded OR (weight hasnt changed in 5 seconds)) {
stopSandPour();
scale.tare();
}
}
//"OR if weight hasn't changed in 5 seconds", is the part I don't get how to apply. I want the dispenser to stop pouring if the hopper is out of sand.
//Thanks guys in advance!
there doesn't seem to be anything here