Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

AD5933 Re/Im wrong signs

$
0
0

Hi

 

I ported my code that works perfectly with the AD5933 EVM to Arduino Uno(16bit).

I'm no longer using the EVM instead I'm using AD5933 chip with a custom board.

The board seems to function correctly. I have one problem though, the complex numbers computed with this custom board are different from the EVM - the difference is in their signs. (Again the same code is used with both the Arduino and the EVM.).

As can be seen below, it does compute the correct impedance(due to the nature of the computation), however, the sign issue is utterly wrong and should be fixed. Any ideas of what could be the cause of this would be highly appreciated.

 

Output from the custom board: (Rcal = 200k, Rfb = 100k)

----------------------------------------

frequency: 30000.00

impedance: 199984.78

phase: 0.05

real: -1614.00

img: 4623.00

----------------------------------------

----------------------------------------

frequency: 30002.00

impedance: 199984.78

phase: 0.05

real: -1614.00

img: 4623.00

----------------------------------------

----------------------------------------

frequency: 30004.00

impedance: 199984.78

phase: 0.05

real: -1614.00

img: 4623.00

----------------------------------------

 

EVM:

 

FrequencyImpedancePhaseRealImaginaryMagnitude
3000020004801628-45974877
3000220004901629-45964877
3000420002101629-45974877
3000620004401629-45964877
3000820002301630-45974877

 

Mike


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>