IC – MCP4725 – D/A Converter 12-bit 1 channel I2C

Hardware

Chip:

Module:

BESTELLEN

Informatie (ENG):
You’ve always wanted to output analog voltages from a microcontroller, the MCP4725 is the DAC that will let you do it! The CJMCU-MCP4725 is an I2C controlled Digital-to-Analog converter (DAC).  Digital to analog converters are great for sound generation, musical instruments, and many other creative projects!
This version of the CJMCU-MCP4725 Breakout fixes a few issues 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. 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. Also on board are SCL, SDA, VCC, and another GND for your basic I2C pinout. Additionally, if you are looking to have more than one MCP4725 on a bus, the pull-up resistors on this board can be disabled just check the Hookup Guide in the Documents section below for instructions and tips on doing this.
Features:
12-bit resolution
I2C Interface (Standard, Fast, and High-Speed supported)
Small package
2.7V to 5.5V supply
Internal EEPROM to store settings

Pinout

Arduino

Sluit de module aan volgens onderstaand overzicht:

 

Met onderstaand arduino script kun je de uitgangsvoltage instellen:

nodig: MCP4725 Arduino Library van Adafruit.

Bron: https://theorycircuit.com/arduino-dac-tutorial/

Arduino Library

Installatie van Arduino IDE libraries: Arduino info

Informatie (ENG):

This is the Adafruit MCP4725 12-bit I2C DAC Driver library

This chip uses I2C to communicate, 2 pins are required to interface

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Kevin Townsend/Limor Fried for Adafruit Industries.
BSD license, check license.txt for more information All text above must be included in any redistribution

To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_MCP4725. Check that the Adafruit_MCP4725 folder contains Adafruit_MCP4725.cpp and Adafruit_MCP4725.h

Place the Adafruit_MCP4725 library folder your arduinosketchfolder/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.

Download @ GitHub.com

Adafruit_MCP4725-2.0.0

Raspberry Pi

Sluit de module aan zoals aangegeven op onderstaand schema:

Ps. Altijd de pinout van je Raspberry Pi controleren, deze kan verschillen per versie.

Wat heb je nodig?

Bibliotheek: Adafruit_Python_MCP4725

git clone https://github.com/adafruit/Adafruit_Python_MCP4725

cd Adafruit_Python_MCP4725

sudo python setup.py install

Gebruikt I2c detect om te controleren of er een i2c apparaat is gevonden, standaard is dit 0x62 (met brug op GND 0x60)

Met onderstaand python script worden de voltages om de x seconden aangepast:

Start het script met:  sudo python test.py , druk op CTRL+C om het script te stoppen!

Dit is de output in de console:

Bron:
raspberrypi-spy.co.uk

Afmetingen

GEEN GEGEVENS

Schema

GEEN GEGEVENS

Teardown

GEEN GEGEVENS

Datasheet

Fritzing

GEEN GEGEVENS

Downloads

GEEN GEGEVENS