[arduino-tutorial] Vibration (or shake) Sensor by mi.vasilakis

This sketch is missing a short description
In this tutorial we will use one vibration sensor (or shake switch) to make a beep sound from a buzzer while we shake our breadboard. Find more info and video here: http://bit.ly/1iDbc2Q

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:149282" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>

  • 2024-07-28 Numan

    Why pull-up resistor wasn't used with the sensor? When sensor is active and closed circuit happened, where does current from 5V pin go to? Does current flow through analog pin? Does analog pin take current like ground? If any current doesn't flow, voltage drop becomes 0 volts. So analog pin must read 5V (1023)?