Intel Edison Takes Pictures From Motion Detection

Introduction: Intel Edison Takes Pictures From Motion Detection

This will take pictures and save files locally on the Edison
which can be viewed at the http://ipOfEdison/pics address.

This instructable largely assumes you have experience with IOT devices and serves as reference.

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: Install Intel Edison Developer Tools

Download and setup Development Environment:

  • Select Intel® XDK IoT Edition
  • Once you can get shell access to your Edison configure the device at shell and type:
    • configure_edison --setup
    • ifconfig will give you your IP address
  • Now you can connect via SSH (such as using PUTTY)
    • example: root@
    • provide password that you used when setting up the device

Step 2: Configure Edison Environment

Install required libraries for this project to run:

From Shell prompt type:

  • npm install jsupm_hmc5883l
  • npm install python-shell

To install Python Webcam Image capture you need to install Python-opencv

From Shell Prompt type:

To install Web Server:

From Shell Prompt type:

  • opkg install apache2
  • opkg install php
  • pip install requests

  • systemctl start apache2

  • systemctl enable apache2
  • reboot
    • (Rebooting will drop your ssh connection)

Prepare Web Directory:

This lists all files in a directory on the web server

From the Shell prompt type:

  • cd /usr/share/apache2/htdocs
  • mkdir pics
  • cd pics
  • make .htaccess file with the following contents (this is also in the attached source file)
    • Options +Indexes

Step 3: Make It Go

Start Intel XDK IDE

Extract files in the attached file to your computer.

Copy the files to the edison using a program such as WinSCP in the same structure as it is extracted in.

Open the project named SpookyBoo (named because the project was originally to detect paranormal activity).

Connect to your device.

Upload the code.

Start the program.

You'll notice the Intel Edison has a green led light that comes when motion is detected.

For processing purposes the scan is conservatively set for every 5 seconds.

Pics are saved to /usr/share/apache2/htdocs/pics on the Edison.

Pics can also be saved to the cloud (edit the python file).

Step 4: Summary

Browse to the ip address assigned to your Edison to see the pictures just captured.

-This project serves as a basic guide to using Intel Edison.
-pictures can fill up the Edison
-these basic instructions are the main reference for this project
-this is my first project to upload encouraged by a hackathon

Be the First to Share


    • LED Strip Speed Challenge

      LED Strip Speed Challenge
    • Sculpting Challenge

      Sculpting Challenge
    • Clocks Contest

      Clocks Contest


    DIY Hacks and How Tos

    Welcome to Instructables. Thanks for sharing the cool project.