1. What you will build
Control a relay with claps using sound sensor.
Control a relay with claps using sound sensor.
intermediate · 25 Sept 2026
Difficulty
intermediate
Learning complexity
Sections
6
Structured content blocks
Topics
7
Linked learning concepts
Related links
6
Next steps and references
Control a relay with claps using sound sensor.
Connect sound sensor output to Arduino pin 2.
Connect relay module to pin 8 (with proper isolation).
Use threshold to detect loud sounds as claps.
Each clap toggles the relay state on/off.
Prevent multiple triggers from single clap.
Yes. Use the Open in Lab action to load the guided build in the browser-based simulator.
Next step
Load the guided build in Ayantrik Lab and follow the same components and steps inside the simulator.