|
|
@@ -33,6 +33,31 @@ Also see [Derek Jamison's demonstration](https://www.youtube.com/watch?v=iC5fBGw
|
|
|
|
|
|

|
|
|
|
|
|
+## Processing captures
|
|
|
+
|
|
|
+You can use the following simple Python script, for processing the captured waveforms, from flipperscope.
|
|
|
+
|
|
|
+```
|
|
|
+import matplotlib.pyplot as plt
|
|
|
+import numpy as np
|
|
|
+import struct
|
|
|
+
|
|
|
+fig, ax = plt.subplots()
|
|
|
+data = open("Sine.dat", "rb").read()
|
|
|
+y = [(float(x[0]) / 2500) * 2.5 for x in struct.iter_unpack("<H", data)]
|
|
|
+x = np.arange(len(y))
|
|
|
+
|
|
|
+ax.plot(x, y, label='Voltage')
|
|
|
+ax.set_xlabel('Sample')
|
|
|
+ax.set_ylabel('Voltage / V')
|
|
|
+ax.set_title('ADC Voltage')
|
|
|
+ax.set_ylim([0, 2.5])
|
|
|
+ax.legend()
|
|
|
+plt.show()
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
## To Do
|
|
|
|
|
|
* Customisable input pin
|