I am somewhat new to the DUE board and I am attempting to build and write code for a deceptively simple configuration.
I have 0.300 Volts running into A0 on the board. My goal is too
Read the correct voltages on A0 on the serial.print screen.
Write code in order to get 0.300 volts coming out of the DAC0 on the DUE.
It seems pointless but all i need to do is watch the voltage change on the output of the DAC0 as i change the voltage going into the A0 input.
I have attached the code i have so far. Two problems arise with this code
I have it set to read 5.0V/1023.0 but the serial.print reads 0.40 volts. Not the desired 0.300 volts i am putting in A0.
I am getting nothing out of the DAC0 port. I want it to read 0.300 volts.
Thank you for your time. Any help would be appreciated! Let me know if you cant open the code file.
Analog_read.ino (725 Bytes)