This is a IoT automation project. not like others which only fetch the sensor data to the internet. i used there technique to control the devices by reading to that web api using wifi module esp8266. with this technique we can monitor , control the devices from anywhere in the world. today i,m controlling a led , just like hello world program for IoT world.

you can read my new IoT instructables using Raspberry pi and arduino here:


Step 1: Overview

I,m back with my new instructable. There are many instructables about IoT and home automation.

but most of them is all about writing the sensor data to the web, making weather stations etc. but i wanted to control devices using internet just like people do it with GSM using sms command.

So, finally i did it with the help of esp8266 our loving wifi module and world's best board arduino uno. we just need to modify the data using web api and arduino will react on that. here it will turn board led on and off.

<p>Alternative: you can flash the ESP with NodeMCU (nodemcu.com) and program Lua (lua.org) against it. For a few euro's more you buy an ESP-12 that offers much more ports an can be powered with a standard power supply. No Arduino required.</p>
<p>Following this way , do we have a lua code to update a DDNS server such as the no-ip so we can control the ESP from anywhere ?</p>
<p>i don't have such code. as i never programmed esp before. sorry</p>
<p>my new IoT project with pi. soon i will publish here.</p><p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/_QSDNzlw1cU" width="500"></iframe></p>
<p>It seems like something is missing here. Can you show how you use Thingspeak to get the web to be able to control this Arduino?</p>
<p>Sorry i was thinking that people will understand by reading Firmware. but i updated everything in detail now. please have a look.</p>
<p>Good instructable, I built this and it works , after a little modification to the code.</p><p>Well done, keep up the good work. </p>
<p>web api of thingspeak is not returning the data continuously as we got data for in few attempts which makes it slow and not reliable. if you did something with that then please tell me. i need it. </p>
<p>Hi, checkout this instructable, it helped me understand Thingspeak.</p><p><a href="http://www.instructables.com/id/ESP8266-Weather-Station-with-Arduino-2-Software/?ALLSTEPS" rel="nofollow">http://www.instructables.com/id/ESP8266-Weather-St...</a></p><p>Back to this instructable, I used ESP8266 User Program from firatdeveci.com to set my wlan as default, as the arduino is sometimes 'sketchy' as to whether it will connect or not.</p><p>I also connected TX from ESP to pin 10, RX from ESP to pin 11, with a baud rate of 57600.</p><p>I modified the code slightly, i noticed that references to char 65 were wrong and it should be char 66, eg. (c[66] this works for me , the LED is triggered as expected, then after several reads from thingspeak it turns off again. </p><p>I can supply the updated code is required.</p>
<p>c[66] and c[65] was not so reliable. i also modified that to c[i-13]. and that works perfect for me.</p>
<p>Slight mod to code, but it works as described. Useful instructable. well done.</p>
<p>thanx buddy</p>
<p><strong>Can you please provide clear circuit diagram.</strong></p>
<p>I am a newbie. Looks great. Where is the code?</p>
I have attached the.ino file named iot_api_read.ino . Just download it.
<p>hello,nice project,</p><p>please share some clear wiring diagram.</p><p>and can i control gipo pins via apache server hosted on RPi?</p>
<p>Sorry buddy. i,m newbie to Rpi. still trying to figure it out.</p>
hello,<br>that's great for a start, i just made a 8 channel power strip controlled by ok google command on my android by following this tutorial:<br>http://www.instructables.com/id/Web-Controlled-8-Channel-Powerstrip/?ALLSTEPS<br>wanted to create something similar with arduino + ESP8266<br><br>i hope it helps :)<br><br>Happy coding
<p>If you only need two IO pins, you can program ESP2866 directly with Arduino IDE, negating the need to have an Arduino board as well as the ESP8266. It would involve either a serial level converter or a USB to serial adaptor that does 3v3 levels. Plus also a 3v3 PSU or regulator, but still quite compact and low cost.</p>
<p>Actually i,m not programming esp8266. i don't even know how to do so. i,m using arduino as a standalone controller which is connected to internet through esp8266. So i can control the pins of arduino from anywhere also by writing data to web i can also monitor sensor values, status of devices and much more. </p>