second & third ADC1015 issue

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
klankschap
 
Posts: 26
Joined: Sun Sep 09, 2012 6:50 am

second & third ADC1015 issue

Post by klankschap »

I use two adc1015, connected as 0x49 and 0x4A using the example addressing (the second and third from the top)

Code: Select all

  Adafruit_ADS1015 ads1(0x49); 
  Adafruit_ADS1015 ads2(0x4A);

  ads1.begin();
  ads2.begin();

  adc0 = ads1.readADC_SingleEnded(0);
  Serial.print("AIN0: "); Serial.println(adc0); 
  adc0 = ads2.readADC_SingleEnded(0);
  Serial.print("AIN0: "); Serial.println(adc0);
On the ads2 all channels read 4095
If i swap the hardware, the results remain the same, e.g. the 0x4A unit reads 4095 only.

any hints?
Thanks
Attachments
sensors_FourBoards_bb-1024.jpg
sensors_FourBoards_bb-1024.jpg (66.56 KiB) Viewed 184 times

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: second & third ADC1015 issue

Post by adafruit_support_bill »

What is connected to the signal pins? Please post a photo showing all your soldering and connections.

User avatar
kengineer
 
Posts: 30
Joined: Thu Jan 23, 2014 7:29 am

Re: second & third ADC1015 issue

Post by kengineer »

First thing you want to do when hooking in new I2C devices for the first time is to scan the I2C bus just to make sure that everything has the same adress you think it does. Have you tried that?

http://playground.arduino.cc/Main/I2cScanner

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”