EasyManuals Logo

sparkfun HX711 User Manual

sparkfun HX711
10 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #9 background imageLoading...
Page #9 background image
SparkFun_HX711_Calibration (https://codebender.cc/sketch:123175?
referrer=sarahalmutlaq) by sarahalmutlaq
(https://codebender.cc/user/sarahalmutlaq?referrer=sarahalmutlaq)
È Clone & Edit
(/?
referrer=sarahalmutlaq)
3 Download
(https://codebend
e
referrer=sarahalm
u
[ Edit
Please select a board
/
*
Example using the SparkFun HX711 breakout board with a sc
a
By: Nathan Seidle
SparkFun Electronics
Date: November 19th, 2014
License: This code is public domain but you buy me a beer
This is the calibration sketch. Use it to determine the c
a
outputs the zero_factor useful for projects that have a p
e
Setup your scale and start the sketch WITHOUT a weight on
Once readings are displayed place the weight on the scale
Press +/ or a/z to adjust the calibration_factor until t
h
Use this calibration_factor on the example sketch
This example assumes pounds (lbs). If you prefer kilograms
calibration factor will be significantly different but it
Your calibration factor may be very positive or very nega
t
and the direction the sensors deflect from zero state
This example code uses bogde's excellent library: https:/
/
bogde's library is released under a GNU GENERAL PUBLIC LI
C
Arduino pin 2 > HX711 CLK
3 > DOUT
5V > VCC
GND > GND
Most any pin on the Arduino Uno will be compatible with D
O
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
To program your Arduino from your browser, please use
Google Chrome (http://www.google.com/chrome/)/Chromium
(version 41 and above on Linux) or Mozilla Firefox
(http://www.mozilla.org/en-US/firefox/) (32bit only on Windows).
Dismiss
Once you have calculated your calibration factor of your load cell set up,
you can move on to other code, such as the simple scale output example
code, “SparkFun_HX711_Example”:
SparkFun_HX711_Example (https://codebender.cc/sketch:122922?
referrer=sarahalmutlaq) by sarahalmutlaq
(https://codebender.cc/user/sarahalmutlaq?referrer=sarahalmutlaq)
È Clone & Edit
(/?
referrer=sarahalmutlaq)
3 Download
(https://codebend
e
referrer=sarahalm
u
[ Edit
Please select a board
/
*
Example using the SparkFun HX711 breakout board with a sc
a
By: Nathan Seidle
SparkFun Electronics
Date: November 19th, 2014
License: This code is public domain but you buy me a beer
This example demonstrates basic scale output. See the cal
i
specific load cell setup.
This example code uses bogde's excellent library: https:/
/
bogde's library is released under a GNU GENERAL PUBLIC LI
C
The HX711 does one thing well: read load cells. The break
o
based load cell which should allow a user to measure ever
y
Arduino pin 2 > HX711 CLK
3 > DAT
5V > VCC
GND > GND
The HX711 board can be powered from 2.7V to 5V so the Ard
u
*/
#include "HX711.h"
#define calibration_factor 7050.0 //This value is obtaine
d
#define DOUT 3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
To program your Arduino from your browser, please use
Google Chrome (http://www.google.com/chrome/)/Chromium
(version 41 and above on Linux) or Mozilla Firefox
(http://www.mozilla.org/en-US/firefox/) (32bit only on Windows).
Dismiss
Check out the other example code in the Github repo, or Codebender for
powering down the HX711 (github, codebender) and known zero startup
(github, codebender).
Page 9 of 10

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the sparkfun HX711 and is the answer not in the manual?

sparkfun HX711 Specifications

General IconGeneral
Brandsparkfun
ModelHX711
CategoryAmplifier
LanguageEnglish