Hi all,
Something that I though would be easy to do, output values on the DAC, is proving very frustrating. I have the same issue on two Arduino Due boards. Whatever code I try from examples the outputs are always high impedance.
I've tried setting the DAC pins as outputs or nothing, changing the resolution etc. One issue I found online was to do with writing to the DACs too quickly however I only write it once. Both DAC outputs suffer from the issue.
Any advice would be great!
Thanks.
Some code:
void setup() {
pinMode(DAC0, OUTPUT);
analogWriteResolution(12);
analogWrite(DAC0, 2048);
}
void loop() {
if(digitalRead(SW_START) == 1)
{
enableDischarge(4);
}
else
{
disableDischarge(4);
}
delay(1000);
}