Open AlessioCarnemolla opened 5 days ago
Hi, thanks for reporting. I will check it on my side. But first I must ask:
Hi, I used the latest release of rp2daq. I used the 'example_ADC_async.py' code. There are some difference between the values of the signal but the shape is the same, the mean value is almost the same and the peak frequency is precisely the same. Here the graphs and the post processing done by Matlab. Thanks a lot for your avaliability.
The peak Frequency of the signal is 190Hz, the frequency of the wave generated on the GP2. The Function Generator produced a wave of 20Hz. The GPIO 26 is connected with GP2, the GPIO27 is connected with the FG.
Puzzling indeed.
But what you show is some 20mV pk-pk signal atop of some 80mV background - this is fairly weak. What we see may even be some voltage noise picked by disconnected high-impedance pins.
What do you get when you connect e.g. 1 V DC signal to one of the pins?
Now the FG produces a wave of 17Hz Peak and 3V pk-pk on GPIO27. GPIO26 is still connected to GP2. This is what I get (peak frequency in the graphs corresponds to 17Hz).
It seems that the code detects only one frequency from the two channel, printing one of them for both, casually. May it be a hardware problem? I tried with different jumpers.
I tried to sample two different signals with two channels (GPIO26, GPIO27) using example_ADC_async.py. One of them was linked to a Function Generator and the other was linked with a Jumper to GP2. Processing the two signals it came out they are the same signal and, doing the FFT, it shows they have same peak frequency. I didn't modify any line of the code. Is there something I have to add? How can i record two different signals precisely?