Introduction: DIY Motion Detector With LinkitONE

Picture of DIY Motion Detector With LinkitONE

Hello,

Here I will show you how to make your own motion detector using LinkitONE that sends a signal to PC when any motion is detected.

We'll do the project under $100

Step 1: Parts

Picture of Parts

You will need

1 x LinkitONE

1 x PIR motion sensor

Step 2: Connect Motion Sensor

Picture of Connect Motion Sensor

Connect the motion sensor on the board. Connect the data pin to A0 and power and ground to board's pins.

Step 3: Connect USB

Picture of Connect USB

Connect the USB cable to your LinkitONE so that you can transfer data.

Step 4: Write Code

Burn this code to your linkitone.

void setup() {

Serial.begin(9600);

}

int number=0;

void loop() {

if (analogRead(0)>700) {

Serial.println("detected");

}

}

Step 5: Open Serial Monitor and Test Motion!

Picture of Open Serial Monitor and Test Motion!

Now open your serial monitor and test some motion!

Comments

About This Instructable

176views

3favorites

License:

More by kritisethi:LinkitONE SMS powered LEDLinkitONE Music Player Lights On/off on Clap With LinkitONE
Add instructable to: