4 load cell, 4amp, pcb

Hi, everyone here.
I am a student who is studying about road cell.
Read the data with the PCB combined with two load cells amp.(AMP PCB)
And esp32-c3-supermini, a PCB was made with a connector connected to the amplifier.(MPU PCB)
The test using two amp pcb and one mcu pcb.
However, there are cases where the value is not measured or not connected.
4 SCK and 4 DATA_OUT have been designated so that 4 load cells can be used. (I will upload the code, too.) I wonder if it is correct to use 4 amp or only 1 amp to know the data value of each load cell.

#include "HX711.h"

// HX711 circuit wiring
const int LOADCELL_DOUT_PIN_1 = 1;
const int LOADCELL_SCK_PIN_1 = 0;

const int LOADCELL_DOUT_PIN_2 = 3;
const int LOADCELL_SCK_PIN_2 = 4;

const int LOADCELL_DOUT_PIN_3 = 6;
const int LOADCELL_SCK_PIN_3 = 5;

const int LOADCELL_DOUT_PIN_4 = 10;
const int LOADCELL_SCK_PIN_4 = 7;


HX711 scale1;
HX711 scale2;
HX711 scale3;
HX711 scale4;

void setup() {
  Serial.begin(115200);
  scale1.begin(LOADCELL_DOUT_PIN_1, LOADCELL_SCK_PIN_1);
  scale2.begin(LOADCELL_DOUT_PIN_2, LOADCELL_SCK_PIN_2);
  scale3.begin(LOADCELL_DOUT_PIN_3, LOADCELL_SCK_PIN_3);
  scale4.begin(LOADCELL_DOUT_PIN_4, LOADCELL_SCK_PIN_4);
}

void loop() {
 GetScale(scale1,1);
 GetScale(scale2,2);
 GetScale(scale3,3);
 GetScale(scale3,4);
 delay(1000);
}

void GetScale(HX711 scale, byte No ){
  if (scale.is_ready()) {
    long reading = scale.read();
    Serial.print("HX711 No. ");
    Serial.print(No);
    Serial.print(" reading: ");
    Serial.println(reading);
  } else {
    Serial.print("HX711 No. ");
    Serial.print(No);
    Serial.println(" not found.");
  }
}

One should be scale3, the other should be scale4. Plz correct it.

If the load cells belong to one scale then all four can be combined into a single bridge. AFAIR there exists a PCB for that purpose.

Oh thank, I forgot to fix it

So you have to write four amps to get four different load cell values...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.