Introduction: Connecting Intel® RealSense™ 3D Camera With the Intel® Edison

Picture of Connecting Intel® RealSense™ 3D Camera With the Intel® Edison

Intel® has introduced many great innovation. One is Intel® RealSense™ technology with the Intel®RealSense™ 3D Cameras and SDK; we can create applications that can perform gesture detection, facial analysis, background segmentation, voice recognition, voice synthesis, and more, the SDK provides more support to software framework that is CSharp, Java, JavaScript, Processing and Unity. The developer can jump off to get started creating applications with ease based on framework they are familiar with.

Another cool thing from Intel® technology is the Intel® Edison platform. An IoT developer can build prototypes that gather sensor information or send control to other devices and create innovative products. Intel® Edison already has integrated Wi-Fi and Bluetooth Low-energy* (LE) so we can connect to the internet and create a real Internet of Things solutions. In this project we will be using Intel®RealSense™ technology JavaScript Framework to send hand gesture data to a server and the server will send the data to trigger the buzzer and LED connected by Intel® Edison.

Hardware :

  • Intel® Edison board with the Arduino* breakout board
  • Seeed Grove* – Starter Kit Plus - Intel® IoT Edition
  • 4th generation (or later) Intel® Core™ processor
  • 8GB free hard disk spaceUSB 3.0
  • An Intel® RealSense™ 3D Camera F200 (system-integrated or peripheral version)
  • An Server equiped with Node.js

Software :

Let's Start...!!!

complete article here, also written by me

Step 1: Setup the Intel® RealSense™

Picture of Setup the Intel® RealSense™
  1. First connect the Intel® RealSense™ 3D F200 Camera to a USB 3.0 Port
  2. Install Camera driver and Intel® RealSense™ SDK : https://software.intel.com/en-us/intel-realsense-...
  3. Navigate to the installation location and open a JavaScript sample at RSSDK\framework\JavaScript\FF_HandsViewer\FF_HandsViewer.html
  4. Install webapp (link provided in browser)
  5. Restart browser and try open sample file again

Step 2: Modifying Sample Code

Picture of Modifying Sample Code

*follow this this step, if you install on default path C:\Program Files (x86)\Intel\RSSDK ,

  • *Copying RSSDK\framework\JavaScript\FF_HandsViewer Folder to another location
  • *Copying realsense.js located at RSSDK\framework\common\JavaScript and place it on FF_HandsViewer Folder

Modifying sample code :

  1. Creating edisonconnect.js files to receive Gesture Data and Send to Server
  2. Edit sample.js file to intercept Gesture Data and pass it to edisonconnect.js
  3. Edit FF_HandsViewer.html file to re-locate realsense.js file path, linking socket.io and edisonconnect.js script

complete code download on GitHub

Step 3: Creating Nodejs Server

Picture of Creating Nodejs Server

  1. Install and setup an Debian Linux based Server
  2. Remote your server and login trough SSH
  3. Updating server - sudo apt-get update
  4. Installing Nodejs - sudo apt-get nodejs
  5. Installing npm - sudo apt-get npm
  6. Installing socket.io express - sudo apt-get socket.io express
  7. Creating file server.js and index.html (download on GitHub)
  8. running the scripts - node server.js

Step 4: Setup the Intel® Edison

Picture of Setup the Intel® Edison

pre-step if this first time to you to setup Intel Edison :

Intel® Edison is easy to deploy and clear documentation is provided by Intel®. You can find it at:

Ok, now it's time to place a code inside Intel® Edison, this code is to connecting to Server and listening to any broadcast from Server. If there is Gesture Data Received then Intel® Edison will trigger Digital Pins to On/Off.

  1. Open Intel® XDK IoT Edition
  2. creating a new project from Templates.
  3. Use Digital Write Template
  4. Edit package.json adding dependencies socket.io-client
  5. Edit main.js : to connect to Server and check if Gesture Data name "spreadfingers" then trigger Digital Pins2 and Digital Pins8 state to 1 / On if other Gesture Data Received change back to 0 / Off state. *please change your referring server IP’s addresses, if you want to change the Pins make change onmraa.Gpio(selectedpins)
  6. Install/Build your project then Run

Comments

AnnyCriya (author)2016-03-27

It's unique

ennur (author)2015-09-27

cool! easy to understand.

aguss9 (author)2015-09-26

Good!. thanks. this is what I need.

SiskaI (author)2015-09-21

Waw. This actually good. I've already try it in my lab and this is awesome. Why? Because you don't need to master in programming or coding. Just do it and Voalaaa you are connecting Intel® RealSense™ 3D Camera With the Intel® Edison as an iot stuff.

ariska138 (author)2015-09-21

Awesome. Thank to sharing. :D

yoza1404 (author)2015-09-21

Nice one! Keep it up!

DIY Hacks and How Tos (author)2015-09-20

Cool. Thanks for sharing.

About This Instructable

5,242views

43favorites

License:

Bio: Aulia Faqih
More by faqsun:Connecting Intel® RealSense™ 3D Camera With the Intel® Edison
Add instructable to: