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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Parts

You will need

1 x LinkitONE

1 x PIR motion sensor

Step 2: 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

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!

Now open your serial monitor and test some motion!

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions