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.

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");
I made the moisture sensor
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: <br> <br>int potPin = A0; //Potentiometer input pin <br>int potValue1 = 0; <br>int potValue2 = 0; // final display variable <br>void setup() { <br> // put your setup code here, to run once: <br> Serial.begin(9600); <br>} <br>void loop() { <br> // read then divide the input(max 1020 in this case) by 10 <br> potValue1 = analogRead(potPin) / 10; <br> // divide by 1.02 to get percentage <br> potValue2 = potValue1 / 1.02; <br> // put your main code here, to run repeatedly: <br> Serial.println(potValue2);//wait 0.1 seconds <br> delay(100); <br> <br>Hope you don&acute;t mind I put it here, and again thanks!!!
Cool.. Code was a standard app from one of the arduino sites.

About This Instructable




Bio: computoman.blogspot.com Bytesize articles instead of a trilogy in one post.
More by Computothought:Coffeepot meals Easy sun hat Easy cakes and pies. 
Add instructable to: