Bandpass Filter

See all articles from QZX v9 n3
Author(s): Leslie Varnicle (WA3QLW)
Publication: QZX
Pub Details: QZX v9 n3 (Volume 9, Issue 3)
Date: February 1991
Pages: 6

This program is the third of three which deal with the design of active filters. The three cases will help you design a high pass, a low pass, and a bandpass active filter. In each case there is an operational amplifier in the circuit. Just which one you use is not critical. It is also not critical at what voltage you run the amplifiers. However, if you do not want to change the circuits a bit, you should use a bipolar power supply. Anything between about 9 and 15 volts will do for the usual junk box op amp.

The program will work, but perhaps not quite like you expect it to. There are some difficulties with the lines 200-250. See if you can get them into a form which gives you a result that you like. An article in the last issue gave some ideas on how to modify these last lines.

  10 PRINT "BANDPASS ACTIVE FILTER"
20 PRINT "THE STAGE GAIN SHOULD BE LESS THAN 10"
30 PRINT "ENTER STAGE GAIN"
40 INPUT H
45 PRINT H
50 PRINT "ENTER THE CENTER FREQ IN HZ"
60 INPUT F
65 PRINT F
67 LET W = 2*PI*F
70 PRINT "ENTER THE Q"
90 INPUT Q
95 PRINT Q
100 PRINT "ENTER THE INPUT CAP (C2) IN UF"
110 INPUT C2
115 PRINT C2
120 LET C2 = C2/1000000
130 PRINT "ENTER FEEDBACK CAP (C1) IN UF
140 INPUT C1
145 PRINT C1
150 LET C1 = C1/1000000
165 LET R1 = Q/(H*W*C1)
170 LET T = R1/(Q*(C1+C2)*W)
180 LET B = R1 - 1/(Q*(C1+C2)*W
190 LET R2 = T/B
200 LET R3 = Q*(C2 + C1)/(C1*C1*W)
210 PRINT "R1 = ";R1;" OHMS"
220 PRINT "R2 = ";R2;" OHMS"
230 PRINT "R3 = ";R3;" OHMS"
240 PRINT "PRESS 1 TO CONTINUE"
250 IF INKEY$ = "" THEN GOTO 250
260 LET A$ = INKEY$
270 IF A$ = "1" THEN CLS
280 GOTO 10
290 IF A$ = "" THEN STOP
9998 SAVE "BANd"
9999 GOTO 10
Bandpass active filter circuit
Bandpass active filter circuit