Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 623 Bytes

File metadata and controls

22 lines (15 loc) · 623 Bytes

Using tilt sensor with the Arduino

Usability

Detects if the sensor has been tilted or not (0 or 1).

Note:

  • Use of active low inputs (through a pull-up resistor)
  • The input is at low when the sensor is active.

Requirements

  • Arduino board
  • Breadboard
  • WS-520D tilt sensor

Diagram

Steps

  • Using the Arduino IDE, flash the code (tilt.ino)
  • Monitor the serial output and move the sensor to check if it is tilted or not every 5 seconds