user77977: I measured that the SPI-Clock of my Arduino Nano in my project didn't reach near 5V. So I quickly tested with a new one, nothing attached except a (mydaq) scope.
I measured the SPI clock:
2.5 V @ 8 Mhz;
3.6 V @ 4 Mhz;
5 V @ 1 Mhz.
I think the graph looks like that because the low max sample of the mydaq, so I dont worry to much about that. The MISO could reach about 5V but why is the clock voltage lower at higher frequencies? And how to reach 5V?

#include <SPI.h>

void setup() {
  SPI.begin();
  SPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE0));
}

void loop() {
  SPI.transfer(1);
}

I also tried SPI mode 2 or 3 @8Mhz, idle state was 4,7 V but Vp-p again only 1,9 V.

user10794: This is the second time the Nyquist frequency has come up in the last couple of days.
In order to accurately measure a changing signal, like you are doing, you need to sample at, at least, twice the frequency of the signal. If you don't your samples may give incorrect results because you are sampling partway up or down the curve.
To measure an 8 MHz signal, you therefore need to sample at 16 MHz, which you don't appear to be doing.

user4143: According to the MyDAQ specifications the analogue input has a pass-band filter of "DC to 400kHz". That means that at 400kHz the signal will be reduced by -3dB, and anything above that will be reduced even further, and the higher the frequency the more it will be reduced.
Further to that the MyDAQ samples at up to 200ksps, which means it can only capture a maximum frequency component of 100kHz.
The MyDAQ is little more than an educational toy. It's just a glorified sound card and really not worth wasting your time with.

77977: <p>I measured that the SPI-Clock of my Arduino Nano in my project didn't reach near 5V. So I quickly tested with a new one, nothing attached except a (mydaq) scope.</p>
<p>I measured the SPI clock:<br />
2.5 V @ 8 Mhz;<br />
3.6 V @ 4 Mhz;<br />
5 V @ 1 Mhz.</p>
<p>I think the graph looks like that because the low max sample of the mydaq, so I dont worry to much about that. The MISO could reach about 5V but why is the clock voltage lower at higher frequencies? And how to reach 5V?</p>
<p><a href="https://i.stack.imgur.com/29CWu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/29CWu.png" alt="enter image description here" /></a></p>
<pre><code>#include &lt;SPI.h&gt;

void setup() {
  SPI.begin();
  SPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE0));
}

void loop() {
  SPI.transfer(1);
}
</code></pre>
<p>I also tried SPI mode 2 or 3 @8Mhz, idle state was 4,7 V but Vp-p again only 1,9 V.</p>
 10794: <p>This is the second time the <a href="https://en.wikipedia.org/wiki/Nyquist_frequency" rel="nofollow noreferrer">Nyquist frequency</a> has come up in the last couple of days.</p>
<p>In order to accurately measure a changing signal, like you are doing, you need to sample at, at least, twice the frequency of the signal. If you don't your samples may give incorrect results because you are sampling partway up or down the curve.</p>
<p>To measure an 8 MHz signal, you therefore need to sample at 16 MHz, which you don't appear to be doing.</p>
 4143: <p>According to the MyDAQ specifications the analogue input has a pass-band filter of &quot;DC to 400kHz&quot;. That means that at 400kHz the signal will be reduced by -3dB, and anything above that will be reduced even further, and the higher the frequency the more it will be reduced.</p>
<p>Further to that the MyDAQ samples at up to 200ksps, which means it can only capture a maximum frequency component of 100kHz.</p>
<p>The MyDAQ is little more than an educational toy. It's just a glorified sound card and really not worth wasting your time with.</p>
