Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kerogs/ks_tea5767

TEA5767 FM radio module via I2C, including frequency setting, PLL status, RSSI value retrieval and signal stereo mode detection.
https://github.com/kerogs/ks_tea5767

arduino library sourcekit tea5767

Last synced: about 12 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

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](https://img.shields.io/badge/KSInfinite-4e42d4.svg?style=for-the-badge&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA0CAYAAAA62j4JAAAFaUlEQVRogc2bCahWRRTHf+ZuoZVJUlZWlgiKJWpCJWJ7iBbZvmgokaglLShBCEVpJhEGSSJB5dIiGC1ie5hWlpTmizClVSQSwtKe2lP/cV7nyufX+5Y7c+/9/MP94N2Zc2bm3Jkz/zlzXjtJG0mPycCGALly3Ao8WKFsP7C3iuwh4CtgpuvpAXwCfONl9UFhGCWJyOd6SQcD2zdsl3SmpFll73+XtFjSyHr61ygDjJX0T+Tg+0maVqPeJkk3SGp3NBlgdOTgd0oaJGlKCpkvJQ1rqz/HZLCO0+Ai4C2gY6D8LmA0MBh4NoXcUOBzYE5520UaYBjwNtA1UP4v4EpgAPBCgLyNdRbwEdC79GURGASsAroHtrXXB38ysCSy3xcCnwHnFGWAfsC7wEmB8jb4MT5zXotYPqXoC3xqH6ZDBsqqoQ/wcemUS4kW4DrgALAa6JRh3+yDLM/TAL198KcGytvgxwN/+AwK9R2V8CNwTV4G6AW8B5wdKG9MboJ3ck2E76iEJuAKYEcePqCHe/uBgfIC7gCMon8IHF9SZg5wpE/fnsBw4DFgZwr95gAvtsH/11oYKhGhbpLWRpAcOcHp52yvFNOr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tAawtQW+PIk1J6VNafPCvlxc0IiS2wT17KMZ5+tyEGlGkBHZlNgp4uc3SwD00Nl2+Q505AZWwx7NA5teoM0dS9zxuh7P4h4n+fqwOhRnw2DaCMN9Kul/SCfX0w6jwpoCpWHqhEQpzhhboDPXqnT2H2Na2LYfvPKnSLl3qA/AvAbrS2uRVStYAAAAASUVORK5CYII=)
![Static Badge](https://img.shields.io/badge/arduino-%2300878F?style=for-the-badge&logo=arduino&logoColor=fff)

## Installation

1. Download the library as a ZIP file from the [GitHub repository](https://github.com/yourusername/KS_TEA5767).
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

```c++
#include
#include

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

```