In this instructable I'm going to show you how to create a motion sensor using a Linkit one and a tilt motion sensor. This project can be a part of a security system, if you have not seen my previous instructables please check it out, I have a lot of other Linkit One tutorials.
Step 1: Components
Here is a list of all the components required to get started, make sure you collect all the components first before proceeding to other steps-
Tilt Motion Sensor
Step 2: Schematics
The schematics can be found in the picture above, I had to use an arduino to represent the linkit one as Fritzing doesn't have a library for the Linkit one yet.
Step 3: Program
The program is similar to the switch example in the Arduino IDE, this program can be easily modified to do various tasks once the sensor is triggered.
To upload the program you need to install the Linkit one plugin along with the Arduino IDE. You can find instructions on how to do that in the official website. You can also download the IDE with the Linkit One plugin pre-installed from GitHub.
Step 4: Setting It Up
If you are using this project as a security system you can connect a 5V buzzer and set it up, so that the buzzer runs every time motion is detected.