Skip to content

An Arduino library for FX29K/FX29J digital load cells.

License

Notifications You must be signed in to change notification settings

JKazem/FX29K_for_Arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FX29K_for_Arduino

An Arduino library for the FX29K digital load cells. But now it works

Compatibility

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.

Quick start

Minimal setup

   RED ---------- VCC (2.7-5.5V)
YELLOW ---------- SCL
 WHITE ---------- SDA
 BLACK ---------- GND

Installation

  • Download this repository as a .zip file.
  • In Arduino IDE, navigate to Sketch > Include library > Add .zip library.
  • Select the downloaded .zip file.

Main Program

Include

  • In your .ino file, include FX29K.h:
#include "FX29K.h"

Declaration

  • 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);

Initialization

  • Tare load cell with:
void FX29K::tare(void);
void FX29K::tare(uint16_t samples);

Measurement

  • 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);

Misc

About

An Arduino library for FX29K/FX29J digital load cells.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%