Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mongoose-os-libs/arduino-adafruit-ads1x15
Arduino Adafruit ADS1015 library for Mongoose OS
https://github.com/mongoose-os-libs/arduino-adafruit-ads1x15
Last synced: 21 days ago
JSON representation
Arduino Adafruit ADS1015 library for Mongoose OS
- Host: GitHub
- URL: https://github.com/mongoose-os-libs/arduino-adafruit-ads1x15
- Owner: mongoose-os-libs
- License: other
- Created: 2017-09-16T11:42:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T00:16:30.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T21:52:51.604Z (4 months ago)
- Language: C++
- Homepage: https://mongoose-os.com
- Size: 16.6 KB
- Stars: 1
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongoose-os - arduino-adafruit-ads1x15 - Arduino Adafruit ADS1015 library for Mongoose OS (Awesome Mongoose OS [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) / Official Libraries)
README
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](https://www.adafruit.com/product/1083) [ADS1115](https://www.adafruit.com/product/1085) for more information about the hardware.
![alt text](https://cdn-shop.adafruit.com/970x728/1083-00.jpg)
![alt text](https://cdn-shop.adafruit.com/970x728/1085-02.jpg)### 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](https://github.com/mongoose-os-apps/example-arduino-adafruit-ads1x15-js)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