Introduction: 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
Here are the parts and tools that you will need to make this simple project:
Linkit ONE board or arduino
HC-SR04 Ultrasonic sensor
Computer with Micro USB cable and the latest version of the Arduino IDE
Step 2: 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
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