Dear all,
We would like to make impedance measurements using the ad5933 chip. I downloaded a library "arduino-ad5933-master" by mjmeli.
We would like to make a small change though to the function to adapt it to our needs. We want to link the calibration to one button and the measurement to another.
So we entered the calibration code in the loop (using an “if loop“) linked to the state of the first button.
To carry out the measurement with the functions FrequencySweepEasy and FrequancySweepRaw, we used another “if loop” in the loop (sorry for this play on words) connected to the state of the second button. Up to here everything works!!
Since we need to display an average of the measurements of impedance we make, we tried to modify one of the two functions (FrequencySweepEasy) by making it return a value.
The code compiles but stops at the calibration step! Even if the measurement continues to be made. Obviously the impedance values are infinite because the calibration has not been performed. Someone could tell me why?
Any help would be much appreciated.
Regards,
Stefania