I have wrote a code of interfacing AD7705 with Arduino due,i am not getting any errors thou!
but i am unable to get any output.Can anyone highlight me where i am going wrong and what need to changed in the code
I am finding a problem getting a output for the interfacing AD7705.i have a written a code,thou there is no error.
Please anyone can guide me through my mistakes and can give any suggestion.would be great help for me.
Thank you
I am finding a problem getting a output for the interfacing AD7705.i have a written a code,thou there is no error.
Please anyone can guide me through my mistakes and can give any suggestion.would be great help for me.
Thank you
Backup a little and tell us exactly what you are attempting to do.
A Wiring diagram would be good to have.
also using the Arduino IDE there is an option to format the sketch/code for the forums.
formatted sketch/code is easier to read without having to reformat it myself.
There is an Instructable for interfacing AD7705 with an UNO, this might help:
Provided you really need 16-bit ADC conversions at 500 sps, you can achieve this with your builtin ADC channels on the DUE. You will have to oversample and average accordingly to obtain 16-bit conversions from 12-bit conversions.
From the Silicon Labs Application Note AN118(IMPROVING ADC RESOLUTION BY OVERSAMPLING AND AVERAGING):
Assume a system is using a 12-bit ADC to output a temperature value once every second (1 Hz). To increase the resolution of the measurement to 16- bits, we calculate the oversampling frequency as follows: fos = 4pow4 * 1Hz = 256Hz Thus, if we oversample the temperature sensor at fs=256 Hz, we will collect enough samples within the required sampling period to average them and can now use 16-bits of the output data for a 16-bit measurement. To do so, we accumulate (add 256 consecutive samples together), then divide the total by 256. Such a process is commonly referred to as decimation. This results in 16-bits of useful data. Such an operation is referred to as accumulate and dump.
If fs = 500 Hz, fos = 128 KHz, well below the maximum conversion frequency of your builtin ADCs.