Cheap Iot Using Arduino

by yash yash in Circuits > Arduino

2683 Views, 8 Favorites, 0 Comments

Cheap Iot Using Arduino

temp_-824043600.jpg
The WiFi, GPRS shield, Ethernet Shield are very expensive for a newbie, so to reduce this cost I tried to combine different methods and use the common things that are available in the house and use it to control arduino over Internet. This is how I did.

Material Required

temp_508672002.jpg
For this project we require-
1)arduino
2)otg enabled android phone
3)otg cable
4)PC/laptop(to program arduino and control it wirelessly. Should have arduino ide installed)
5)USB cable type A to type the arduino have.
6)and an internet connection on phone and PC/laptop of course.

Applications to Be Installed

Install the following applications on your phone from play store-
1)Teamviewer host
2)Arduino droid

Code

ar.JPG
This is a test code for an example which turns the led on pin 13 on on sending 1 and off on sending 0 .

#define led 13
void setup() {

// put your setup code here, to run once:

pinMode(led, OUTPUT);

Serial.begin(9600);

digitalWrite(led, HIGH);

delay(1000);

digitalWrite(led, LOW); }

void loop() {

// put your main code here, to run repeatedly:

if(Serial available() > 0){

if(Serial.read() == '0')digitalWrite(led, LOW);

if(Serial.read() == '1')digitalWrite(led, HIGH); }

delay(100);

}



upload this code to arduino via ide.

Downloads

Connections

temp_-1367192326.jpg
temp_-1606091843.jpg
temp_-2015961351.jpg
temp_-1546463409.jpg
temp_2107680373.jpg
temp_1454368739.jpg
Connect arduino to USB cable, USB cable to otg cable and otg cable to the phone.
Now open the app team viewer host app on phone and login.

Control Over Internet!!!

temp_-119372272.jpg
temp_696469416.jpg
temp_-824043600.jpg
temp_-119372272.jpg
tv.JPG

login to teamviewer website via PC laptop and then open your device and now you can control your phone.
open arduino droid app on your phone, it will take some time to load first time. press menu button, touch actions, and then monitor. Change baud rate to 9600 and then just send series of 0 and 1 the number of times you want and you can make led blink at different or same interval via internet!