Mega π₯ A simple home automation project using Arduino Mega, a sound sensor (KY-038), and a 5V relay module to control a 7W AC LED bulb with a clap.
π§ Features: β Clap to turn the light ON/OFF β Uses a 5V relay module to handle AC power β No resistors or breadboard required β Works with any standard LED bulb
π Components Required: Component Description Arduino Mega Microcontroller KY-038 Sound Sensor Detects claps 5V Relay Module Controls AC bulb 7W AC LED Bulb Light source Wires & Power Supply For connections π Circuit Diagram & Connections: Sound Sensor to Arduino Mega: VCC β 5V GND β GND OUT β Digital Pin 2 Relay Module to Arduino Mega: VCC β 5V GND β GND IN β Digital Pin 7 AC 7W Bulb to Relay Module: Bulb Live Wire β COM (Common) on Relay Bulb Neutral Wire β Direct AC Power Relay NO (Normally Open) β AC Power Live