Figure 1 - FM Radio
TEA5767 Module is an FM radio module controlled with I2C and It could use with Arduino and other microcontrollers. Using this module, your own FM radio circuits can be designed. It has a 1/8 "(3.5mm) headphone / speaker output and an external antenna connection. On this module, TEA5767 is used as tuner circuit and TDA1308 for audio amplifier.
Figure 2 - TEA5767 FM Radio Module
Figure 3 - Arduino FM Radio Circuit
Arduino Nano Program
///Arduino FM Radio
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <TEA5767Radio.h> //TEA5767 FM Radio Library (TEA5767 FM Radyo Kütüphanesi)
LiquidCrystal_I2C lcd(0x27,16,2); //A4 and A5 Arduino port for SLC adn SLA
TEA5767Radio radio = TEA5767Radio();
double frequency = 87.5;
double frequency_pt = 87.5;
void setup()
{
Serial.begin(9600);
Wire.begin();
lcd.begin ();
lcd.setCursor(0, 0);
lcd.print("Arduino FM Radio");
Serial.println("Arduino FM Radio ");
}
void loop()
{
int value_pot = analogRead(A0); // Potentiometer values(Potansiyometre bilgisi)
// Frequency calculation( Frekans hesaplaması )
frequency = ((double)value_pot * (108.0 - 87.5)) / 1024.0 + 87.5;
frequency = ((int)(frequency * 10)) / 10.0;
// Displaying of frequency change on the screen( Frekans değişikliğinin ekranda gösterilmesi)
if (frequency_pt != frequency)
{
lcd.setCursor(0, 1);
lcd.print("Freq: ");
lcd.setCursor(6, 1);
lcd.print(" MHz");
lcd.setCursor(6, 1);
lcd.print(frequency, 1);
Serial.print("Frequency: ");
Serial.println(frequency);
radio.setFrequency(frequency);
frequency_pt = frequency;
}
}
Program Files
- Arduino Program - fmradio.ino
- FM Radio Library - TEA5767
- LiquidCrystal_I2C.h
Ders Videosu
Hiç yorum yok:
Yorum Gönder