Home » ESP32 and basic TEA5767 example

ESP32 and basic TEA5767 example

by shedboy71

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

TEA5767

 

Parts Required

Here are the parts I used

 

Name Link
ESP32
TEA5767
Connecting cables

Connection

 

LOLIN32 Pin TEA5767 Pin
3v3 VCC
GND GND
21 SDA
22 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

 

// 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()
{
}

 

 

Links

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

 

You may also like

Leave a Comment

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.