ADS1x15
Add-On Required: This feature requires the Simulink Support Package for Raspberry Pi Hardware add-on.
Libraries:
Simulink Support Package for Raspberry Pi Hardware /
Basic
Description
Use the ADS1x15 analog-to-digital converter block to perform analog-to-digital conversion of signals connected to the selected ADC input pins. The block outputs digital values representing the analog input signal and stores the converted values in the result register of your digital signal processor. You use this block to capture and digitize analog signals from external sources such as signal generators, frequency generators, or audio devices. With the ADS1x15 block, you can configure for ADS1015 and ADS1115 converter, that provides a 12-bit and 16-bit precision digital output, respectively.
Hardware Connections
When you select A0 - A1 as the differential input channel for the ADS1x15 sensor, use the following table to set up the connections between a Raspberry Pi® board, ADS1x15 sensor, and an analog source device. For any other input channels that you select, make the hardware connections accordingly.
Raspberry Pi | ADS1x15 Sensor | Device |
---|---|---|
VCC | VCC | |
GPIO 2 | SDA | |
GPIO 3 | SCL | |
GND | GND | GND |
A0 | Sig + | |
A1 | Sig - |
Ports
Output
Parameters
Version History
Introduced in R2023a