Picture of Nexus 7 and the Arduino.
Screenshot from 2013-08-03 15:57:58.png
Will show several ways to show how to use an Arduino as a sensor using  The Nexus 7 for a terminal and to do development.  This can be very important for protecting your electronic equipment especially servers. 

Note: All connections are to a standard Arduino board.  This instructable is for users very familiar with the Arduino boards. If you are a novice, you may want to get additional help.

Step 1: Working with the Nexus 7.

Picture of Working with the Nexus 7.
Want to hook your Nexus 7 directly to your arduino, then all you need is a OTG cable and a standard usb cable. Get the free (at this time) UsbTerminal app from the playstore and install it.You will want to set the Arduino serial port and the nexus 7 both the the same speed. We use 9600. 
 Have fun.

Code to test the connect from the Arduino to the Nexus 7.

void setup() {
  // put your setup code here, to run once:


void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("This is a test");

Step 2: Developing for the Arduino on the Nexus 7

Picture of Developing for the Arduino on the Nexus 7
Assuming you have used the standard ide for the Arduino on a personal computer. There are enough tutorials that it should not be needed  to be repeated. (  Arduinodroid is an ide for the Arduino that runs under Android. It seems to have the basic files built in. The software also worked with my Osepp Arduino board. It was the first application I saw in the playstore, but there may be more.

Step 3: Several examples to work with.

Picture of Several examples to work with.
Some examples aka basic building blocks to play with. Some of frames  are still under construction or to be completely revised..
1.  EMF (Electomotive force) field reader
2. Capacitive reader
3. Temperature reading
4. Flood detection.
Remove these adsRemove these ads by Signing Up
dagorald11 months ago
Thanks a lot! I had that app laying on my tablet without knowing exactly what to do with it 'till now, I made a similar code to your last to try a potentiometer of 10K:

int potPin = A0; //Potentiometer input pin
int potValue1 = 0;
int potValue2 = 0; // final display variable
void setup() {
// put your setup code here, to run once:
void loop() {
// read then divide the input(max 1020 in this case) by 10
potValue1 = analogRead(potPin) / 10;
// divide by 1.02 to get percentage
potValue2 = potValue1 / 1.02;
// put your main code here, to run repeatedly:
Serial.println(potValue2);//wait 0.1 seconds

Hope you don´t mind I put it here, and again thanks!!!
Computothought (author)  dagorald11 months ago
Cool.. Code was a standard app from one of the arduino sites.