Arduino IR Remote identification

Download IR remote library from the following link

https://github.com/shirriff/Arduino-IRremote

Unzip the download.Rename it as IRremote and put it in arduino’s libraries folder.

To detect the remote

ir1

Set up a TSOP sensor like the above schematic…

Load the example code from File -> Examples -> IRremote -> IRrecvDemo then click the “Upload” button.Click the “Serial Monitor” button to bring up a window that will allow us to see the codes being returned to us by the Arduino. Start mashing buttons and you should see a lot of numbers scroll by like in the image below.

Screenshot-dev-ttyACM1

The ones that start off with FF and then have numbers or letters are the codes we are after. A FFFFFFFF is a continuation code and the 0 on its own line is a read error.

Happy Hacking 🙂

Configuring Kinect with processing in ubuntu

Xbox-360-Kinect-Standalone

To configure kinect with processing in ubuntu 12.04..first download openni installer

wget http://simple-openni.googlecode.com/files/OpenNI_NITE_Installer-Linux32-0.27.zip

uncompress the file…there will be four folders like this.

Screenshot from 2013-01-18 16:55:03

Inside kinect folder there will be one more folder named Sensor-Bin-Linux…all folders will be having an install.sh file

open a terminal and cd to each folder and issue the following install command

sudo ./install.sh

Now download processing software i used the stable release processing 1.5

wget http://processing.googlecode.com/files/processing-1.5.1-linux.tgz

extract it

Now download SimpleOpenNI processing library

wget http://simple-openni.googlecode.com/files/SimpleOpenNI-0.27.zip

when you run processing for the first time a folder named sketchbook will be created inside home folder

Copy the ‘SimpleOpenNI.zip’ into this folder:

~/sketchbook/libraries

and extract it

if you don’t have libraries folder then create one inside sketchbook

Now restart porcessing from file menu take Examples>Contributed Libraries>simple openni and select depth image example.

Screenshot from 2013-01-17 03_51_51

Connect the kinect to the system .Now compile and run the code if sucessfulyou will get an output window like this.

Screenshot from 2013-01-17 03_53_50

You need java installed in yur system for the working of processing

Happy Hacking 🙂