Giter Club home page Giter Club logo

esp-idf-tea5767's Introduction

esp-idf-tea5767

TEA5767 FM Stereo Radio Driver for esp-idf.

I ported from here.

Hardware requirements

TEA5767 FM Stereo Radio Module.
I bought this on AliExpress about $4.

tea5767-1 tea5767-2

The module has a standard antenna, but if you want to use it in a room, you need a long antenna.
With a long antenna, you can get more signals.
I used an AC power cable as extended antena.
tea5767-3

Installation

git clone https://github.com/nopnop2002/esp-idf-tea5767
cd esp-idf-tea5767
idf.py set-target {esp32/esp32s2/esp32s3/esp32c3}
idf.py menuconfig
idf.py flash

Configuration

config-top config-tea5767

  • CONFIG_SCL_GPIO
    GPIO number(IOxx) to SCL.
  • CONFIG_SDA_GPIO
    GPIO number(IOxx) to SDA.
  • CONFIG_FM_BAND
    In US/EU it ranges from 87.5 MHz to 108 MHz.
    In Japan it ranges from 76 MHz to 91 MHz.
    Used when wrapping in a search.

Wireing

TEA5767 ESP32 ESP32-S2/S3 ESP32-C3
SCL -- GPIO22 GPIO4 GPIO19 (*1)
SDA -- GPIO21 GPIO3 GPIO18 (*1)
GND -- GND GND GND
VCC -- 3.3V 3.3V 3.3V (*2)

(*1)
You can change it to any pin using menuconfig.
But it may not work with other GPIOs.

(*2)
The PCB marking is +5V, but it works at 3.3V.

API

Refer to tea5767.h.

How to use

  • Search radio station
    Press the + key to search for radio stations upwards.
    Press the - key to search for radio stations downwards.

  • Preset radio station
    Press the * key to record the current radio station in NVS.
    At boot time, it read from NVS and set to the current Radio station.

  • Change frequence
    Press the D key to decrease the frequence by -1.0Mhz.
    Press the U key to increase the frequence by +1.0Mhz.
    Press the d key to decrease the frequence by -0.1Mhz.
    Press the u key to increase the frequence by +0.1Mhz.

  • Clear preset
    idf.py erase-flash

Reference

https://github.com/nopnop2002/esp-idf-fm-radio

esp-idf-tea5767's People

Contributors

nopnop2002 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

esp-idf-tea5767's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.