Introduction: Object Movement Sensor

Picture of Object Movement Sensor

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.

Step 1: Parts and Tools

Picture of Parts and Tools

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


an LED

Linkit ONE board or arduino

HC-SR04 Ultrasonic sensor

Mini breadboard

Jumper wire


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

Step 2: Wiring

Picture of Wiring


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


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

Picture of 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...

Picture of 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


Seeed Studio (author)2015-11-02

Nice tutorial, thanks.

About This Instructable




Bio: My name is Zach Sousa and I'm a Canadian highschool student that has a passion for making.
More by Zach Sousa:CNC Oak Watch BoxCNC Camera SD Card HolderEdge 3D 3.0 - A $200 3D Printer
Add instructable to: