Post Go back to editing

Problem for finding complete working code and connection of AD5934 IC with Arduino uno

Category: Hardware
Software Version: Arduino uno 1.8.2

I am trying to interface AD5934 IC with Arduino UNO ...I am not getting exact hardware connection and complete working of coding part.

I am trying to calculate impedance measurement and calibration part using AD5934 IC with Arduino UNO .

Please any one could help me out for this tissue.

I have a deadline of 1 week to complete this project.

I have tried in all possible ways.

Please could any one can help me out is more greatful to me.

Parents Reply Children
  • From your diagram and the picture it is not clear if you connected all supply pins to Vdd and all ground pins to GND, as recommended in the datasheet, p.8, Fig. 3:

    NOTES:
    1. IT IS RECOMMENDED TO TIE ALL SUPPLY CONNECTIONS (PIN 9, PIN 10, AND PIN 11)
    AND RUN FROM A SINGLE SUPPLY
    2. IT IS ALSO RECOMMENDED TO CONNECT ALL GROUND SIGNALS TOGETHER (PIN 12, PIN 13, AND PIN 14)

    Please check if all the pins mentioned connected accordingly.

    i just complied it

    So it sounds like the driver code from Antonius's post does compile without any errors. If you use a conventional Arduino environment you can print the valuers collected from the chip over serial port by adding to the code something like:

    1. Somewhere around line 179 -
    Serial.begin(9600);

    2. Somewhere around line 199 - 
    Serial.print(results.freq[cnt]);
    Serial.print(", ");
    Serial.print(results.realImp[cnt]);
    Serial.print(", ");
    Serial.println(results.imagImp[cnt]);

    Then upload your sketch and click Tools > Serial Monitor. 

  • BIM_AD5933-20220503T072902Z-001.zipHi,

    I have complied this code .....i am getting results from this....

    my big issue is when i place the resistor over RFB,VIN and VIN ,VOUT ..it is not showing the calibration and impedance measurement of this ...

  • Good progress, at least you found the code that works with your chip. The code seems to be measuring and printing the data from the registers. I would suggest you pull this data into Excel and perform all calculations for calibration and measurements of the unknown impedance there before modifying the code.

    If this sounds agreeable, can you connect some Rfb between RFB and VOUT pins, run the code and post the results here in some text format? Then connect some calibration resistor Rcal ≈ Rfb, run the code and post the results? Then connect some "unknown" resistor Rx ≥ Rcal and post the results? I can show you how to perform calibration and measurements with this data set.

    BTW what is the clock source MCLK for your AD5934?

  • Hi,

    The clock source MCLK for AD5934 is 16.776MHZ

  • Hi,

    How to pull the data into excel sheet for calculating calibration and unknown impedance ??

  • Yes, but where does this clock signal come from? You schematic and picture do not show any oscillators from which this MCLK signal is supposed to come from. Without the oscillator the chip is not going to function. See, for example, CN-0349, Fig. 1 - U6 is the source of MCLK.

  • Serial monitor is notoriously buggy, but after the sweep finishes, for starters you can try selecting text in it, copying and pasting into any text editor or into Excel. If that does not work you can direct the output from your Uno to some serial port software such as Putty.