Giter Site home page Giter Site logo

pmj / pico-ads1115 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from antgon/pico-ads1115

0.0 0.0 0.0 15 KB

A C library for using Texas Instrument ADS1115 analog-to-digital converter with the Raspberry Pi Pico

License: BSD 3-Clause "New" or "Revised" License

C 96.70% CMake 3.30%

pico-ads1115's Introduction

pico-ads1115

A C library for using Texas Instrument ADS1115 analog-to-digital converter with the Raspberry Pi Pico.

The ADS1115 is a 16-bit, 4 channel delta-sigma ADC. It is interfaced with I2C. Adafruit make a convenient ADC board with this chip (Adafruit product ID 1085).

Wiring

ADS1115 Pico
SDA SDA (e.g. pin 8)
SCL SCL (e.g. pin 9)
VDD 3V3(OUT)
GND GND

(Note that I2C interfacing requires pull-up resistors, but Adafruit's board already includes these.)

Software

  1. Configure CMakeLists.txt in your base project to include the path to the pico-mpr121 library. Add pico-ads1115 to the list of target libraries. E.g. if the pico-ads1115 library is located one directory above (../) the current one your CMakeLists.txt file should include
.
.
.
include(pico_sdk_import.cmake)
add_subdirectory(../pico-ads1115/lib ads1115)

target_link_libraries(touch
        pico_stdlib
        hardware_i2c
        pico-ads1115
)
.
.
.
  1. Use the library; see the examples directory.

pico-ads1115's People

Contributors

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