You attach a small Electret Microphone module (or a simple piezo disc) to an analog pin. When you clap, the sound wave causes a voltage spike. Your code detects that spike and toggles an LED or a relay (for a lamp).
Happy making! This article contains conceptual guidance for educational projects. Always disconnect power before changing circuits and never leave water pumps near mains voltage outlets. electronics projects for dummies pdf exclusive
Use a Photoresistor (a sensor that changes resistance based on light) to read the brightness of the room. If it gets dark (value below 500), an LED turns on. If it's bright (value above 500), the LED turns off. You attach a small Electret Microphone module (or