We are thinking on a smaller scale for the prototype since we do not have all the materials quite yet.
Our first instinct was to play with an LED for now.
We are using the arduino Knock sketch. When blowing on the wind sensor, after a threshold is hit, the LED will light and also the words "knock" will be displayed in the serial monitor.
Our next step is to add to the code to create a delay make the light stay on for 20 seconds after the threshold has been hit.
Here is the code so far:
Blowing on the wind sensor to turn the light on then the light turns off after a mini delay
Blowing on the wind sensor which turns the LED both on and off
No comments:
Post a Comment