Thank you all for your messages. I am using a 12V DC selonoid valve , 20 kg load cell, HX711, Arduino Uno clone. Valve is Normally open position. when closed had to open again with hand manually. Sketch of the system is below.
Code I am using to read the mass is below.
*/
#include "HX711.h"
#define DOUT 3
#define CLK 2
HX711 scale(DOUT, CLK);
float calıbration factor = 107000; // calibration factor
void setup() {
Serial.begin(9600);
scale.set_scale(calibration factor ); // calıbration factor defination
scale.tare(); // reseting the scale
}
void loop() {
Serial.print("Mass: ");
Serial.print(scale.get_units()); // printing the scaled mass volume
Serial.println(" kg");
}
Thank you in advance for your helps.
