The FM Radio Transmitter module could modulate your voice on the FM radio wave. You can build your own FM transmitter for your local usage. And anyone with a radio device could receive it. Very easy to build a tiny radio station. A library for Arduino to work with this module is in download.
FM-Radio-Modulator-Module
Feature:-
I2C interface 5V TTL compatible
Arduino plug and play
Onboard MIC
VCC Input: 3.0V ~ 3.6V
CONNECTION DETAILS:-
Arduino FM Module
GND ———— GND
5V ———— VCC
SDA ———— SDA
SCL ———— SCL
Then connect the antenna. Any metal line about 75cm can serves as an antenna.
Arduino Program Code:
(This code is used to find transmitter frequency for your purchased module)
Code:
#include
float fm_freq = 90; // Here set the default FM frequency
void setup(void)
{
Serial.begin(9600);
Serial.print(“FM-TX Demo\r\n”);
fmtx_init(fm_freq, USA);
Serial.print(“Channel:”);
Serial.print(fm_freq, 1);
Serial.println(“MHz”);
}
void loop(void)
{
if(Serial.available())
{
switch(Serial.read())
{
case ‘&’:
u8 i,buf[4];
float ch;
i=0;
delay(30);
while(Serial.available()&&i<4)
{
buf[i]=Serial.read();
if (buf[i]<= ‘9’ && buf[i]>= ‘0’)
{
i++;
}
else
{
i=0;
break;
}
}
if (i==4)
{
ch = (buf[0]-‘0’)*100+(buf[1]-‘0’)*10+(buf[2]-‘0’)*1+0.1*(buf[3]-‘0’);
if(ch>=70&&ch<=108)
{
Serial.print(“New Channel:”);
Serial.print(ch, 1);
Serial.println(“MHz”);
fmtx_set_freq(ch);
}
else
{
Serial.println(“ERROR:Channel must be range from 70Mhz to 108Mhz.”);
}
}
else
{
Serial.println(“ERROR:Input Format Error.”);
}
while(Serial.available())
{
Serial.read();
}
break;
}
}
}
Copy and Paste with Arduino and upload the example sketch to Arduino. Then open Serial monitor.
Tune your radio device and set it at FM 90MHz. Enjoy!
FM Radio Transmitter Module
Show Comments