The ADS115 is a versatile ADC, but the Adafruit lib does not max it out…
↓↓↓ Complete description, time index and links below ↓↓↓
Getting an ADS1115 with the Arduino library by Adafruit up and running is easy enough. The first challenge arises when you actually want values in Volt. But that’s easy enough. After exploring the library’s capabilities one question remains.
Is that all the ADS1115 can do? And after browsing through its 60 page datasheet the answer is no! The Adafruit Arduino library is a good starting point, but it doesn’t support amongst other things all data rates and certain input configurations.
►Intro
00:00 Intro – ADS1115 breakout board, Arduino and the Adafruit library
02:09 Breakout board – an Adafruit original design with some surprises
►Using single-ended inputs
04:45 Example code – reading 4 single-ended inputs
06:75 Converting to Volts – that is the 16-bit signed integers from the ADC
►ADS1115 Datasheet
09:35 Features – lots of them and a quick look of what’s inside
11:33 Maximum ratings – how not to destroy your ADS1115
12:21 Input multiplexer – lots of switches and diode input protection
13:36 Protection diodes – keeping your chip save, but can take only 10mA
14:45 Unused pins – it’s OK to let them float, don’t connect them to ground
15:40 Erroneous information – in the Adafruit example code
►Using differential inputs
17:55 Breadboard – reading negative values from just positive or zero inputs
20:31 Code – the readADC_Differential_…() function is easy enough
►Using comparator and ALERT/RDY pin
21:32 Breadboard – turning a potentiometer will turn off an LED
23:41 Code – startComparator_SingleEnded() and getLastConversionResults()
►Using different I2C addresses
27:37 Breadboard – address pin pulled high (and fooling around with the pot)
28:50 Code – Adafruit_ADS1115 constructor gets an address passed
30:27 Datasheet – the ingenious Texas Instruments address pin trick
►ADS1115 features not supported by Adafruit library
31:02 Intro – beyond the Adafruit library
31:46 Data rate – Adafruit library always uses 128 SPS (a good compromise)
33:33 Waiting – Adafruit library readADC_…() waits for conversions to finish
34:27 Continuous mode – only with startComparator_…() in Adafruit library
35:55 Low threshold – and comparator modes not utilized by Adafruit library
36:32 ALERT/RDY pin – signals conversion ready (not with Adafruit library)
37:13 Differential inputs – two pin combos not supported by Adafruit library
►More from the ADS1115 datasheet
37:36 Analog inputs – gain dependent common-mode/differential impedance
39:24 Precision – nonlinearity, offset/gain error and offset channel match
►Wrap-up
41:06 Warp-up - ADS1115 is versatile, Adafruit library a good starting point
Tutorials: [ Ссылка ]
Mailbag: ADS1115 16-Bit ADC Modules and 4-Digit 7-Segment TM1650 LED Kits: [ Ссылка ]
Adafruit ADS1115 16-Bit ADC - 4 Channel with Programmable Gain Amplifier: [ Ссылка ]
Adafruit_ADS1X15: [ Ссылка ]
#robertssmorgasbord #tutorials #tutorial #how-to #Arduino #library #analogtodigital #adc #i2c #i2cprotocol
Ещё видео!