Browse Source

increase sample rate from 500 to 1000 Hz (measured 988 Hz)

Fabian Peter Hammerle 3 years ago
parent
commit
001d4ea4b0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      arduino-sketch.ino
  2. 1 1
      scope.grc

+ 1 - 1
arduino-sketch.ino

@@ -1,5 +1,5 @@
 // https://www.arduino.cc/reference/en/language/functions/time/micros/
-const unsigned long SAMPLE_INTERVAL_MICROSECONDS = 2000L;
+const unsigned long SAMPLE_INTERVAL_MICROSECONDS = 1000L;
 
 void setup() {
     // $ stty -F /dev/ttyUSB0 | grep speed

+ 1 - 1
scope.grc

@@ -72,7 +72,7 @@ blocks:
   id: variable
   parameters:
     comment: ''
-    value: 1e6 / 2000
+    value: 1e6 / 1000
   states:
     bus_sink: false
     bus_source: false