loading
Picture of FM Radio the easy way
module1.png
imagejpeg 4.jpg
imagejpeg_3.jpg

Recently I bought an FM Reciver from ebay for about $3 is a RDA5807 from EIModule, no offense but their documentation is useless.  How ever it has an I2C interface and its compatible with the TEA5767. Sorry about the pics using my cellphone.

 

 

 

Specifications

(1) RDA5807 FM Radio Module

A. Input Power2.7~3.6V

B. Frequency Range: 87.5~108MHz

C. 32Ω Load Audio Output. Can drive earphone directly

D. Control Interface: I2C

E. 3.5mm Audio Jack for audio output

F. DIP28

 

(2) Arduino (mega in this case)

 

(3) Jumper wires

 

(4)Headphones or 3.5mm audio cable to drive an amplifier

 

 

 

Step 1: The Wiring

Picture of The Wiring
imagejpeg_5.jpg
imagejpeg_6.jpg
  

Connecting to arduino is very simple

We have 28 pins  but we only need 4 or 5 if using an external antenna.

 

Module                     Arduino Mega

Pin 8 SCL                     Pin 21              

Pin 9 SDA                     Pin 20

Pin 14 GND                  GND

Pin 27  3.3V                  3.3V

 

 

Note: you can connect 5V to Pin 28 if you don’t have 3.3 available.

 

Note: The schematics found on the documentation say that   PIN 26 is GND if you connect pin 26 to ground the module WILL NOT WORK!! GND is PIN 14.

 

Note: The module uses GND from the 3.5mm jack as an antenna but you can also use an external antenna connected to PIN 15.  

 
verdelj (author) 1 month ago
What errors are you getting? What is the problem?

Ok i learned you are using on tea5767 mode.

I wanna use rda5807m no tea5767, Can you help me about this ?

#include <Wire.h>

unsigned char x,y;

void setup()

{

Serial.begin(9600);

Wire.begin();

setFrequency();

}

void loop()

{

Wire.beginTransmission(0x11);

Wire.write (0x03); // request 6 bytes from slave device #2

Wire.endTransmission();

Wire.beginTransmission(0x11); // base address

Wire.requestFrom(0x11,2); // We want one byte

x=Wire.read();

y=Wire.read();

Serial.println(x,HEX); // print the character

Serial.println(y,HEX);

delay(1000);

}

void setFrequency()

{

delay(500);

Wire.beginTransmission(0x11);

Wire.write(0x02);

Wire.write(0xC0); Wire.write(0x0D); // write 0xC00D (RDS on etc.) into 0x02

Wire.endTransmission();

delay(500);

Wire.beginTransmission(0x11);

Wire.write(0x03);

Wire.write(0x1B);

Wire.write(0x80);

Wire.endTransmission();

}

İt is not working i dont hear anything :(

and 0x03 value not same my wrote value .

verdelj (author)  BerkcanA1 month ago
Ok let me modify the code