Giter Site home page Giter Site logo

big12boy / tea5767 Goto Github PK

View Code? Open in Web Editor NEW
18.0 5.0 8.0 32 KB

Arduino Library for the TEA5767 Radio Module

License: GNU General Public License v3.0

C++ 100.00%
arduino arduino-library arduino-sketch radio radio-modules tea5767 library i2c i2c-bus i2c-device

tea5767's Introduction

TEA5767-Library

Arduino Library for the TEA5767 Radio Module

Supported Functions:

  • short: init(short minlvl) //Initialize Bus and search for Stations
  • bool: setFrequency(float frequency) //Set Radio Frequency
  • void: setMuted(bool muted) //Mute/Unmute Module
  • bool: setSearch(bool up, int level) //Search for Stations <= Currently not working
  • void: setStandby(bool stby) //Enable/Disable Standby Mode
  • void: setStereoNC(bool snc) //Enable/Disable Stereo Noise Cancelling
  • float: getFrequency() //Returns the current Radio Frequency
  • int: getReady() //Get current State (0=Nothing, 1=Found Station, 2=Reached Frequency Limit)
  • bool: isStereo() //Get if the Frequency support Stereo
  • short: getSignalLevel() //Get Signal Level (0-15)
  • int: findStations(short minlvl) //Search for available Stations
  • float: nextStation() //Go to next Station
  • float: previousStation() //Go to previous Station
  • short: getStations() //Get Number of Stations

How to install:

  1. Download ZIP
  2. Click Sketch => Include Library => Add .ZIP Library
  3. Select downloaded ZIP-File
  4. Try out the included examples!

How to connect the Module:

  • GND to GND
  • VCC to 5V (3.3V won't work perfectly well and cause random errors, like frequency shift)
  • SDA and SCL depend on your board, check Arduino-Wire

tea5767's People

Contributors

atek23 avatar big12boy avatar furkanamancali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tea5767's Issues

Hi, I couldn't get it to do anything.

Expected Behavior

I got it to compile and run, but nothing happened.

Current Behavior

Serial.print("hello: ");
radio.setFrequency(frequency); //Set Start Frequency
delay(20);
}

void loop() {
//Sweep
Serial.print("hello2: ");
if (frequency <= 108.00) {
//Get Data
bool stereo = radio.isStereo();
short lvl = radio.getSignalLevel();

Serial.print("hello3: ");
//Is it useable?
if (lvl >= minlvl && stereo) {
foundStation(frequency, lvl); //Print Station to Console
}
it printed hello2 and that was it.

Possible Solution

No idea. I just wanted to try the standby function since this thing only runs a few minutes a day but the Arduino is on all the time.

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Dev. Environment and Version:
  • Operating System and version:
  • Link to your project (optional):
    Arduini wifi rev2 with IDE version 1.8.13

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.