/GoogleGlass-NXTRobot

This project is a demonstration how to ccontrol NXT Robot with Google Glass

Primary LanguageJava

GoogleGlass-NXTRobot

This project was carried out in TUMO Center for creative technologies (Read more about Tumo at Tumo Webpage).<br> This project is a demonstration how to control NXT Robot with Google Glass. The idea is that the NXT Robot will move forward, backward, left and right as the one who wears the glass moves their head correspondingly forward, backward, left and right. The Glass will use the values of its accelerometer sensor as an indication of its orientation in the space. Glass communicates with the Robot via internet. This Project can be used as a base for many other project for the glass and robot as well, because it makes the bridge between two platforms through internet

A summary of the project:

  1. Google glass connects to the Internet.

  2. Google glass keeps track of its accelerometer values and sends them to server using HTTP protocol. 3.Server gets the request made by the Glass and writes the values of the accelerometer in MySql data base.

  3. NXT Robot connects to host computer via Bluetooth.

  4. Host Computer makes and HTTP query to the same server the Glass had written its accelerometer sensor values in order to get a command for the robot

  5. The Server returns a String type command to the host computer 7.Host computer send the command to the robot.

Details about how to install:
In order to run this program on your local machine you need the fallowing software:
1.LabVIew (2008-2012).
2.Android SDK (Find here : http://developers.android.com/sdk ).
3. Google glass development kit (GDK) from inside SDK tools.
4.Java jdk (Find here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).
5./Optional/Processing 2.0 (Find here: http://processing.org).
6. (Local) server.
7.Mindstorms NXT Robot.

First, you need to upload

/ LabView / Robot_glass_control nxt.vi 
file into the NXT brick and run
/LabView / Robot_glass_control__computer.vi
on your local computer Then you need to upload files in PHP folder to your server and insert table in database folder in your MySql database. After finishing this, you just need to copy the URL where your PHP files are, past it in android or processing project as the value of
/String BASE


  AccelerometerManager accel;
float ax, ay, az;
String BASE = "http://Narek.Galstyan1996.student.tumo.org/glass/accel";
String x,y,z;
 HttpResponse response;

  

, and run the application on your google glass.

if you are not yet clear how everything works, have a look at this presentation: http://prezi.com/h6mpu6rcd3py/?utm_campaign=share&utm_medium=copy