Giter Site home page Giter Site logo

adc128d818's Introduction

ADC128D818 8 channel ADC library

This library is made to interface with a Texas Instruments ADC128D818 ADC with the Arduino platform. The ADC communicates via the I2C bus and for this the library uses the Wire interface. Porting this to any other platform should be as easy as replacing Wire with your platform specific I2C implementation.

Basic usage

The basic usage of this library can be as easy as:

ADC128 adc(I2C_address);

adc.set_conversion_rate(CONTINUOUS);
adc.start();
adc.read_ADC_channel(x);

But this ADC supports a lot of different configurations. This readme will give a couple examples but for all the possible functions you should check the datasheet.

The library tries to approach the ADC in a structured and reusable manner. All the registers that have bitvalues for the different channels can be written to using the ADC128_channels struct. This contains a boolean for every channel and a to_byte() and from_byte() function for easy (un)marshalling. Both configuration registers have their own struct with the respective values. The usage of these is explained in limits and low_power_mode examples.

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.