Go Down

Topic: Arduino DUE DAC limits (Read 159 times) previous topic - next topic

Iblex

May 09, 2015, 12:30 pm Last Edit: May 09, 2015, 12:32 pm by Iblex
Hello folk, does the Arduino DUE DAC can't generate low signals than 0.4V and high than 2.7V ??
this is my code :
Code: [Select]

void setup() {
  analogWriteResolution(10);
}

void loop() {
  for (int brightness = 0; brightness < 1023; brightness++) {
    analogWrite(DAC0, brightness);
    delay(2);
  }
  for (int brightness = 1023; brightness >= 0; brightness--) {
    analogWrite(DAC0, brightness);
    delay(2);
  }
}

and please take a look to the attached picture to see the generated wave limits.
Thank you
what we can do tomorrow, you can do today.

Magician

The range is 1/6 to 5/6 Vcc. Use external hardware (OPA) if you need to scale up down

MarkT

Not only does it have that limitation, its very noisy too.  Use an external DAC is my
advice, there are many good ones to choose from.
[ I won't respond to messages, use the forum please ]

pietkuip

My solution was to use both DACs, and to use the difference voltage. That gives -2.3 to + 2.3 V.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy