Wemos and basic TEA5767 example

The TEA5767HN is a single-chip electronically tuned FM stereo radio for low-voltage applications with fully integrated Intermediate Frequency (IF) selectivity and demodulation. The radio is completely adjustment-free and only requires a minimum of small and low cost external components. The radio can be tuned to the European, US, and Japanese FM bands

At first I bought just the module and found it impossible to work with due to its small size, then I discovered this handy module which included the ability to connect speakers or headphone, an antenna connection and most usefully it has an onboard audio amplifier which removes the need for connecting one of these to the TEA5767. The module simply requires power and uses the I2C connection to your Arduino. Here is a picture of the module

Here are some of the key features of the module

Power Supply: 5V
Frequency range :76-108MHZ
You can plug the antenna port directly
I2C bus communication
Board uses the TDA1308 as audio amplifier
Onboard 3.5MM audio interface ,it can be directly connected to the headphone amplifier and so on.

 

tea5767_1

Connection

Wemos Pin TEA5767 Pin
3v3 VCC
GND GND
D2 SDA
D1 SCL

 

Code

This is a simple code example, which I have set to a local radio station where I live for testing. it requires the TEA 5767 library. There are other libraries available we will look at them later

https://github.com/simonmonk/arduino_TEA5767

[codesyntax lang=”cpp”]

// TEA5767 Example

#include <Wire.h>
#include <TEA5767Radio.h>

TEA5767Radio radio = TEA5767Radio();

void setup()
{ 
  Wire.begin();
  radio.setFrequency(102.8); // pick your own frequency
}

void loop()
{
}

[/codesyntax]

 

Links

Here is the datasheet – www.voti.nl/docs/TEA5767.pdf

TEA5767 FM Stereo Radio Module for Arduino 76-108MHZ With Free Cable Antenna