Giter VIP home page Giter VIP logo

fdc2214's Introduction

FDC2214 Arduino Library

Library for Texas Instruments FDC2xxx family capacitative sensor front-ends.

Supported devices

  • FDC2112
  • FDC2114
  • FDC2212
  • FDC2214

Revision

  • 1.0 - 1 - Initial release
  • 1.1 - 1 - Fixed channel 2 and 3 support.
  • 1.1 - 2 - Added support for internal oscillator. Not reccomended for any fairly precise aplication.
  • 1.2 - 1 - RJH - Removed redundent code and applied one recommended update

Usage

Include header, Make instance, Init and acquire data.

#include "FDC2214.h"
FDC2214 capsense(FDC2214_I2C_ADDR_0); // Use FDC2214_I2C_ADDR_1 for ADDR = VCC
...
void setup() {
    ...
    Wire.begin();
    bool capOk = capsense.begin(0x3, 0x4, 0x5, false); //setup first two channels, autoscan with 2 channels, deglitch at 10MHz, use external oscillator 
    ...
}
void loop(){
    ...
        unsigned long capa[i] = capsense.getReading28(i);  
    ...
}

Hardware

FDC2xxx family is 3.3V powered, unlike most of Arduinos, that are powered form 5V. To use this chip with Arduino, you will have to either:

  1. use 3.3V version of Arduino, like Arduino Pro Mini 8MHz 3.3V
  2. use I2C level shifter to interface the FDC chip with arduino.

To run examples, connect FDC with arduino as follows:

  • ARDUINO <--> FDC
  • A4 <-------> SDA
  • A5 --------> SCL
  • GND -------> ADR
  • GND -------> SD

Tools

To view nice real-time graph of the sensor output, it is highly recommended to use tool like SerialPlot. https://bitbucket.org/hyOzd/serialplot Binary downloads avialable here: https://bitbucket.org/hyOzd/serialplot/downloads/

Setting up port: Port

Setting up data format: Data Format

Proximity sensing waveform: Signal

Noise waveform: Noise

#Have Fun

fdc2214's People

Contributors

rharrison avatar

Watchers

 avatar  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.