Reference

This article serves as a reference for the DFRobot_ADS1115 library applicable to Arduino, providing installation instructions and details on serial communication protocols, including factory parameters, command tables, and AT command descriptions for reading voltage data.

Library

  • Library files applicable to Arduino: DFRobot_ADS1115 Library. Installation instructions: Download and install the library via the Arduino IDE's Library Manager or by adding the library files manually.

Communication Protocol Description

Serial Communication Description

Factory Parameters

  • Device Address: 0x00CC
  • Baud Rate: 9600bps

Command Table:

Device Address Input Register Number of Registers Select Channel Read Device Address Read Register Address Read Voltage Data
0xCC 0x20 0x01 0x01
0x02
0xBB 0x31 0x03

Reading Channel 1 Voltage Data via Serial Port

Host sends: 0xCC 0x20 0x01 0x01 //Select module device address and channel
Then send: 0xBB 0x31 0x03 //Read channel 1 voltage value

Serial AT Command Description

Command Meaning Return Value
AT AT Test Command OK
AT+AIN1=? Read AIN1 Channel Data AT+AIN1=
Decimal number, unit mV, keep two decimal places
AT+AIN2=? Read AIN2 Channel Data AT+AIN2=
Decimal number, unit mV, keep two decimal places

If a command not listed in the table is used, it will return: ERROR

The following figure will show the voltage values of channel 1 and channel 2 read using AT commands respectively.

Test Record

DFR1184-Test Record.pdf

Was this article helpful?

TOP