Giter Site home page Giter Site logo

icetomcat / arduino-adafruit-ads1x15 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mongoose-os-libs/arduino-adafruit-ads1x15

0.0 1.0 0.0 17 KB

Arduino Adafruit ADS1015 library for Mongoose OS

Home Page: https://mongoose-os.com

License: Other

JavaScript 14.93% C++ 84.75% C 0.32%

arduino-adafruit-ads1x15's Introduction

Arduino Adafruit ADS1015 12-BiT/ADS1115 16-Bit ADC - 4 Channel with Programmable Gain Amplifier library for Mongoose OS

Tested and works on esp8266/esp32

Description

Analog-to-digital converter or higher-precision ADC.

precision samples\sec
ADS1015 12-bit 3300
ADS1115 16-bit 860

The chip can be configured as 4 single-ended input channels, or two differential channels. As a nice bonus, it even includes a programmable gain amplifier, up to x16, to help boost up smaller single/differential signals to the full range. See ADS1015 ADS1115 for more information about the hardware.

alt text alt text

Features

  • Wide supply range: 2.0V to 5.5V
  • Low current consumption: Continuous Mode: Only 150uA Single-Shot Mode: Auto Shut-Down
  • Programmable data rate: 8SPS to 860SPS
  • Internal Low-drift voltage reference
  • Internal oscillator
  • Internal PGA
  • I2C interface: Pin-Selectable Addresses
  • Four Single-ended or two differential inputs
  • Programmable comparator
  • This board/chip uses I2C 7-bit addresses between 0x48-0x4B, selectable with jumpers

Usage

mos.yml, add:

config_schema:
 - ["i2c.enable", true]
libs:
 - origin: https://github.com/mongoose-os-libs/arduino-adafruit-ads1x15

init.js, add:

load('api_ads1015.js');

(JavaScript) usage example

main.c, add:

#include "mgos_arduino_Adafruit_ADS1015.h"

Slave address

  • Address pin connected to GND = 0x48 Offset = binary 1001000
  • Address pin connected to VDD = 0x49 Offset = binary 1001001
  • Address pin connected to SDA = 0x4A Offset = binary 1001010
  • Address pin connected to SCL = 0x4B Offset = binary 1001011

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.