Elenco Snap Circuits SnapMicro I Deluxe ® User Manual
Page 83

82
Project 25, The Clap it ON, Clap it OFF Circuit
Construct the following flowchart.
Settle and Get Quiet Set window variables Look for Clap Check Sound & Toggle Light
The first block above lets the circuit settle and then looks for 10 readings in a row that are very close to
be used as quiet time.
The second block calculates the quiet point and sets the limits for start and end of the clap sound.
The third block is the main program that listens for a clap and starts the count between claps.
The last block checks the sound for outside of start window, waits for 200 milliseconds, then checks for
quiet time. This block also checks for second clap and turns the light ON or OFF.
This manual is related to the following products: