Pages: 1 2 [3]   Go Down
Author Topic: DAC support  (Read 14510 times)
0 Members and 1 Guest are viewing this topic.
Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@vdorr,

thank you!
If you can open a pull request it would be perfect, otherwise I'll apply the fix by myself.
Logged

C.

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@cmaglie

I believe i've just opened pull request for this issue.

V.
Logged

Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe i've just opened pull request for this issue.

Yes, this is the preferred way to submit patches, thanks.
https://github.com/arduino/Arduino/pull/1202
Logged

C.

0
Offline Offline
Newbie
*
Karma: 1
Posts: 41
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for saving my nerves!  smiley-mr-green
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Guys,

Is it possible to change the DAC resolution using the dacc_write_conversion_data(DACC_INTERFACE, value);?
It's always using 12 bits, even if I change using that command: analogWriteResolution(smiley-cool;.
Is it seem the analogWriteResolution(smiley-cool; only works when we write a value using analogWrite(DAC0, value);

Thanks
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi. I'm trying to use the DAC from my due to make a square wave. After analogWrite(DAC0,value), the output voltage won't reach 0V again. I know that the voltage output will always be between 0.55 and 2.75V, but i really need 0V... There is a way to turn off the DAC0? I've tried digitalWrite(DAC0,LOW) with and without pinmode() function.

Best regards,
Jorge
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How to get rid of the 0.55 Vdc from the DAC output---

You will have to waste an amplifier on this to do it right, otherwise a series capacitor will do the trick.  I'll show you in text so everyone can see it:

  ----|(----      use a nice big capacitor; 47uf will pass just about all frequencies, 0.047pf will block all frequencies.

Better to use an amplifier, Freescale has one that works in front of a comparator; here's the link:
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN3552.pdf

Best regards
Logged

Pages: 1 2 [3]   Go Up
Jump to: