Picture of Nexus 7 and the Arduino.
Screenshot from 2013-08-03 15:57:58.png
Screenshot from 2015-03-21 06:15:22.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 1: 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.

Note 2: With android 5.1, you may not be able to direct connect the devices, but using a router that has a dhcp server can be a temporary fix. Android 5.0x does not seem to support ethernet connections.

Wigh android 5.1.1and the latest version of the software, there is no way to fix the baud rate so uploads do not work.

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");
markgrecowork4 months ago
I made the moisture sensor
15, 5:00 PM.jpg
Computothought (author)  markgrecowork4 months ago


dagorald1 year 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)  dagorald1 year ago
Cool.. Code was a standard app from one of the arduino sites.