Home > other >  Arduino using hx711 pressure sensor using header files as follows to output weight with two decimal
Arduino using hx711 pressure sensor using header files as follows to output weight with two decimal

Time:09-16

This is the code

# include "HX711. H"
Float Weight=0.0;

//# define HX711_SCK 13
//# define HX711_DT 10
Void setup () {


Serial. The begin (9600);


Init_Hx711 ();
Get_Maopi ();//clear the weight
Delay (3000);

}

Void loop () {

Weight=Get_Weight ();
Serial. Print (" Weight=");
Serial. Print (Weight * 2);//the true weight
Serial. Println (" g ");

Delay (1000);
}



And library files code,

CodePudding user response:

Brother library file can you to send a
  • Related