Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: DUE DAC...Safe to test with oscilloscope?  (Read 857 times)
0 Members and 1 Guest are viewing this topic.
Peckham London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all.
I have just recieved an arduino DUE which I am very excited about. My initial reason for getting it is for synthesis/audio applications.
I haven't touched the DAC yet as I have heard some baaad things about what can happen to it if you connect speakers or amps straight.
Could someone please help me with the best approach to using the DAC0 and DAC1 without blowing it out?
I have seen some reference circuits using an LM386... Are these definitely safe?
Could I use an op-amp circuit such as a TL072 summing amp?
And also, if I wanted to do a simple test running a loop through the DAC to create a triangle wave for testing purposes like this:
Code:
void setup()
{
 analogWriteResolution(12); // 12-bit!
}
void loop()
{
 for(int x=0; x<4096; x++)
 {
 analogWrite(DAC0, x); // use DAC1 for ... DAC1
 }
 for(int x=4095; x>=0; --x)
 {
 analogWrite(DAC0, x);
 }
}

Could I then connect DAC0 and GND straight to an oscilloscope probe with no fear of retribution??

Any help greatlt appreciated,
Thanks,
STeve (Mubase).

Smooberry dooberry.
Logged

Smooberry Dooberry.

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

Inputs of oscilloscopes are high resistive, so it will strain the DAC output with just a low load current. Or with other words: You are save!
« Last Edit: October 01, 2013, 11:47:19 am by Kibabalu » Logged

The Netherlands
Offline Offline
Full Member
***
Karma: 1
Posts: 146
MKDS hacker and Programmer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have had a 75 ohm input connected to the dac output, and it still works. (and an oscilloscope too)
Logged

Subscribe my youtube channel: http://www.youtube.com/user/MKDS3

Peckham London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Kibabalu. smiley-cool
Works like a charm. Tested with code for triangle wave and sawtooth.
So do you know what size resistor I would need as a limiting resistor or a link to a safe Amplifier circuit so I can use it for sound??


Logged

Smooberry Dooberry.

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

I wouldn't strain the DAC output direktly with a speaker. A 'resistor solution', whatever it means, will not work. It would change the impedance and also influence the bandwidth. Maybe this would save your DAC output, but it will cause at least a poor sound quality and a very very low audibility. What you need is a cassical output stage resp. a power amplifier.  






« Last Edit: October 01, 2013, 11:45:02 pm by Kibabalu » Logged

Peckham London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi. I've had success connecting the DAC to my mixing desk via a 4.7K ohm resistor with no bad effects.... The output level through the desk (Mackie 12 track) was OK! Im still going to work out an amp for it though...
Logged

Smooberry Dooberry.

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: