Giter Site home page Giter Site logo

fx29k_for_arduino's Introduction

FX29K_for_Arduino

An Arduino library for the FX29K digital load cells.

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

fx29k_for_arduino's People

Contributors

eepj avatar darkyendor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.