ADS1115 only 15bit at differential measurement

Talk about Adafruit Raspberry Pi® accessories!

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

ADS1115 only 15bit at differential measurement

Postby tim123 » Tue Jan 01, 2013 1:38 pm

The Adafruits_ADS1x15.py works in Single-ended mode fine for me (after some modifications), but in differential mode I should get 16bit instead of 15 to get results also for negative values.

The script contains to interesting lines:
Code: Select all
    result = self.i2c.readList(self.__ADS1015_REG_POINTER_CONVERT, 2)
...
    return ( (result[0] << 8) | (result[1] & 0xFF) )

result[0] delivers only values from 128 to 255.

Thanks

P.S.: I'm very happy with my ADC on the raspi.
tim123
 
Posts: 2
Joined: Tue Jan 01, 2013 12:50 pm

Re: ADS1115 only 15bit at differential measurement

Postby tim123 » Sat Jan 19, 2013 5:12 pm

Sorry error was on my side. Now it works fine. Makes fun to play with small signals from strain gauges.
tim123
 
Posts: 2
Joined: Tue Jan 01, 2013 12:50 pm


Return to Adafruit Raspberry Pi® accessories

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[23]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]