Skip to main content

Popular posts from this blog

Digital Bandpass Filter FIR design - Python

The python code generates the Finite Impulse Response (FIR) filter coefficients for a lowpass filter (LPF) at 10 (Hz) cut off using firwin from scipy.  A highpass filter is then created by subtracting the lowpass filter output(s) from the output of an allpass filter. To do this the coefficients of the LPF are multiplied by -1 and 1 added to the centre tap (to create the allpass filter with subtraction). A second LPF is then created with a cutoff at 15 (Hz) and the bandpass filter formed by addition of the LPF and HPF coefficients. The program also generates a test sine wave of a given amplitude and power and to this noise from a Normal distribution is added.  The graph below shows the signal and nois, and the signal (green) after filtering. The input snr is approximately 3dB. The frequency response below shows the passband centered on 12.5 (Hz), the Nyquist frequency is 50 (Hz). from numpy import cos, sin, pi, absolute, arange from numpy.random import normal fr...

GNU Radio Waterfall and CW Filter

The following GNU radio application adds a waterfall spectrogram to the previous CW filter program. The plot show 4 CW signals in the audio band (lower sideband) at 7023 kHz. The 700Hz signal is filtered and output to the laptop headphones by the CW bandpass filter. The frequency display is shown after the script which is as follows: #!/usr/bin/env python from gnuradio import gr from gnuradio import audio from lpf_bpf_class import Bandpass from gnuradio.qtgui import qtgui from PyQt4 import QtGui import sys, sip     class cw_filter(gr.top_block):     def __init__(self):         gr.top_block.__init__(self)           sample_rate = 44100         out_rate = 8000         kaiser = Bandpass()         cw_flr = gr.fir_filter_fff(1, kaiser.bpftaps)         decimate = int...

Microwave Oven Transformer

Microwave ovens - The circuit shown is typical of bottom range microwave oven. Protection of the recifier diode and inrush current limiting is by a soft start circuit which puts a 10 watt 25 ohm resistor in the primary circuit for around a second. This slow start cct and the noise filter components are usually on a small pcb which is good without modification in home brew power supplies. The fan?, high voltage diode and transformer are useful for low voltage (eg 35v 30A - rewind the secondary) - picture shows a 700W transformer (output rating - transformer is >1kW rated) with the secondary removed and rewound with 2.5mm square mains wire to give 23v rms. After rectification with a 40A bridge rectifier and smoothing with 66,000uF @40V this gives a no load voltage of 31.6v measured. Note 23 x 1.414 = 32.5v minus two diode volt drops gives 31.3v. On full load with the 600W topband transmitter the volts drop to 20.9v (some mains volt drop with this measurement owing to shed being at...