Skip to content

TEA5767 FM radio module via I2C, including frequency setting, PLL status, RSSI value retrieval and signal stereo mode detection.

License

Notifications You must be signed in to change notification settings

kerogs/KS_TEA5767

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The KS_TEA5767 library facilitates easy integration and control of the TEA5767 FM radio module via I2C communication. It includes functions for setting the frequency, retrieving RSSI values, detecting stereo mode, and checking PLL status, offering comprehensive capabilities for managing FM radio functionality in embedded systems.

img Static Badge

Installation

  1. Download the library as a ZIP file from the GitHub repository.
  2. Open the Arduino IDE.
  3. Go to Sketch > Include Library > Add .ZIP Library....
  4. Select the downloaded ZIP file.

List of functions

Function Name Input Parameter Returned Parameter Description (English)
getPLL None bool Checks if the PLL is locked (true for locked, false for unlocked).
getRSSI None int Returns the Received Signal Strength Indication (RSSI) value.
getRSSIdBm int rssi int Converts the RSSI value to dBm scale and returns it.
getStereo None bool Checks if the radio is in stereo mode (true for stereo, false for mono).
getHex None String Returns the status bytes received from TEA5767 in hexadecimal format.
getBin None String Returns the status bytes received from TEA5767 in binary format.
getDec None String Returns the status bytes received from TEA5767 in decimal format.
getASCII None String Converts the status bytes received from TEA5767 to ASCII characters. Non-printable characters are replaced with ".".
setFrequency float frequencyMHz None Sets the frequency of the TEA5767 module to the specified value in MHz.

Use the library

#include <Wire.h>
#include <KS_TEA5767.h>

KS_TEA5767 radio;

void setup() {
  Serial.begin(9600);
  radio.begin();  // KS_TEA5767 library initialization

  radio.setFrequency(104.5);  // Set frequency to 104.5 MHz
}

void loop() {
}

About

TEA5767 FM radio module via I2C, including frequency setting, PLL status, RSSI value retrieval and signal stereo mode detection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages