Skip to content

Instantly share code, notes, and snippets.

@edy555
edy555 / cmuhardcopy.py
Last active June 2, 2018 17:09
Script to transfer file of hardcopy from R&S CMU200 and format conversion. Requires python-ivi package and wmf2png optionally.
#!/usr/bin/env python
import ivi
import sys
import os
import os.path
from optparse import OptionParser
p = OptionParser()
p.add_option('-v', '--verbose', dest="verbose", action='store_true',
help="print verbose.")
p.add_option('-d', '--device', dest="device", metavar="DEV",
@edy555
edy555 / pyaudio-rm.py
Last active December 13, 2015 01:11
Real time Audio RM (bipolar AM) example on PyAudio.
import pyaudio
import numpy as np
import time
CHANNELS = 1
RATE = 48000
p = pyaudio.PyAudio()
rm_freq = 10.0
@edy555
edy555 / SSB-Weaver-IIR-Filter-Design.ipynb
Last active January 5, 2016 17:21
ソフトウェア無線(CQ出版社インターフェース誌連載記事)で使用するデジタルフィルタの設計手順。jupyterのslideになっているので http://nbviewer.jupyter.org/gist/edy555/ef88c3709c5725c2637f からはプレゼン形式でも見ることが可能。
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@edy555
edy555 / gpsdo-dac-control-snippet.c
Last active October 12, 2015 06:14
GPSのPPS信号でOCXOの周波数調整をDACで制御するための適応フィードバックの実装抜粋。see http://ttrftech.tumblr.com/post/131004700971/
short phase_err;
short phase_err_int;
short duration_count;
short duration_exp;
#define REFERENCE 10000000L
static void
dac_control_init()
{
@edy555
edy555 / RiemannZeta.ipynb
Created June 2, 2015 21:51
ゼータ関数を描いてみたipython notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@edy555
edy555 / fmpi.c
Created March 31, 2015 22:45
old source code of fmpi.co for raspi fm tx hack
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <math.h>
#include <fcntl.h>
#include <assert.h>
#include <malloc.h>
#include <sys/mman.h>
#include <sys/types.h>
@edy555
edy555 / blink.html
Created December 2, 2014 06:00
FlashAirでLチカ4種類。html+javascript, python, ruby, shell script http://youtu.be/GXY_FRvI-vY
@edy555
edy555 / pickit3-osx10.9.txt
Created November 27, 2014 23:57
PICkit3 system_profiler SPUSBDataType on Marvericks
PICkit 3:
Product ID: 0x900a
Vendor ID: 0x04d8 (Microchip Technology Inc.)
Version: 0.02
Serial Number: DEFAULT_PK3
Speed: Up to 12 Mb/sec
Manufacturer: Microchip Technology Inc.
Location ID: 0xfd120000 / 4
Current Available (mA): 500
@edy555
edy555 / spectrum.py
Last active August 29, 2015 14:09
Sound Spectrum Display using Laser Projector and OpenLASE
#!/usr/bin/env python
import pyaudio
import pylase as ol
import numpy as np
import sys
import threading
chunk = 1024
#chunk = 2048
CHANNELS = 2