How to turn off TEA5767 radio?

Hi all.

followed: https://www.esp32learning.com/code/esp32-and-basic-tea5767-example.php

tested the simple code that works well for ESP32 DEV+TEA5767 FM Stereo Radio Module (link listed module) with an earphone.
Question is how to turned off the radio except plug out?
Thanks
Adam

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

You could use a "high side MOSFET switch" (google it) on the Vcc line to power off the module.

It's best to also disconnect the SDA and SCL lines to the module when removing power using a MOSFET switch; this prevents the radio tuner to be powered through these I2C lines. There's a number of ways you could do this; two additional MOSFET switches would work, as would two CMOS switches etc.

There's also a software 'mute' function that you can use by writing the appropriate command to the radio over I2C; the radio will still be powered, but the output will be muted so you don't hear anything. Maybe this is already sufficient. It's easier to do it this way because you don't need any additional hardware. See datasheet https://www.voti.nl/docs/TEA5767.pdf page 14

1 Like

Thanks.
I agree it is the way.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.