This is an Arduino Library to control the KT0915 DSP receiver from KTMicro. The KT0915 is an integrated circuit that provides full band receiver on FM and AM (MW/SW/LW).
Copyright (c) 2020 Ricardo Lima Caratti.
Contact: pu2clr@gmail.com.
If you find this project useful, consider making a donation so that the author can purchase components and modules for improvements and testing of this library. Click here to donate
I hold a Master's degree in Educational Technology from the Federal University of Ceará, where I delved into the ways technology can enhance learning experiences. My passion for computer science led me to specialize in it, focusing on Distributed Systems Development with an Object-Oriented approach, at the University of Brasília. My academic journey began with a Bachelor's degree in Information Systems from the União Pioneira de Integração Social (UPIS-Brasília). Outside the classroom, my main hobbies are electronics and Amateur Radio.
Be a member of Facebook group DSP receivers for hobbyists
If you find this project useful, consider making a donation so that the author of this library can purchase components and modules for improvements and testing of this library. Click here to donate.
- Preface
- Your support is important
- Library Features
- MIT License
- Library Installation
- About KT0915 DSP radio
- SCHEMATIC
- API Documentation
- Source code - Examples
- Videos
- References
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. This device, will surprise hobbyists and experimenters with its simplicity.
In this document you will see Arduino source codes, schematics, examples and tips to help you to build a receiver based on Arduino board and the KT0915 device. The project and examples shown here do not intend to be a real receiver for exigent listener. However, it is possible to start with it and after add some improvements. On the other hand, with the simple circuits shown here, the experimenter may be surprised with its performance.
{% include video01.html %}
PU2CLR KT0915 Arduino LIbrary - AM (MW and SW) and FM receiver with KT0915
{% include tutorial.html %}
- 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;
- 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.
- 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.
- 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.
- PU2CLR BK108X. The BK1086 and BK1088 are DSP receivers from BAKEN. The BK1088 is a BROADCAST FM and AM (LW, MW and ) RECEIVER and BK1086 is a subset of the BK1088 (it does not have LW and SW acording to the Datasheet).
- 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.
- PU2CLR SI470X Arduino Library. It is a Silicon Labs device family that integrates the complete functionalities for FM receivers, including RDS (Si4703).
- PU2CLR MCP23008. It is an Arduino Library to control the MCP23008/MCP23S08 8-Bit I/O Expander. The MCP23008 device provides 8-bit, general purpose, parallel I/O expansion. It can be controlled via I2C bus applications. It is a great and inexpensive device that allow you to add more devices to be controlled by your Arduino board via I2C protocol.
- PU2CLR - PCF8574 Arduino Library. It is an Arduino Library to control the PCF8574 8-Bit I/O Expander. The PCF8574 device provides 8-bit, general purpose, parallel I/O expansion. It can be controlled via I²C bus applications. It is a great and inexpensive device that allow you to add more peripherals to be controlled by your Arduino board via I²C protocol.
- QN8066 FM DSP RX/TX Arduino Library. An easy-to-use interface for controlling the QN8066 FM transceiver and receiver.
- Multipurpose signal generator with SI5351. It is a multipurpose signal generator controlled by Arduino. This project uses the SI5351 from Silicon Labs. The Arduino sketch is configured to control the SI5351 with three channels from 32.768KHz to 160MHz and steps from 1Hz to 1MHz.
- Shortwave Arduino Transmitter. This project is about a shortwave transmitter from 3 MHz to 30 MHz. It uses the SI5351 oscillator from Silicon Labs controlled by Arduino. Also, you can use it with a crystal oscillator. In this case, you will not need the SI5351 device and Arduino.
- Android and iOS Bluetooth Remote Control for PU2CLR Arduino Library DSP receivers. This project is an extension of the Arduino library projects for: SI4735; AKC6959 and KT0915. It is a simple example that shows a way to use your smartphone as a remote control via Bluetooth. In order to follow the steps presented here, I am assuming that you have some knowledge in development for mobile devices. Also, you will need to be familiar with the Javascript programming language. The development environment used by this project is the Apache Cordova. Cordova is a open-source mobile development framework that allows you to develop cross-platform applications. That means you can code once and deploy the application in many system, including iOS and Android. Cordova provides an easy way to develop for iOS and Android.
- 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.
If you would like to support this library development, consider joining this project via Github. Alternatively, make suggestions on new features and report errors if you find them. Thank you!
This library uses the I²C communication protocol and implements most of the functions offered by the KT0915 (BROADCAST AM / FM / SW / LW RECEIVER).
The main features of this library are listed below.
- Open Source. It is free. You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. See MIT License to know more;
- Built based on KT0915 stereo FM / TV / MW / SW / LW digital tuning radio;
- C++ Language and Object-oriented programming. You can easily extend the AKC695X class by adding more functionalities;
- Available on Arduino IDE (via Manage Libraries). Easy to install and use;
- Cross-platform. You can compile and run this library on most of board available on Arduino IDE (Examples: ATtiny85, boards based on ATmega328 and ATmega-32u4, ATmega2560, ARM Cortex, STM32, Arduino DUE, ESP32 and more);
- Simplifies projects based on KT0915 IC;
- Support to 32.768KHz and external reference clock;
- Support to audio controlled by the MCU (Arduino) or potentiometer;
- Real time FM stereo or mono indicator;
- FM stereo or mono selecting;
- Real time signal level reading;
- Real time AM and FM carrier to noise ratio information (dB).
- Bandwidth selection for AM;
- Custom band support;
- More than 40 functions implemented.
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.
You can install this library on your Arduino environment using different methods. The best ways to do that are described below.
{% include libinstalling.html %}
// TODO
According to "Monolithic Digital FM/MW/SW/LW Receiver Radio on a Chip(TM); KT0915" document from KTMicro, "the KT0915 is a fully integrated full band AM/FM digital radio receiver IC with patented technologies that offer full band FM/MW/SW/LW functionality, high quality audio performance, simple design and low BOM cost. The direct frequency and volume control interface help custumers to maintain the classic looks of their existing products.
Thanks to the patented tuning technology, the receiver maintains good signal reception with short antenna. The chip consumes only 22mA current and can be powered by 2 AAA batteries. Another useful feature is that the volume and channel setup can be preserved in standby mode without external memories. KT0915 supports a wide range of reference clocks from 32.768KHz to 26MHz, hence can share system clocks with a varieties of MCUs further reducing the system BOM cost.
With high audio performance, fully integrated features and low BOM cost, KT0915 is ideal for various FM/MW/SW/LW applications and products".
- Worldwide full band FM/MW/SW/LW support FM: 32MHz-110MHz
- FM: 32MHz-110MHz
- MW: 500KHz-1710KHz
- SW: 1.6MHz~32MHz
- LW: 150KHz ~ 280KHz
- Fully integrated frequency synthesizer with no external component
- High Sensitivity
- 1.6uVEMF for FM
- 16uVEMF for AM
- High Fidelity
- SNR (FM/AM): 60dB/55dB
- THD: 0.3%
- Low supply voltage: 2.2V to 3.6V, can be supplied by 2 AAA batteries
- Automatic antenna tuning
- Adjustable AM channel filters (2k/4k/6KHz)
- Embedded FM SNR meter
- Fast seek/Tune
- Integrated stereo headphone driver I²C control interface for MCU
- Support traditional dial and digital key for frequency tuning and volume control
- Memorize channel and volume in standby mode
- Low Supply Current - 22mA (operating) <15uA (standby)
- Support both 32.768KHz and 38KHz crystal
- Support continuous reference frequency from 32.768KHz to 26MHz
Source: "Monolithic Digital FM/MW/SW/LW Receiver Radio on a Chip(TM); KT0915" document from KTMicro
Pin Number | Pin Name | Description |
---|---|---|
1 | CH | Channel Adjustment. Used to deal with mechanical tune option |
2 | DVSS | Digital Ground |
3 | ROUT | Righ channel audio output |
4 | LOUT | Left channel audio output |
5 | AVSS | Analog ground |
6 | AVDD | Power Supply |
7 | XI/RCLK | Crystal input or reference clock input setup |
8 | XO | Crystal Output |
9 | ENABLE | Chip enable. Tied to an internal 600kohm pull down resistor |
10 | AMINN | AM RF negative input |
11 | AMINP | AM RF positive input |
12 | RFINP | FM RF input |
13 | RFGND | RF ground |
14 | SCL | SCL of I²C bus. Tied to an internal 47kohm pull-up resistor |
15 | SDA | SDA of I²C bus. Tied to an internal 47kohm pull-up resistor |
16 | VOL | Volume adjustment. Used to deal with mechanical volume control |
The KT0915 can be configured to deal with mechanical tuning via a variable resistors. For example, you can use a variable resistor to control the audio volume and another to tuninig the receiver. This resource is enabled by setting the internal register GPIOCFG (Address 0x1D) of the device. The dial can be a variable resistor with the tap connected to CH and VOL as well. The divided voltage at the tap is processed by the internal KT0915 analog to digital converter (ADC). Finally, the converted datas are stored into the internal registers of the KT0915 device.
By default, this library the tune and volume are conttrolled by the MCU (Arduino). However, you can sets the mechanical feature by calling setTuneDialModeOn and setVolumeDialModeOn. See API Documentation.
See KT0915 - Monolithic Digital FM/MW/SW/LW ReceiverRadio-on-a-Chip™; pages: 8, 9, 10 and 20.
You can use the Typical Application Circuit suggested by the KTMicro. This circuit can be found in the document KT0915-Monolithic Digital FM/MW/SW/LW Receiver Radio-on-a-Chip. The main porpuse of this prototype below is testing de KT0915 Arduino Library. It does not intend to be a real radio for exigent listener. However, it is possible to start with it and after include some devices to improve, for example, its sensibility beyond other desired features. The schematic below does not use the ferrite antenna as suggested by KTMicro and no front-en as well. See KT0915 - Monolithic Digital FM/MW/SW/LW ReceiverRadio-on-a-Chip™; page 24.
The KT0915 is a 3.3V part. If you are not using a 3.3V version of Arduino, you have to use a kind of 5V to 3.3V bidirectional converter. It is important to say that just power the KT0915 device with 3.3V from Arduino board is not enough. You have to be aware that the Arduino that operates with 5V, the digital pins and the I²C bus will send 5V signals to the KT0915 device. That configuration can make the system unstable or damage the device.
The table below shows the component parts used to build the receiver prototype based on KT0915
Components | Value | Description |
---|---|---|
C1 | 10uF | Ceramic or tantalum capacitor |
C2 | 100nF | Ceramic or tantalum capacitor |
C3, C4 | 22pF | Supply decoupling capacitor - Ceramic or tantalum capacitor |
C5, C6 | 10uF | Electrolytic or tantalum capacitor |
C7 | 100nF | AC coupling capacitor |
Q1 | 32.768KHz | Crystal |
R1, R2 | 10K | I²C buss Pull up ristors |
Arduino | Pro Mini | 3.3V 8Mhz |
KT0915 | DSP | FM and AM receiver |
VCC | 3.3V | Baterry |
PU2CLR KT0915 Arduino LIbrary - First Test PU2CLR KT0915 Arduino Library - Sound testing