4-channel ADC ADS1115 with TinkerPie
Four extra precise analog inputs, even while Wi-Fi is on.
| Type | Smart sensors (I2C) |
|---|---|
| Connect to | SENSOR port · 0x48 |
| Gives | millivolts on A0-A3 |
| Simulator | Yes: a control appears under the simulated board |
How it works
The ADS1115 is an analog-to-digital converter (ADC): it turns a voltage into a number. It has four inputs (A0-A3) and 16-bit resolution, so it can see changes of a fraction of a millivolt. It talks to the board over I2C (address 0x48).
How to wire it
Plug into any SENSOR 1-4 port (SDA, SCL, 3.3 V, GND). Each type has a fixed I2C address, so different types can share the bus.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.adcMillivolts(0)
// Arduino C++
sensors::adcMillivolts(0) Good to know
- Works from 2.0 to 5.5 V; keep input voltages between GND and the supply.
- A built-in amplifier (PGA) lets it measure small signals more precisely.
- Great for batteries, solar cells and sensors that need more accuracy than the board pins.
Similar modules
- Light meter BH1750
- Temperature + humidity AHT20
- Temperature + humidity SHT31
- Motion sensor MPU6050
- Colour sensor TCS34725
- IR thermometer MLX90614
- Real-time clock DS3231
- Current + voltage sensor INA219
More projects to try
Questions
Can I try the 4-channel ADC ADS1115 without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
Why use an ADS1115 when the board already has analog pins?
The ESP32-S3 can only use some of its analog pins while Wi-Fi is on, and its readings are less precise. The ADS1115 gives four extra, steady and precise inputs that work with Wi-Fi.