Raspberry Pi 4B with ADS1115 ADC and OLED Display for Current and Voltage Monitoring
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit integrates a variety of components to perform analog-to-digital conversion, current sensing, voltage measurement, and display output. The core of the circuit is a Raspberry Pi 4B, which interfaces with an Adafruit ADS1115 16-bit I2C ADC for high-precision analog measurements. The ADC is connected to a current sensor and a ZMPT101B voltage sensor to monitor electrical parameters. Additionally, a 0.96" OLED display is included for real-time data visualization. The circuit utilizes the I2C communication protocol to enable data exchange between the Raspberry Pi, the ADC, and the OLED display.
Component List
Adafruit ADS1115 16Bit I2C ADC
- Description: A high-precision, 16-bit analog-to-digital converter with I2C interface.
- Pins: VDD, GND, SCL, SDA, ADDR, ALERT, AIN0, AIN1, AIN2, AIN3
0.96" OLED
- Description: A small OLED display for visual output.
- Pins: GND, VDD, SCK, SDA
Current Sensor
- Description: A sensor for measuring electrical current.
- Pins: Out, Burden, In_current, Out_current
Raspberry Pi 4B
- Description: A versatile single-board computer with a range of GPIO pins.
- Pins: 3V3, 5V, GPIO2, GPIO3, GND, and others not used in this circuit.
ZMPT101B
- Description: A module for AC voltage measurement.
- Pins: OUT, GND, VCC, NEUTRO, FASE
Wiring Details
Adafruit ADS1115 16Bit I2C ADC
- VDD connected to Raspberry Pi 4B 3V3
- GND connected to Raspberry Pi 4B GND, 0.96" OLED GND, and ZMPT101B GND
- SCL connected to 0.96" OLED SCK and Raspberry Pi 4B GPIO3
- SDA connected to 0.96" OLED SDA and Raspberry Pi 4B GPIO2
- AIN0 connected to Current Sensor Out
- AIN1 connected to Current Sensor Burden
- AIN2 connected to ZMPT101B OUT
0.96" OLED
- GND connected to Raspberry Pi 4B GND and ZMPT101B GND
- VDD connected to Raspberry Pi 4B 5V
- SCK connected to Adafruit ADS1115 16Bit I2C ADC SCL and Raspberry Pi 4B GPIO3
- SDA connected to Adafruit ADS1115 16Bit I2C ADC SDA and Raspberry Pi 4B GPIO2
Current Sensor
- Out connected to Adafruit ADS1115 16Bit I2C ADC AIN0
- Burden connected to Adafruit ADS1115 16Bit I2C ADC AIN1
Raspberry Pi 4B
- 3V3 connected to Adafruit ADS1115 16Bit I2C ADC VDD
- 5V connected to 0.96" OLED VDD and ZMPT101B VCC
- GPIO2 connected to Adafruit ADS1115 16Bit I2C ADC SDA and 0.96" OLED SDA
- GPIO3 connected to Adafruit ADS1115 16Bit I2C ADC SCL and 0.96" OLED SCK
- GND connected to Adafruit ADS1115 16Bit I2C ADC GND, 0.96" OLED GND, and ZMPT101B GND
ZMPT101B
- OUT connected to Adafruit ADS1115 16Bit I2C ADC AIN2
- GND connected to Raspberry Pi 4B GND and 0.96" OLED GND
- VCC connected to Raspberry Pi 4B 5V
Documented Code
No code has been provided for the microcontrollers in the circuit. When code is available, it should be documented here with explanations for each function and routine, including setup and loop structures, library dependencies, and any external hardware interfaces.