combine multiple (in this case 2 same) load cells and NOT average the data
Board is UNO
Windows 7
Complete code attached
digital 5 and 4 individual load cell -- working
digital 9 and 8 individual load cell --want to add
Both to be read at the same time-----ALL HELP IS APPRECIATED GREATLY
My basic code for using single load cell is Bellow:
#include "HX711.h"
HX711 cell(5, 4);
void setup() {
Serial.begin(9600);
}
long val = 0;
float count = 0;
void loop() {
count = count + 1;
// Use only one of these
//val = ((count-1)/count) * val + (1/count) * cell.read(); // take long term average
//val = 0.5 * val + 0.5 * cell.read(); // take recent average
val = cell.read(); // most recent reading
Serial.println( val );
}
LoadCellworking_start-2cells.ino (414 Bytes)