Go Down

Topic: measuring upper and lower limit of DAC output (Read 859 times) previous topic - next topic

odces

to know the values of lower limt and upper limit of DAC in arduino due.

I tried to measure the DAC analog output with multimeter with the attached code.


after uploading the program the measuring value is 0.334V continuously.

not varying after delay of 2 seconds.

how to measure the DAC analog voltage.

Pl.correct my code.

Code: [Select]


int value;

void setup()
{
}

void loop()
{
  analogWriteResolution(12);
 
  value =0;
  analogWrite(DAC0,value);

  delay(2000);

  value =4095;
  analogWrite(DAC0,value);

 
}






ard_newbie

#1
Aug 13, 2020, 02:32 pm Last Edit: Aug 13, 2020, 02:33 pm by ard_newbie
There is a good chance that you burned your DAC ...

DAC output is in the range of 1/6  * 3.3V  and 5/6  * 3.3V.  You always want to connect at least a 1.5 K Ohms resistor in serie for each DAC to avoid burning your DACs.

http://ardupiclab.blogspot.fr/2015/07/how-to-modify-analog-output-range-of.html

https://www.arduino.cc/en/Hacking/PinMappingSAM3X

Go Up