ADS1115 I2C 16Bit ADC Module (HCMODU0098)
This module (HCMODU0098) is a breakout board for the Texas Instruments ADS1115 ADC. This device provides a precision 16 bit analogue to digital (ADC) resolution. Designed with precision, low power and ease of implementation in mind. The ADS1115 features onboard reference and an oscillator. A serial I2C interface allows interfacing to the module with only two pins and it's slave address can be configured on one of four addresses, allowing for multiple modules to be connected to one I2C bus. The ADS1115 can perform conversions at rates up to 860 samples per second (SPS). An onboard PGA is available that offers input ranges from the supply to as low as ±256mV, allowing both large and small signals to be measured with high resolution. The ADS1115 also features an input multiplexer (MUX) that provides two differential or four single-ended inputs.
The ADS1115 operates either in continuous conversion mode or a single-shot mode that automatically powers down after a conversion and greatly reduces current consumption during idle periods.Features:
• WIDE SUPPLY RANGE: 2.0V to 5.5V
• LOW CURRENT CONSUMPTION: Continuous Mode: Only 150μA 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 COMPARATORRaspberry Pi users:
For Raspberry Pi uses we have tested this module with the free Cayenne cloud based IoT software platform. Simply connect the module to your Raspberry Pi as shown below and use the Cayenne software platform to get remote analogue voltage readings without writing a single line of code.
You can create a free account simply by clicking our referral link below:Arduino users:
To make using this module with your Arduino as easy as possible we have written an exclusive library (HCADS1xxx). This library can be downloaded from the software section of our support forum here:viewtopic.php?f=58&t=2025
The library will allow you to obtain readings out of the 4 analogue input pins (A0-A3).
Example sketch using the HCADS1xxx library:
/* FILE: HCADS1xxx_Continuous_Conversion_Example
AUTHOR: Andrew Davies
07/06/16 version 0.1: Original version
20/06/16 version 0.2: Updated to include support for 12Bit ADS1015
Example Arduino sketch for ADS1015, ADS1113, ADS1114, & ADS1115 serial analogue to
digital devices created by Hobby Components Ltd (HOBBYCOMPONENTS.COM)
This example Arduino sketch demonstrates how to use the HCADS111x library to configure
the ADC device to continuous conversion mode and how to take repeated measurements.
The measurement results will be output to the Arduino's serial port.
This library and sketch supports the ADS1015, ADS1015, ADS1113, ADS1114, & ADS1115
devices but has been written in particular for our ADS1015 12bit and ADS1115 16bit
analogue to digital modules (HCMODU0098 & HCMODU0099)
available from hobbycomponents.com
To use the module connect it to your Arduino as follows:
A0...................To the analogue voltage to be measured (voltage must be between 0 & 6.144V)
The library for this sketch can be downloaded form the software section of our support
You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used directly for the purpose of selling products that
directly compete with Hobby Components Ltd's own range of products.
THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
/* Include the HCADS1xxx library */
/* Create an instance of the library */
/* Initialise the library and serial interface */
/* Set the ADC's input to single ended (referenced to GND) and connect it to the
* modules pin A0. See the library documentation in our support forum for more
* options */
/* Set the devices full scale reference voltage to 6.144V. See library
* documentation for other options */
/* Put the device into continuous conversion mode */
/* Get the last measurement from the the device */
Result = HCADS1xxx.Read();
/* Output the raw result to the serial port */
Serial.print("Raw value: ");
/* Divide the result by the ADC resolution to get the actual pin voltage:
* (Result * (Full Scale Voltage / ADC resolution)) */
Serial.print("Pin voltage: ");
Serial.println(Result * (6.144 / (65536 / 2)), 4);
/* Wait a little before taking another measurement so not to flood the serial port */
The HCADS1xxx Arduino compatible library required for the above sketch can be downloaded from the software section of our support forum here:viewtopic.php?f=58&t=2025Disclaimer:
The Cayenne platform is an external free service and is not provided by, or connected to, Hobby Components Ltd. It is therefore not being sold as part of the product advertised on this page. As such we do not provide any guarantees or warranties with regards to this service. Issues or questions related to the Cayenne platform should be directed to Cayenne and not Hobby Components Ltd.
Libraries, example code, and diagrams are provided as an additional free courtesy by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.
Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.