I am trying to get a MCP4725 working (MCP4725A1T) but no luck so far with my Teensy 3.1 I need to DAC's so the built-in one is not enough
My print used the DAC_MCP4725SOT Eagle part from SFE so it should be connected well. I use SCL0 / SDA0.
I actually also tried the "Teensy3.0/3.1 I2C Scanner" from Brian (i2c_t3) to no avail.
This is my code:
I have connected an LED between the DAC out and GND to see results.
SDA is connected to SDA0 / SCL is connected to SCL0
My print used the DAC_MCP4725SOT Eagle part from SFE so it should be connected well. I use SCL0 / SDA0.
I actually also tried the "Teensy3.0/3.1 I2C Scanner" from Brian (i2c_t3) to no avail.
This is my code:
Code:
#include <Wire.h>
#include <Adafruit_MCP4725.h>
Adafruit_MCP4725 dac;
void setup(void) {
delay(1000);
Serial2.begin(9600);
delay(1000);
Serial2.println("Hello!");
delay(1000);
// For Adafruit MCP4725A1 the address is 0x62 (default) or 0x63 (ADDR pin tied to VCC)
// For MCP4725A0 the address is 0x60 or 0x61
// For MCP4725A2 the address is 0x64 or 0x65
dac.begin(0x62);
Serial.println("Generating a Square wave");
}
void loop(void) {
uint32_t counter;
// Run through the full 12-bit scale for a triangle wave
dac.setVoltage(4095, false);
delay(1000);
dac.setVoltage(0, false);
delay(1000);
}
I have connected an LED between the DAC out and GND to see results.
SDA is connected to SDA0 / SCL is connected to SCL0
Last edited: