usb-adc-dfr1184

DFRobot_ADS1115_0_10V

The product is a module that integrates the ADS1115 chip. The I2C and UART communication modes can be selected by the dial switch, and the I2C address of the module can also be switched by the dial switch. The external device can obtain two sets of voltage data with a resolution of 0.01mv through the gravity interface. This module can be used to accurately measure the DC voltage from 0 to 10v.

effect picture

Product Link(https://www.dfrobot.com/)

Table of Contents

Summary

Installation

Here’s one way to use this library:

  1. First download the library file, paste it into the \Arduino\libraries directory, then open the examples folder and run the demo inside that folder.

Methods


  /**
   * @fn begin
   * @brief  Initializes the communication method
   * @return Returns the initial state
   * @retval Ture no Eerro
   */
  uint8_t begin(void);

  /**
   * @fn get_value(uint8_t channel)
   * @brief Getting voltage values
   * @param select channel 1/ channel 2
   * @note You can only enter 1 or 2, and any other values will always return 0
   * @return voltage values
   */
  uint32_t get_value(uint8_t channel);

Compatibility

MCU Work Well Work Wrong Untested Remarks
Arduino Uno      
Arduino MEGA2560      
Arduino Leonardo      
FireBeetle-ESP32      
FireBeetle-ESP8266      
FireBeetle-M0      
RaspberryPi4      

History

Credits

Written by lr(rong.li@dfrobot.com), 2024. (Welcome to our website)