ماژول دیجیتال به آنالوگ MCP4725

۱۲۵,۰۰۰ تومان

موجود در انبار

27 نفر در حال مشاهده این محصول هستند!
توضیحات

MCP4725
MCP4725 which is an I2C controlled Digital-to-Analog converter (DAC).
A very cost-efficient option of DAC allows you to send an analog signal, such as a sine wave, from a digital source, such as the I2C interface on the Arduino microcontroller.
Digital to analog converters are great for sound generation, musical instruments, and many other creative projects!
This version of the MCP4725 up with few fixes for an issue with the board including the IC footprint, the I2C pinout, changes the overall board dimensions to better fit your projects, and a few more minor tweaks than its previous versions.
This board breaks out each pin you will need to access and use the MCP4725 including GND and Signal OUT pins for connecting to an oscilloscope or any other device you need to hook up to the board.
Additionally, the module has onboard SCL, SDA, VCC, and another GND for your basic I2C pinout.
Features
1. 12-bit resolution
2. I2C Interface (Standard, Fast, and High-Speed supported)
3. Small package
4. 2.7V to 5.5V supply
5. Internal EEPROM to store settings
6. Mounting hole diameter: 2.5mm
7. Distance between mounting hole: 11.5mm
Construction & Working.
Connect 5V pin and GND pin of Arduino board to MCP4725 board(pin VCC and GND).
then connect A4 (SDA), A5 (SCL) pins with corresponding I2C pin of MCP4725 board.
Output pin of MCP4725 is connected with Analog pin A0 by the way we can measure and display the Analog voltage obtained from MCP4725 in serial monitor, you can also measure by using digital voltmeter or multimeter.

Example
To read the MCP4725 we will use the library developed by Adafruit, available at [this link].
(https://github.com/adafruit/Adafruit_MCP4725 )
The library provides code examples, which it is advisable to review.
The following example is a modification of those available in the library, which shows the use of the functions generating a triangular wave with the MCP4725.

#include <Wire.h>
#include <Adafruit_MCP4725.h>

Adafruit_MCP4725 dac;

void setup(void) 
{
  dac.begin(0x60);
}

void loop(void) {
    uint32_t counter;
    for (counter = 0; counter < 4095; counter++)
    {
      dac.setVoltage(counter, false);
    }
    for (counter = 4095; counter > 0; counter--)
    {
      dac.setVoltage(counter, false);
    }
}
نظرات (0)

دیدگاهها

هیچ دیدگاهی برای این محصول نوشته نشده است.

اولین نفری باشید که دیدگاهی را ارسال می کنید برای “ماژول دیجیتال به آنالوگ MCP4725”

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *