Circuit Documentation
Summary of the Circuit
This circuit integrates a Raspberry Pi 4B with a 0.96" OLED display and an Adafruit ADS1115 16-Bit I2C ADC, along with a current sensor. The Raspberry Pi 4B serves as the central processing unit, managing data communication over I2C with both the OLED display and the ADC. The ADC is used to convert analog signals from the current sensor into digital form for processing by the Raspberry Pi. The OLED display provides a visual interface to display data or status information.
Component List
Raspberry Pi 4B
- Description: A powerful microcomputer with multiple GPIO pins for interfacing with various peripherals.
- Purpose: Acts as the central controller for the circuit, running the software and interfacing with other components.
Current Sensor
- Description: A sensor that measures the flow of current through a conductor.
- Purpose: Provides analog current measurement to be digitized by the ADC.
0.96" OLED
- Description: A small organic light-emitting diode display.
- Purpose: Displays information processed by the Raspberry Pi.
Adafruit ADS1115 16Bit I2C ADC
- Description: A high precision analog-to-digital converter that communicates over I2C.
- Purpose: Converts analog signals from the current sensor into digital data for the Raspberry Pi.
Wiring Details
Raspberry Pi 4B
- 3V3 connected to:
- VDD of Adafruit ADS1115 16Bit I2C ADC
- VDD of 0.96" OLED
- GND connected to:
- GND of Adafruit ADS1115 16Bit I2C ADC
- GND of 0.96" OLED
- GPIO2 (SDA) connected to:
- SDA of Adafruit ADS1115 16Bit I2C ADC
- SDA of 0.96" OLED
- GPIO3 (SCL) connected to:
- SCL of Adafruit ADS1115 16Bit I2C ADC
- SCK of 0.96" OLED
Current Sensor
- Out connected to AIN0 of Adafruit ADS1115 16Bit I2C ADC
- Burden connected to AIN1 of Adafruit ADS1115 16Bit I2C ADC
0.96" OLED
- GND connected to GND of Raspberry Pi 4B
- VDD connected to 3V3 of Raspberry Pi 4B
- SCK connected to GPIO3 (SCL) of Raspberry Pi 4B
- SDA connected to GPIO2 (SDA) of Raspberry Pi 4B
Adafruit ADS1115 16Bit I2C ADC
- VDD connected to 3V3 of Raspberry Pi 4B
- GND connected to GND of Raspberry Pi 4B
- SCL connected to GPIO3 (SCL) of Raspberry Pi 4B
- SDA connected to GPIO2 (SDA) of Raspberry Pi 4B
- AIN0 connected to Out of Current Sensor
- AIN1 connected to Burden of Current Sensor
Documented Code
No code has been provided for the microcontrollers in the circuit. The documentation of the code would typically include a description of the functionality, setup and loop (or main) functions, and any relevant functions or libraries used. Since no code is available, this section cannot be completed.
