Hi - I am looking for help to to calibrate my HX711 too - where do I take the figure for set_scale?
Hi everyone.
I am using a shear beam load cell + HX711 + UNO.
The load cell is rated at 300kg, will I need to use a ~50 kg weight to calibrate?
How do I calibrate? - I know where to enter the figure in the sketch, but I am not sure where to get the figure from. In the readme it says to call from "get_units(10)" - that line doesn't exist in the code except for the variation:
Serial.print("\t| average:\t");
Serial.println(scale.get_units(10), 1);
Is this where I get the figure or should I remove the '1' before I run it?
I would like to remove the tare function but I realise get_units uses it, how should I do this? - I want to remove it as I will sleep the arduino between readings, when it wakes there will already be weight on the scales and I want it to show the current total each time not just '0'
Thanks
how i make weight sensor code adding alarm ? if scale have numper X alarm output led high ?
i try many time but i no know how adding code, mean test code show lcd weight and if weight have == X then alarm led pin out high.
but how adding to code alarm ?? if weight have X (30 gram) then ledpin high.???????
were i add more code ?
sorry im newbie and no understand good all yet.
fist i adding thats --> #include <Hx711.h>
/* sample for digital weight scale of hx711.display with a 1602 liquid crtstal monitor
- library design: Weihong Guan (@aguegu)
- library host on
*ardulibs/hx711 at 3cdb78f3727d9682f7fd22156604fc1e4edd75d1 · aguegu/ardulibs · GitHub
*/
// Hx711.DOUT - pin #A2
// Hx711.SCK - pin #A3
// LCD.RS - pin 8
// LCD.En - pin 9
// LCD.D4 - pin 4
// LCD.D5 - pin 5
// LCD.D6 - pin 6
// LCD.D7 - pin 7
#include <LiquidCrystal.h>
#include <Hx711.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
Hx711 scale(A2, A3);
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
scale.setScale(47); //adjust this number to get the proper value. It's pretty close but not right on.
}
void loop() {
lcd.setCursor(0, 0);
lcd.print(scale.getGram(), 1);
lcd.print(" g");
lcd.print(" ");
delay(200);
}
hey bro i need your help please its very urgent
can u pls tell me if u know what is the exact function of the hx711 ?
mohdash125:
hey bro i need your help please its very urgent
can u pls tell me if u know what is the exact function of the hx711 ?
Sure dude.
It's a load cell amplifier with inbuild 24-bit A/D converter.
Leo..