KT0803k Digital Stereo FM Transmitter circuit

KT0803 Digital Stereo FM Transmitter circuit

KT0803k CH32V003 Digital Stereo FM Transmitter circuit, With the portable Li-Ion battery-powered Stereo FM Transmitter, you can transmit audio of any kind. Simply plug your audio source into the 3.5 mm audio jack, set the desired frequency, and then tune any standard FM radio receiver to receive the signal. This device is equipped with cost-effective components, including a CH32V003J4M6 32-bit RISC-V microcontroller, a KT0803K/L transmitter IC, a 128×32 pixel OLED display (SSD1306), and a Li-Ion battery charger (TP4054).


Schematic Kt0803 Digital Stereo Fm Transmitter Circuit

The CH32V003 Family of 32-bit RISC-V Microcontrollers
The CH32V003 series is a collection of industrial-grade general-purpose microcontrollers that utilize the QingKe RISC-V2A core design supporting the RV32EC instruction set. These microcontrollers are equipped with various features such as a 48MHz system main frequency, 16KB flash, 2KB SRAM, wide voltage support, a single-wire serial debug interface, low power consumption, and an ultra-small package. Additionally, the CH32V003 series includes a built-in set of components including a DMA controller, a 10-bit ADC, op-amp comparators, multiple timers, and standard communication interfaces such as USART, I2C, and SPI.

KT0803K or KT0803L Radio-Station-on-a-Chip
The KT0803K/L is a low cost Monolithic Digital Stereo FM Transmitter, designed to process high-fidelity stereo audio signal and transmit modulated FM signal over a short range. The KT0803K/L features dual 20-bit ΔΣ audio ADCs, a high-fidelity digital stereo audio processor and a fully integrated radio frequency (RF) transmitter. An on-chip low-drop-out regulator (LDO) allows the chip to be integrated in a wide range of low-voltage battery-operated systems with power supply ranging from 1.6V to 3.6V. The KT0803K/L can be controlled via its I²C interface.

TP4054 Li-Ion Battery Charge IC
The TP4054 is a complete constant-current/constant-voltage linear charger for single cell lithium-ion batteries. Its small package and low external component count make the TP4054 ideally suited for portable applications.

ME6209 3.3V Linear Voltage Regulator
The ME6209 series are a group of positive voltage output, three–pin regulators, that provide a high current (max 250mA) even when the input/output voltage differential is small (80mV dropout voltage). Low-power consumption (3µA quiescent current) and high accuracy (+/-2%) is achieved through CMOS technology. They allow input voltages as high as 18V.

Building Instructions
Solder all components to the PCB. Solder the wire antenna to the corresponding pad on the board. A 75 cm (30″ = λ / 4) long 28AWG flexible silicone insulated wire works very well.

Kt0803 Digital Stereo Fm Transmitter Circuit 2

3D print the case. Glue the battery into the case with double-sided tape. Thread the wire antenna through the small hole in the housing.

Connect the battery to the JST connector on the board. Pay attention to the correct polarity, unfortunately there is no standard here! Place the board on the case and screw it with four M2x5mm self-tapping screws.

Compiling and Uploading Firmware
Programming and Debugging Devices
To program the CH32V003 microcontroller, you will need a special programming device which utilizes the proprietary single-wire serial debug interface (SDI). The WCH-LinkE (pay attention to the “E” in the name) is a suitable device for this purpose and can be purchased commercially for around $4. This debugging tool is not only compatible with the CH32V003 but also with other WCH RISC-V and ARM-based microcontrollers.

To upload the firmware, you need to ensure that the FM Transmitter is switched off or the battery is removed. Then, you should make the following connections to the WCH-LinkE:

WCH-LinkE    FM Transmitter
+-------+      +-------+
|  SWDIO|      |DIO    |
|    GND| ---> |GND    |
|    3V3| ---> |3V3    |
+-------+      +-------+

If the blue LED on the WCH-LinkE remains illuminated once it is connected to the USB port, it means that the device is currently in ARM mode and must be switched to RISC-V mode initially. There are a few ways to accomplish this:

You can utilize the Python tool called rvmode.py, which is provided in the software/tools folder.
Alternatively, you can select “WCH-LinkRV” in the software provided by WCH, such as MounRiver Studio or WCH-LinkUtility.
Another option is to hold down the ModeS button on the device while plugging it into the USB port.

More information can be found in the WCH-Link User Manual.

Compiling and Uploading (Linux)
To use the WCH-LinkE on Linux, you need to grant access permissions beforehand by executing the following commands:

echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="8010", MODE="666"' | sudo tee /etc/udev/rules.d/99-WCH-LinkE.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="8012", MODE="666"' | sudo tee -a /etc/udev/rules.d/99-WCH-LinkE.rules
sudo udevadm control --reload-rules

Install the toolchain (GCC compiler, Python3, and PyUSB):

sudo apt install build-essential libnewlib-dev gcc-riscv64-unknown-elf
sudo apt install python3 python3-pip
python3 -m pip install pyusb

Switch off the FM Transmitter or remove the battery. Connect the FM Transmitter via the 3-pin PROG header to the WCH-LinkE programming device. Open a terminal and navigate to the folder with the makefile. Run the following command to compile and upload:

make flash

If you want to just upload the pre-compiled binary, run the following command instead:

python3 ./tools/rvprog.py -f transmitter.bin

Uploading Firmware Binary (Windows/Mac)
WCH offers the free but closed-source software WCH-LinkUtility to upload the precompiled hex-file with Windows. Select the “WCH-LinkRV” mode in the software, open the transmitter.hex file and upload it to the microcontroller.

Alternatively, there is a platform-independent open-source tool called minichlink developed by Charles Lohr (CNLohr), which can be found here. It can be used with Windows, Linux and Mac.

If you have installed Python3 and pyusb on your system, you can also use the included Python tool rvprog.py:

python3 ./tools/rvprog.py -f transmitter.bin

Operating Instructions

  • Make sure that the wire antenna is laid as straight as possible horizontally or vertically.
  • Turn on the transmitter using the power switch.
  • Use the OK key to switch between transmitter frequency and audio gain display/control mode.
  • Use the UP or DOWN key to increase/decrease frequency/gain.
  • If the battery is weak, recharge it via the USB-C port.

Bom KT0803k Digital Stereo FM Transmitter circuit

Value Name Description Quantity
5k1 (512) R1,R2 0603 2
1k (102) R3 0603 1
2k (202) R4 0603 1
10k (103) R5,R6,R7 0603 3
100n C1 0603 1
18p C2,C3 0603 2
33n C4,C5 0603 2
4u7 C6 0603 1
10u C7,C8,C9 0603 3
CH32V003J4M6 U1 SOP-8_150MIL – Microcontroller 1
KT0803K U2 SOP-16_150MIL – Fm transmitter 1
ME6209A33M3G U3 SOT-23-3_W – 3.3v Voltage regulator 1
OLED 0.91 OLED1 I2C OLED 0.91 – Display Oled 1
CHARGE LED1 LED_0603 – Red led 1
TP4054 U4 SOT-23-5_BR – Battery Charger 1
ANT H1 PAD_1 1
SWIO H2 210S-3×1/2.54 1
6×6*6 mm OK, DOWN, UP KEY-6.0×6.0 3
32.768kHz X1 OSC-SMD_3215 1

Download files.. PCB in Gerber, PNG and PDF




Case 3D

References, Links and Notes

Source: https://github.com/wagiminator/CH32V003-FM-Transmitter

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

About the author
Xtronic.org blog author. Electronics technician for the technical school of Brasilia - Brazil. Interested in electronics, circuits and technology in general.

2 thoughts on “KT0803k Digital Stereo FM Transmitter circuit”

Leave a Comment

Exit mobile version