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.

Here’s one way to use this library:
/**
* @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);
| MCU | Work Well | Work Wrong | Untested | Remarks |
|---|---|---|---|---|
| Arduino Uno | √ | |||
| Arduino MEGA2560 | √ | |||
| Arduino Leonardo | √ | |||
| FireBeetle-ESP32 | √ | |||
| FireBeetle-ESP8266 | √ | |||
| FireBeetle-M0 | √ | |||
| RaspberryPi4 | √ |
Written by lr(rong.li@dfrobot.com), 2024. (Welcome to our website)