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://codebende
referrer=sarahalmu
[
Edit
Please select a board
/*
Example using the SparkFun HX711 breakout board with a sca
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 ca
outputs the zero_factor useful for projects that have a pe
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 th
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 negat
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 LIC
Arduino pin 2
> HX711 CLK
3
> DOUT
5V
> VCC
GND
> GND
Most any pin on the Arduino Uno will be compatible with DO
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://codebende
referrer=sarahalmu
[
Edit
Please select a board
/*
Example using the SparkFun HX711 breakout board with a sca
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 cali
specific load cell setup.
This example code uses bogde's excellent library: https://
bogde's library is released under a GNU GENERAL PUBLIC LIC
The HX711 does one thing well: read load cells. The breako
based load cell which should allow a user to measure every
Arduino pin 2
> HX711 CLK
3
> DAT
5V
> VCC
GND
> GND
The HX711 board can be powered from 2.7V to 5V so the Ardu
*/
#include "HX711.h"
#define calibration_factor
7050.0 //This value is obtained
#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