Double-clap light switch
Clap twice and the lights come on. Clap twice again to switch them off.
Shop by category
Shop all componentsThe TEA5767 is a complete FM radio on a small module: the Nano just tells it which frequency to tune over I2C. A potentiometer sets the frequency in 0.1 MHz steps, the OLED shows it, and a PAM8403 amplifier drives a speaker from the module's audio output. FM radio stations in India sit between 91 and 107 MHz in most cities.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB or a 5 V power bank.
fm_radio.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
#include <TEA5767Radio.h>
TEA5767Radio radio;
float lastF = 0;
void setup() {
Wire.begin();
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE);
}
void loop() {
long s = 0; for (int i = 0; i < 16; i++) s += analogRead(A0);
float f = 87.5 + round((s / 16.0) / 1023.0 * 205) / 10.0; // 87.5 to 108.0 MHz in 0.1 steps
if (fabs(f - lastF) >= 0.1) {
radio.setFrequency(f);
lastF = f;
oled.clearDisplay(); oled.setTextSize(1); oled.setCursor(0, 0); oled.print("FM radio");
oled.setTextSize(3); oled.setCursor(0, 24); oled.print(f, 1); oled.setTextSize(1); oled.print(" MHz");
oled.display();
}
delay(100);
}
The antenna is missing or too short; stretch 75 cm of wire near a window.
A noisy pot; average more readings or use a rotary encoder.
Keep audio wires short and away from the USB cable.
No, the TEA5767 has no RDS decoder; you can label known frequencies in code.
Yes, the module outputs stereo; use both PAM8403 channels and two speakers.
Yes, the chip reports signal level; step through the band and stop on strong ones.
8 parts: TEA5767 FM Radio Receiver Module w/ I2C Interface, Generic Nano CH340 Development Board (Soldered), Rotary Potentiometer Module 10k (3-Pin), 0.96" OLED Display 128x64, PAM8403 2x3W Class-D Stereo Amplifier Module, Speaker 4Ω 3W 2 Inch, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (fm_radio.ino).
About ₹822 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How an FM tuner chip is controlled over I2C; Mapping a knob to a frequency band; Amplifying line-level audio.
Clap twice and the lights come on. Clap twice again to switch them off.
Plays a friendly ding-dong whenever someone walks into the shop or room.
Beeps and flashes any message in Morse, or key your own by hand.
Turn a membrane keypad into a two-octave piano.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.