Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use AD7781: Examples, Pinouts, and Specs

Image of AD7781
Cirkit Designer LogoDesign with AD7781 in Cirkit Designer

Introduction

The AD7781 is a low-power, 24-bit sigma-delta analog-to-digital converter (ADC) manufactured by Analog Devices. It is designed for high-precision measurement applications, offering exceptional performance in a compact package. The AD7781 features an integrated programmable gain amplifier (PGA) and operates via a simple serial interface, making it ideal for applications requiring accurate and reliable data acquisition.

Explore Projects Built with AD7781

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based Multi-Sensor Monitoring System with Battery Power
Image of Wind turbine 2.0: A project utilizing AD7781 in a practical application
This circuit is a sensor monitoring system powered by a 7.4V battery, regulated to 5V using a 7805 voltage regulator. It uses an ESP32 microcontroller to interface with an ADXL345 accelerometer, INA219 current sensor, BMP280 pressure sensor, and an IR sensor, all connected via I2C and GPIO for data acquisition and processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 and ADXL343-Based Battery-Powered Accelerometer with SPI Communication
Image of vibration module: A project utilizing AD7781 in a practical application
This circuit features an ESP32 microcontroller interfaced with an ADXL343 accelerometer via SPI communication, powered by a 12V battery regulated down to 5V and 8V using 7805 and 7808 voltage regulators. The ESP32 reads accelerometer data and outputs it via serial communication, with additional components including a pushbutton and a rocker switch for user input.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-S3 Based Vibration Detection System with TFT Display and Power Backup
Image of IOT Thesis: A project utilizing AD7781 in a practical application
This circuit features an ESP32-S3 microcontroller connected to various peripherals including an ADXL355 accelerometer, an SW-420 vibration sensor, a buzzer module, and an ILI9341 TFT display. The ESP32-S3 manages sensor inputs and provides output to the display and buzzer. Power management is handled by a 12V to 5V step-down converter, and a UPS ensures uninterrupted power supply, with a rocker switch to control the power flow.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Based GPS Tracker with GSM Communication and Accelerometer
Image of Circuit Aayush: A project utilizing AD7781 in a practical application
This circuit is designed for communication and location tracking purposes. It features an Arduino Nano interfaced with a SIM800L GSM module for cellular connectivity, a GPS NEO 6M module for obtaining geographical coordinates, and an AITrip ADXL335 GY-61 accelerometer for motion sensing. The LM2596 Step Down Module is used to regulate the power supply to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with AD7781

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Wind turbine 2.0: A project utilizing AD7781 in a practical application
ESP32-Based Multi-Sensor Monitoring System with Battery Power
This circuit is a sensor monitoring system powered by a 7.4V battery, regulated to 5V using a 7805 voltage regulator. It uses an ESP32 microcontroller to interface with an ADXL345 accelerometer, INA219 current sensor, BMP280 pressure sensor, and an IR sensor, all connected via I2C and GPIO for data acquisition and processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of vibration module: A project utilizing AD7781 in a practical application
ESP32 and ADXL343-Based Battery-Powered Accelerometer with SPI Communication
This circuit features an ESP32 microcontroller interfaced with an ADXL343 accelerometer via SPI communication, powered by a 12V battery regulated down to 5V and 8V using 7805 and 7808 voltage regulators. The ESP32 reads accelerometer data and outputs it via serial communication, with additional components including a pushbutton and a rocker switch for user input.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of IOT Thesis: A project utilizing AD7781 in a practical application
ESP32-S3 Based Vibration Detection System with TFT Display and Power Backup
This circuit features an ESP32-S3 microcontroller connected to various peripherals including an ADXL355 accelerometer, an SW-420 vibration sensor, a buzzer module, and an ILI9341 TFT display. The ESP32-S3 manages sensor inputs and provides output to the display and buzzer. Power management is handled by a 12V to 5V step-down converter, and a UPS ensures uninterrupted power supply, with a rocker switch to control the power flow.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Circuit Aayush: A project utilizing AD7781 in a practical application
Arduino Nano Based GPS Tracker with GSM Communication and Accelerometer
This circuit is designed for communication and location tracking purposes. It features an Arduino Nano interfaced with a SIM800L GSM module for cellular connectivity, a GPS NEO 6M module for obtaining geographical coordinates, and an AITrip ADXL335 GY-61 accelerometer for motion sensing. The LM2596 Step Down Module is used to regulate the power supply to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Weigh scales
  • Industrial process control
  • Temperature measurement systems
  • Pressure sensors
  • Medical instrumentation

Technical Specifications

Key Technical Details

Parameter Value
Resolution 24-bit
Input Type Differential
Supply Voltage 2.7 V to 5.25 V
Power Consumption 330 µA (typical)
Input Voltage Range ±VREF/Gain
Programmable Gain Settings 1, 2, 4, 8, 16, 32, 64, 128
Reference Voltage Range 0.1 V to AVDD
Output Data Rate Up to 16.6 Hz
Interface Type Serial Peripheral Interface (SPI)
Operating Temperature −40°C to +105°C
Package Type 16-lead TSSOP

Pin Configuration and Descriptions

The AD7781 is available in a 16-lead TSSOP package. Below is the pin configuration and description:

Pin No. Pin Name Description
1 AVDD Analog power supply (2.7 V to 5.25 V).
2 REFIN(+) Positive reference input.
3 REFIN(−) Negative reference input.
4 AIN(+) Positive analog input.
5 AIN(−) Negative analog input.
6 GND Ground reference.
7 SCLK Serial clock input for SPI communication.
8 DIN Serial data input for SPI communication.
9 DOUT/RDY Serial data output and data ready signal.
10 CS Chip select input (active low).
11 PDRST Power-down/reset input (active low).
12 NC No connection. Leave unconnected or tied to ground.
13 NC No connection. Leave unconnected or tied to ground.
14 NC No connection. Leave unconnected or tied to ground.
15 NC No connection. Leave unconnected or tied to ground.
16 DVDD Digital power supply (2.7 V to 5.25 V).

Usage Instructions

How to Use the AD7781 in a Circuit

  1. Power Supply: Connect the analog (AVDD) and digital (DVDD) power supplies to a voltage source between 2.7 V and 5.25 V. Ensure proper decoupling capacitors are placed close to the power pins.
  2. Reference Voltage: Provide a stable reference voltage to the REFIN(+) and REFIN(−) pins. The reference voltage determines the input voltage range.
  3. Analog Input: Connect the differential analog input signal to the AIN(+) and AIN(−) pins. Ensure the input voltage does not exceed the specified range (±VREF/Gain).
  4. SPI Communication:
    • Connect the SCLK, DIN, DOUT/RDY, and CS pins to the SPI bus of your microcontroller or processor.
    • Configure the SPI interface for CPOL = 0 and CPHA = 1 (SPI Mode 1).
  5. Initialization: After power-up, reset the AD7781 by toggling the PDRST pin or sending a reset command via SPI.
  6. Data Acquisition:
    • Monitor the DOUT/RDY pin to detect when new data is available.
    • Read the 24-bit conversion result via the SPI interface.

Important Considerations and Best Practices

  • Use low-noise power supplies and proper grounding techniques to minimize noise and interference.
  • Place decoupling capacitors (e.g., 0.1 µF and 10 µF) close to the AVDD and DVDD pins.
  • Ensure the reference voltage is stable and within the specified range for accurate measurements.
  • Avoid exceeding the absolute maximum ratings for any pin to prevent damage to the device.

Example: Connecting the AD7781 to an Arduino UNO

Below is an example of how to interface the AD7781 with an Arduino UNO using SPI:

Circuit Connections

AD7781 Pin Arduino UNO Pin
AVDD 5V
DVDD 5V
GND GND
SCLK D13 (SCK)
DIN D11 (MOSI)
DOUT/RDY D12 (MISO)
CS D10 (SS)
PDRST D9

Arduino Code

#include <SPI.h>

// Define AD7781 pins
const int CS_PIN = 10;   // Chip Select
const int RDY_PIN = 12;  // Data Ready (DOUT/RDY)
const int RESET_PIN = 9; // Power-down/Reset

void setup() {
  // Initialize serial communication for debugging
  Serial.begin(9600);

  // Configure SPI settings
  SPI.begin();
  SPI.setDataMode(SPI_MODE1); // CPOL = 0, CPHA = 1
  SPI.setClockDivider(SPI_CLOCK_DIV16); // Set SPI clock speed
  SPI.setBitOrder(MSBFIRST); // Most significant bit first

  // Configure AD7781 pins
  pinMode(CS_PIN, OUTPUT);
  pinMode(RDY_PIN, INPUT);
  pinMode(RESET_PIN, OUTPUT);

  // Reset the AD7781
  digitalWrite(RESET_PIN, LOW);
  delay(1); // Hold reset low for at least 100 ns
  digitalWrite(RESET_PIN, HIGH);

  // Initialize the AD7781
  digitalWrite(CS_PIN, HIGH); // Deselect the chip
}

void loop() {
  // Wait for data ready signal
  if (digitalRead(RDY_PIN) == LOW) {
    // Select the AD7781
    digitalWrite(CS_PIN, LOW);

    // Read 24-bit data from the AD7781
    unsigned long data = 0;
    for (int i = 0; i < 3; i++) {
      data = (data << 8) | SPI.transfer(0x00);
    }

    // Deselect the AD7781
    digitalWrite(CS_PIN, HIGH);

    // Print the conversion result
    Serial.println(data, HEX);
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Data Output:

    • Ensure the SPI connections are correct and the SPI settings match the AD7781 requirements.
    • Verify that the DOUT/RDY pin is being monitored correctly.
  2. Incorrect Conversion Results:

    • Check the reference voltage and ensure it is stable.
    • Verify that the input signal is within the specified range.
  3. Device Not Responding:

    • Confirm that the PDRST pin is properly toggled during initialization.
    • Ensure the power supply voltages (AVDD and DVDD) are within the specified range.

FAQs

Q: Can the AD7781 operate with a single-ended input?
A: No, the AD7781 is designed for differential input signals. Single-ended inputs can be used with proper biasing, but this may reduce performance.

Q: What is the maximum SPI clock frequency supported by the AD7781?
A: The AD7781 supports SPI clock frequencies up to 5 MHz.

Q: How do I calculate the input voltage range for a given gain setting?
A: The input voltage range is ±VREF/Gain. For example, with a 2.5 V reference and a gain of 128, the range is ±19.53 mV.