Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

TEA5767 FM Radio Library for Arduino
Author:  Simon Monk
Contact: evilgeniusauthor@gmail.com

Navigation


Current version

1.0 2013-07-12: Initial Release


History

1.0 2013-07-12: Initial Release


Description

This very simple library allows you to set the frequency of a TEA5767 FM Radio module. These modules use I2C and are available on eBay for just a few dollars each.

This library also served the purpose of acting as an example of how to write a library in my book: Programming Arduino Next Steps.


Download, install and import

Download here: Attach:TEA5767Radio.zip

Put the TEA5767Radio folder in "Documents/Arduino/libraries/".

For those struggling with the small connections on the low cost modules, there is an OSH design for a breakout board, also sold by http://www.monkmakes.com/#!/~/product/category=9634048&id=36087884

Here are the Open Source EAGLE design files for the Breakout Board: http://monkmakes.com/downloads/TEA5767_Breakout.zip

The library includes an example.


Creation

TEA5767Radio()

or

TEA5767Radio(int I2cAddress)


Function

void setFrequency(float frequency) Sets the frequency in MHz.


Example

  1.  
  2. #include <Wire.h>
  3. #include <TEA5767Radio.h>
  4.  
  5. TEA5767Radio radio = TEA5767Radio();
  6.  
  7. void setup()
  8. {
  9.   Wire.begin();
  10.   radio.setFrequency(93.0); // pick your own frequency
  11. }
  12.  
  13. void loop()
  14. {
  15. }


Information about this page

Part of AlphaBeta Libraries.
Last Modified: August 22, 2014, at 10:14 AM
By: