The microphone input is subjected to a smoothing algorithm to filter out excess signals; the average input values (0-1023) are used to determine whether if a door is being opened or closed. I determined the rough threshold value to occur above ~250. An if-else statement controls the flowers’ resting state, color, and movement in response to values that occur above the threshold.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .