I have connected an arduino uno to my home wifi using AT commands send to an ESP8266.
I would now want to control a relay using the same from an android mobile.
However the problem is most cloud services that I use is device specific.I can't find a cloud service that can send commands to an arduino connected from an esp8266.
And I know esp8266 can be used independently but this is part of a larger project and the pins in esp8266 won't be enough.I chose esp8266 as a cheaper alternative to a wifi shield.
So how do I send commands to an arduino from an android decvice/web page connected to the internet using esp8266?
Thanks in advance.
You can connect your arduino to your esp8266 using serial or I2C. After setting up a server on your esp, you can then send the received commands from the web over to your arduino.
Byork:
You can connect your arduino to your esp8266 using serial or I2C. After setting up a server on your esp, you can then send the received commands from the web over to your arduino.
Do I have to get any additional hardware for this? The forum article says I have to get a TTL to USB device to program the esp separately.
Is there a article that tells how to do it step by step?
Sorry to be pressing but I'm really a noob when it comes toArduino projects
I am assuming you are using those bare esp chips. You need a a usb serial module like this http://www.ebay.com/itm/1PCS-5v-3-3v-CH340G-Serial-Converter-USB-2-0-To-TTL-6PIN-Module-for-PRO-mini-/381998739870?hash=item58f0e6319e:g:PMUAAOSw4A5Yw7UT to program the esp8266 using the arduino ide. With the ide, you can program the esp8266 like an arduino. I don't have a step by step guide, but the esp8266 arduino ide library has the examples you need, ie webserver, serial read and I2C example sketches. You could easily reference and combine them.
Many of the ESP8266 modules come with some variant of the AT firmware already installed. If you send it "AT" and it responds "OK" you know it's on there. If so there is no need to update the firmware on the ESP8266. That said, the USB-serial adapter board is a very useful tool to have on hand and they are quite reasonably priced. I prefer the FT232RL ones, which you can find cheap on eBay(~$1.81 USD w/ free shipping) or Aliexpress (~$1.55 USD w/ free shipping). The chips are counterfeit but they still work fine. The CH340 will work fine too but you can get them for 1/3 the price of the link above with a little shopping around.
I like to use the WiFiEsp library for controlling an ESP8266 running the AT firmware from a standard Arduino:
You may find the example sketch found at File > Examples > WiFiEsp > WebServerLed to be helpful.
I'm also new to the ESP8266; I've been learning to play with it for the last 60days or so. Thus far, many in this forum have pointed in the right direction.
Currently, I have a MEGA w/ a touchscreen sending commands via serial to the ESP. From there, the ESP downloads time from the NTP server, control my smart bulbs (brightness, color, saturation, etc), Alexa control using esp as WEMO (github repos), serve up custom web pages to join a wifi network, change IP, sub & gate. You get the idea.
I'm unsure of what level of "newbie" you are, so I'll assume you are where I was 60days ago.
PieterP offered this jewel of info Beginners guide to esp8266.
Robin2's serial input Serial Basics.
And a conversations I learned from: esp to mega connections
Within the next 30days, I should be ready to create an AWS MQTT to access outside of the home wifi network and control my devices- which I believe is your programming trajectory. PetierP lightly touched on this in his tutorial. Any great MQTT links would be appreciated by both trailtron and myself.
JMeller...I'm a few days into 8266 myself and have the Blink and Webserver working. I found this link which might be useful to you and it's the direction I'm headed:
however I'm having trouble getting the MQTT files off GitHub from their link.
Very nice; thanks for the link.
About your problem with obtaining the MQTT library- use the Sketch/Include Library/Manage Libraries to retrieve.
Hope this helps.
timberrock:
however I'm having trouble getting the MQTT files off GitHub from their link.
Please explain exactly what the trouble you're having is.
pert...not wanting to interfere with OP thread...but, I cannot find a "download' button to click on at this link:
JMeller...thanks for suggestion, but tried that earlier, but cannot find the same library source under Manage Libraries, only by Adafruit
I posted a separate topic on this.
thanks.
Did you try this?
MosheB...thank you. I saw that one, but the folder name inside was slightly different than the link in the article, i.,e., EIoTCloudRestAPi and was not sure if it was the correct one...but, if it's the only one, I guess it won't hurt to try it.
There are some examples with " ESP8266_mqtt "
You can try them out.
Hello
I would like you to help me with a brief explanation of how I can send the A0 data to the web and then pass them to an app, I'm sorry I'm very new to this and I could not.
Thank you
marcobuiles:
Hello
I would like you to help me with a brief explanation of how I can send the A0 data to the web and then pass them to an app, I'm sorry I'm very new to this and I could not.
Thank you
Plenty of tutorials online.
Start reading!
.