Build riscvemu on OSX
$ curl -O http://bellard.org/riscvemu/riscvemu-2016-12-20.1.tar.gz
$ tar xfz riscvemu-2016-12-20.1.tar.gz
$ cd riscvemu-2016-12-20.1
$ patch -p0 < ../riscvemu-2016-12-20.1-osx.patch
$ make
$ curl -O http://bellard.org/riscvemu/riscvemu-2016-12-20.1.tar.gz
$ tar xfz riscvemu-2016-12-20.1.tar.gz
$ cd riscvemu-2016-12-20.1
$ patch -p0 < ../riscvemu-2016-12-20.1-osx.patch
$ make
local radio = require('radio') | |
radio.CompositeBlock():connect( | |
radio.RtlSdrSource(88.5e6 - 250e3, 1102500), -- RTL-SDR source, offset-tuned to 88.5 MHz - 250 kHz | |
radio.TunerBlock(-250e3, 200e3, 5), -- Translate -250 kHz, filter 200 kHz, decimate 5 | |
radio.FrequencyDiscriminatorBlock(1.25), -- Frequency demodulate with 1.25 modulation index | |
radio.LowpassFilterBlock(128, 15e3), -- Low-pass filter 15 kHz for L+R audio | |
radio.FMDeemphasisFilterBlock(75e-6), -- FM de-emphasis filter with 75 uS time constant | |
radio.DownsamplerBlock(5), -- Downsample by 5 | |
radio.PulseAudioSink(1) -- Play to system audio with PulseAudio |
local radio = require('radio') | |
radio.CompositeBlock():connect( | |
radio.RtlSdrSource(88.5e6 - 250e3, 1102500), -- RTL-SDR source, offset-tuned to 88.5 MHz - 250 kHz | |
radio.TunerBlock(-250e3, 200e3, 5), -- Translate -250 kHz, filter 200 kHz, decimate 5 | |
radio.FrequencyDiscriminatorBlock(1.25), -- Frequency demodulate with 1.25 modulation index | |
radio.LowpassFilterBlock(128, 15e3), -- Low-pass filter 15 kHz for L+R audio | |
radio.FMDeemphasisFilterBlock(75e-6), -- FM de-emphasis filter with 75 uS time constant | |
radio.DownsamplerBlock(5), -- Downsample by 5 | |
radio.PulseAudioSink(1) -- Play to system audio with PulseAudio |
#define SI5351_PLL_A 0 | |
#define SI5351_PLL_B 1 | |
#define SI5351_MULTISYNTH_DIV_4 4 | |
#define SI5351_MULTISYNTH_DIV_6 6 | |
#define SI5351_MULTISYNTH_DIV_8 8 | |
#define SI5351_R_DIV_1 (0<<4) | |
#define SI5351_R_DIV_2 (1<<4) | |
#define SI5351_R_DIV_4 (2<<4) | |
#define SI5351_R_DIV_8 (3<<4) |
#!/usr/bin/env python | |
import serial | |
import numpy as np | |
import pylab as pl | |
dev = '/dev/cu.usbmodem401' | |
ser = serial.Serial(dev) | |
def fetch_data(): | |
ser.write("data 0\r") |
#!/usr/bin/env python | |
# | |
# RTL FM Receiver - Python based realtime RF signal processing experiment | |
# @edy555 2016 | |
# requirement: numpy, scipy, pyaudio, pyrtlsdr | |
import numpy as np | |
import scipy.signal | |
import array | |
import rtlsdr |