From 1081cec7f78f31b731c21504a956d5f7d3e17b06 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 8 May 2018 13:29:03 +0300 Subject: Initial talk slides --- talk.slides.html | 12100 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 12100 insertions(+) create mode 100644 talk.slides.html (limited to 'talk.slides.html') diff --git a/talk.slides.html b/talk.slides.html new file mode 100644 index 0000000..ba87abf --- /dev/null +++ b/talk.slides.html @@ -0,0 +1,12100 @@ + + + + + + + + + + + +talk slides + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+

Pulling Radio Data out of Thin Air

Pycon Israel 2018

+
+
+
+
+
+
+
+

Agenda

    +
  • What are radio waves?
  • +
  • Hardware radios
  • +
+ +
+
+
+
+
+
+
+

Radio Waves

static/dipole.gif

+ +
+
+
+
+
+
In [3]:
+
+
+
import numpy as np
+import matplotlib.pyplot as plt
+
+ +
+
+
+ +
+
+
+
In [4]:
+
+
+
modulator_frequency = 4.0
+carrier_frequency = 40.0
+modulation_index = 1.0
+size = 44100.0 * 2
+
+time = np.arange(size) / size
+modulator = np.sin(2.0 * np.pi * modulator_frequency * time) * modulation_index
+carrier = np.sin(2.0 * np.pi * carrier_frequency * time)
+
+product = np.zeros_like(modulator)
+for i, t in enumerate(time):
+    product[i] = np.sin(2. * np.pi * (carrier_frequency * t + modulator[i]))
+
+modulator = np.sin(2.0 * np.pi * modulator_frequency * time) * modulation_index
+amp = np.zeros_like(modulator)
+for i, t in enumerate(time):
+    amp[i] = np.sin(2. * np.pi * (carrier_frequency * t * modulator[i]))
+
+ +
+
+
+ +
+
+
+
In [5]:
+
+
+
plt.subplot(4, 1, 1)
+plt.title('Frequency Modulation')
+plt.plot(modulator)
+plt.ylabel('Amplitude')
+plt.xlabel('Modulator signal')
+
+plt.subplot(4, 1, 2)
+plt.plot(carrier)
+plt.ylabel('Amplitude')
+plt.xlabel('Carrier signal')
+
+plt.subplot(4, 1, 3)
+plt.plot(product)
+plt.ylabel('Amplitude')
+plt.xlabel('Output signal')
+
+plt.subplot(4, 1, 4)
+plt.plot(modulator * carrier)
+plt.ylabel('Amplitude')
+plt.xlabel('Output signal')
+plt.show()
+
+ +
+
+
+ +
+
+ + +
+ +
+ + + + +
+ +
+ +
+ +
+
+ +
+
+
+ + + + + + + -- cgit v1.3.1