Weight Sensor Scales Kit- 20KG
Description¶
This Kit includes a weight sensor that has a capacity of 20kg, and the mechanic parts to install the weight sensor, ready for an electronic scale application. As you know, the most difficult parts in developing such an electronic scales is the mechanic parts and A/D parts, we help you solving the whole problem by providing you all the mechanic parts and the Data acquisition parts. You can collect the data with any microcontroller include Arduino board. The Weight sensor outputs differential signal, with the Green wire (+) and White wire (-).
Model:SEN20KGO
Features¶
- Dimension: 170*115 mm
- Working Voltage: 3.3*10 V
- Max Output Voltage(mv): Power Voltage*2.0; for example, when power by 5V voltage, the full scale(20 Kg) output voltage is 10 mv
Usage¶
The following sketch demonstrates a simple application of setting the time and reading it out.
1.Hardware connection
2.Download the library File:Hx711 Library
3.Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0\libraries.
4.Open the code directly by the path:File -> Example ->hx711->SerialScale.
// Hx711.DOUT - pin #A1
// Hx711.SCK - pin #A0
#include "hx711.h"
Hx711 scale(A1, A0);
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print(scale.getGram(), 1);
Serial.println(" g");
delay(200);
}
5.Upload the code,then open the serial monitor to see the result.