-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using 4 load cells #229
Comments
I think this will work if you make multiple instance's of hx711 scale for example something like this: `/**
**/ // HX711 circuit wiring const int LOADCELL_DOUT_PIN1 = 4 ;// or whatever pin you want to use void setup() { Serial.println("Initializing the scale"); // Initialize library with data output pin, clock input pin and gain factor. Serial.println("Before setting up the scale:"); Serial.print("read average: \t\t"); Serial.print("get value: \t\t"); Serial.print("get units: \t\t"); scale.set_scale(2280.f); // this value is obtained by calibrating the scale with known weights; see the README for details scale1.set_scale(2280.f); // this value is obtained by calibrating the scale with known weights; see the README for details Serial.println("After setting up the scale:"); Serial.print("read: \t\t"); Serial.print("read average: \t\t"); Serial.print("get value: \t\t"); Serial.print("get units: \t\t"); Serial.println("Readings:"); void loop() { but i only have one loadcell so you should try it yourself to see if it works. |
Hi bodge i was wondering how if there is a code that takes the average of 4 load cells and gives me a single figure. Thanks.
The text was updated successfully, but these errors were encountered: