Object Movement Sensor

Introduction: Object Movement Sensor

About: My name is Zach Sousa and I'm a Canadian highschool student that has a passion for making.

In this instructable, I will show you how to make a device that flashes when an object in front of it moves. This can be modified so it can email you when someone moves your laptop or whatever you would like. Feel free to modify the code, even though it is extremely simple.

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 and Tools

Here are the parts and tools that you will need to make this simple project:

Parts:

an LED

Linkit ONE board or arduino

HC-SR04 Ultrasonic sensor

Mini breadboard

Jumper wire

Tools:

Computer with Micro USB cable and the latest version of the Arduino IDE

Step 2: Wiring

HC-SR04:

Wire VCC pin to the 5v pin on the linkit ONE

Wire GND pin to the ground pin on the linkit ONE

Wire Trigger to pin 12 on the linkit ONE

Wire Echo to pin 11 on the linkit ONE

LED:

Put the longer lead of the LED into pin 13, and the shorter lead into a ground pin on the linkit ONE

Step 3: Upload Code

Download the attached code. Double click to open it. Then make sure that you have "Linkit ONE" selected as the board under tools, and that you have the right serial port selected. Once all of that is correct, click upload.

Step 4: Test...

To test the project, place an object in front of the ultrasonic sensor, and press the reset button on the board. Once the board has been reset (which will take a few seconds), the LED will stay off until you move the object in either the X or Y axis

Epilog Contest VII

Participated in the
Epilog Contest VII

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020

    Discussions