Closed Bwanna closed 4 years ago
The following changes in the "Adafruit_ADS1015.h" seem to work: ORIGINAL:
#define ADS1015_REG_CONFIG_MUX_SINGLE_1 (0x5000) // Single-ended AIN1
#define ADS1015_REG_CONFIG_MUX_SINGLE_2 (0x6000) // Single-ended AIN2
#define ADS1015_REG_CONFIG_MUX_SINGLE_3 (0x7000) // Single-ended AIN3
CHANGED:
#define ADS1015_REG_CONFIG_MUX_SINGLE_1 (0x6000) // Single-ended AIN1
#define ADS1015_REG_CONFIG_MUX_SINGLE_2 (0x7000) // Single-ended AIN2
#define ADS1015_REG_CONFIG_MUX_SINGLE_3 (0x4000) // Single-ended AIN3
I can't recreated this issue. I used a Feather ESP32 with an ADS1115 breakout running the singleended.ino example. Jumpering a wire from VDD or GND to each of the Ax inputs shows up as expected in the serial monitor output.
What ADS1115 breakout are you using?
Closing due to lack of response.
Arduino board: ESP32-DevKit3
Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.10
List the steps to reproduce the problem below (if possible attach a sketch or copy the sketch code in too):
Observation: -On breadboard and testing A0-A3 between Vdd and Gnd the following occurs: -Analog input >> Serial Printed ouput A0 -- A1 A1 -- A2 A2 -- A3 A3 -- A0
Recommendation: -Verify assignments. (Sorry, I'm still learning about writing .h and .cpp files so not confident in suggesting changes to these.)