An Arduino library for the FX29K digital load cells.
Supported models:
FX29Kx-xxxx-xxxx-L
(Tested on an FX29K0-040B-0010-L)FX29Jx-xxxx-xxxx-L
(Not tested)
FX292 and FX293 analog load cells are NOT supported.
RED ---------- VCC (2.7-5.5V)
YELLOW ---------- SCL
WHITE ---------- SDA
BLACK ---------- GND
- Download this repository as a
.zip
file. - In Arduino IDE, navigate to
Sketch
>Include library
>Add .zip library
. - Select the downloaded
.zip
file.
- In your
.ino
file, includeFX29K.h
:
#include "FX29K.h"
- Declare your
FX29K
object globally, with constructors:
FX29K::FX29K(uint8_t addr, uint8_t range);
FX29K::FX29K(uint8_t addr, uint8_t range, TwoWire* i2cPtr);
- For example, for
FX29K0-040B-0010-L
:
FX29K fx29k(FX29K0, 0010, &Wire);
- Tare load cell with:
void FX29K::tare(void);
void FX29K::tare(uint16_t samples);
- Read raw wheatstone bridge data with:
uint16_t FX29K::getRawBridgeData(void);
- Get one measurement:
float FX29K::getPounds(void);
float FX29K::getKilograms(void);
float FX29K::getGrams(void);
- Refer to
./FX29K_for_Arduino.ino
and datasheets for further information.