auto_bpf_arduino

Auto Band Pass Filter controlled by Arduino

View on GitHub

Band Pass Filter controlled by Arduino

It is a HF band pass filter controlled by Arduino. It is designed for HF receivers. With this project, you can use a set of up to four HF bandpass filters that can be selected by Arduino. To do that you will need just two digital Arduino pins.

This project includes a bandpass filter design based on “Softrock Ensemble RX II (HF/LF) Auto Band Pass Filters“, an Arduino Library to control the filter, documentation and examples.

Mr. Jim Regan, W0CHL, did a great job on auto bandpass filter. I recommend his design. Please, check Reagan’s documentation on https://github.com/JimReagans/Si4735-radio-PCB-s-and-bandpass-filter

All Arduino source code found here can be freely distributed using the MIT Free Software model.

Copyright (c) 2019 Ricardo Lima Caratti.

Be a member

There is a Facebook group called Si47XX for Radio Experimenters where the purpose is exchanging experiences with projects based on Silicon Labs SI47XX IC family. You will be welcome to the group Si47XX for Radio Experimenters.

Contents

  1. Preface
  2. Schematic
  3. Customizing LC bandpass filter L and C pairs calculation
  4. Arduino Driver for Auto Band Pass filters
  5. Photos
  6. References

Preface

Originally based on the “Softrock Ensemble RX II (HF/LF) Auto Band Pass Filters“ by WB5RVZ, this project uses an Arduino controller instead an ATtiny85. I have developed an Arduino Library to control the Auto Band Pass filter device. You can see that on Arduino/pu2clr_autobpf_driver folder.

The RF input and output of the original filter has been modified to be easily attached to the SI4735, AKC6955, KT0915 and others DSP based receivers istead the SoftRock Ensemble RX II device.

The main idea of this project is to allow the same Arduino that controls a receiver based on the SI473X, AKC6955, KT0915 or BK108X devices select also the correct bandpass filter depending on the selected reception band. The Arduino sketch must have a band table with the appropriate filter information for the band.

Mr. Jim Regan, W0CHL, did a great job on auto bandpass filter. I recommend his design. Please, check Reagan’s documentation on https://github.com/JimReagans/Si4735-radio-PCB-s-and-bandpass-filter.

Ricardo's SI4732 receiver prototype 01

The videos below show an example of the Auto bandpass filter working.

The two videos below were made using an Arduino Pro Mini 3.3V (8MHz) as the controller.

The video below shows the test of the Auto bandpass filter cut frequencies

HF Auto Bandpass filter controlled by Arduino (first test)


The video below shows the Auto bandpass filter working with an SI4732-A10 based receiver

HF auto bandpass filter controlled by Arduino (real test)

MIT License

Copyright (c) 2019 Ricardo Lima Caratti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE ARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


SCHEMATIC

The schematic below uses two FST3253 or two SN74CBT3253D device switches to select one of four bandpass filters. It shows a set of four band pass filters (T section bandpass filter setup). Two Arduino pins are used to select the right filter depending on frequency.

Bandpass filter schematic

Customizing LC bandpass filter L and C pairs calculation

You can try other filters setup by calculating the components of each band pass filter. The basic circuit below represents a generic band pass filter used by this project.

Generic LC Band Pass Filter Circuit

LC bandpass filter L and C pairs calculation

LC filter formula

Where:

To check the most appropriate toroid for the inductor as well as the number of turns, see Amidon iron powder toroids calculator

Toroids and Inductor Formula

You can build your own inductor by using toroids. The formula to do that is shown below.

Toroid Inductor formula

Where AL and N are the factor and number of turns respectively.

Toroids parameters:

There are great tools to calculate the inductors by using toroids. See the online tool shown below.

Toroids online calculator

Go to Amidon iron powder toroids calculator

Arduino Driver for Auto Band Pass filters

If you are using Arduino, you can add in your sketch folder the files AutoBPF.h and AutoBPF.cpp. These files integrate the Arduino library for the Auto bandpass filter filter of this project. Check the folder Arduino/pu2clr_autobpf_driver.

In your main sketch you have to declare the AutoBPF library as shown below.

#include "AutoBPF.h"    // Bandpass filter library

AutoBPF bpf;            // Declare the Auto bandpass filter class.

void setup()
{
   .
   .
   .
    bpf.setup(4, 5);    // Uses the Arduino pins 4 and 5 to select the desired filter
    bpf.setFilter(0);   // Setects the first filter of the Auto Band Pass Filter.
    .
    .
    bpf.setFilter(3);   // Setects the last filter of the Auto Band Pass Filter.
    .
    .
}

Photos

The photos below show Jim Reagan’s board design of the Auto Band Pass filter. You can find more details about it on https://github.com/JimReagans/Si4735-radio-PCB-s-and-bandpass-filter.


Jim Reagan's board photo 01


Jim Reagan's board photo 02



The photos below show the SI4732 based receiver with the Auto Band Pass Filter controlled by Arduino.


Ricardo's SI4732 receiver prototype 01


Ricardo's SI4732 receiver prototype 02

Know more about DSP receivers controlled by Arduino

  1. PU2CLR Si4735 Library for Arduino. This library was built based on “Si47XX PROGRAMMING GUIDE; AN332” and it has support to FM, AM and SSB modes (LW, MW and SW). It also can be used on all members of the SI47XX family respecting, of course, the features available for each IC version;
  2. PU2CLR SI4844 Arduino Library. This is an Arduino library for the SI4844, BROADCAST ANALOG TUNING DIGITAL DISPLAY AM/FM/SW RADIO RECEIVER, IC from Silicon Labs. It is available on Arduino IDE. This library is intended to provide an easier interface for controlling the SI4844.
  3. PU2CLR AKC695X Arduino Library. The AKC695X is a family of IC DSP receiver from AKC technology. The AKC6955 and AKC6959sx support AM and FM modes. On AM mode the AKC6955 and AKC6959sx work on LW, MW and SW. On FM mode they work from 64MHz to 222MHz.
  4. PU2CLR KT0915 Arduino Library. The KT0915 is a full band AM (LW, MW and SW) and FM DSP receiver that can provide you a easy way to build a high quality radio with low cost.
  5. PU2CLR RDA5807 Arduino Library. The RDA5807 is a FM DSP integrated circuit receiver (50 to 115MHz) with low noise amplifier support. This device requires very few external components if compared with other similar devices. It also supports RDS/RBDS functionalities, direct auto gain control (AGC) and real time adaptive noise cancellation function.
  6. PU2CLR SI470X Arduino Library. It is a Silicon Labs device family that integrates the complete functionalities for FM receivers, including RDS (Si4703).

More Arduino Projects by author

References

  1. SN74CBT3253DUAL 1-OF-4 FET MULTIPLEXER/DEMULTIPLEXER
  2. FST3253Dual 4:1 Multiplexer/Demultiplexer Bus Switch
  3. Constant-K LC Band Pass Filter Circuit Design & Calculations
  4. LC Filters Design Tool
  5. Bandpass LC Filters
  6. Ensemble RX II (HF/LF)
  7. Ensemble RX II (HF/LF) Auto Band Pass Filters