ADC Sampling at 10KHz - seems OK (have checked LED toggling with scope)

Not sure if I'm feeding the FFT correctly

Or if I'm reading results from FFT correctly --- only seem to get 'noise-like levels' from FFT

Code:

```
#include "ADC.h"
#include <IntervalTimer.h>
#include "arduinoFFT.h"
// when the ADC measurement finishes, this will be called
void adc0_isr() {
int adcVal = adc->adc0->readSingle();
if(!bFFTDataAvailable){
adcVal -= 0x800; // 12Bit ADC Sampling --- form signed int
vReal[sampleCntr] = (double)(adcVal);
vImag[sampleCntr++] = 0; // clear the imaginary value
if(sampleCntr >= N_samples){
bFFTDataAvailable = true;
sampleCntr = 0;
}
}
......
code snippet from main loop
if(bFFTDataAvailable){
FFT.Windowing(vReal, N_samples, FFT_WIN_TYP_HAMMING, FFT_FORWARD); // Weight data
FFT.Compute(vReal, vImag, N_samples, FFT_FORWARD); // Compute FFT
FFT.ComplexToMagnitude(vReal, vImag, N_samples); // Compute magnitudes
// Now update the control values from the FFT results ( fBin(x) )
updateControls();
bFFTDataAvailable = false;
}
```

In updateControls() - I'm extracting the max value from a group of the frequency buckets & am using that value to drive my controls

But control signal just seems to be 'noise' rather than frequency-aligned

Any thoughts as to what I've got wrong/missed