Giter Site home page Giter Site logo

dfieschko / ldc1312-arduino Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 29 KB

C++ Teensy library for TI's LDC1312/1314 inductance-to-digital converters.

License: Mozilla Public License 2.0

C++ 46.24% Objective-C 53.76%
c-plus-plus ldc1312 ldc1314 teensy

ldc1312-arduino's Introduction

LDC1312-Arduino

Arduino library for TI's LDC1312/1314 inductance-to-digital converters.

This library has not been fully tested (yet). I have used most of the functions in my projects, but I can't guarantee that everything will work as it should. I have only ever used this library with Visual Studio Code using PlatformIO.

This library is written specifically for the Teensy 3.5 Arduino board, but can probably be reused for other Arduino boards with minimal changes. The main compatibility issue with non-Teensy boards is this library's usage of i2c_t3. I might come back and make this library more friendly to other Arduino devices later (probably not).

This library is set to only use Wire. Not Wire1, Wire2, etc. You can easily change this by adding '1', '2', etc to all instances of the word "Wire".

This library works for both the LDC1312 and LDC1314 sensors - if you're using an LDC1312, just avoid using channels 2 and 3 because the LDC1312 doesn't have those.

This library does not configure the Arduino's I2C functions for you. You will need to use something like:

Wire.begin(I2C_MASTER, 0x00, I2C_PINS_18_19, I2C_PULLUP_EXT, 400000);

Most of the channel-specific functions default to Channel 0 if they're given an invalid channel argument.

LDC1312 datasheet: https://www.ti.com/lit/ds/symlink/ldc1312.pdf

ldc1312-arduino's People

Contributors

dfieschko avatar

Watchers

 avatar

Forkers

sirsundays

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.