![]() ![]() In this tutorial, I wanted to demonstrate how the 8-pin ESP8266 is a standalone micro controller with two GPIO pins that is capable of web service completely on its own. The ESP8266 can be used to enable WiFi capabilities on the Arduino Uno, however, that topic was not the focus here. ![]() This type of web structure makes mobile app integration into the smart home easy, by taking advantage of the POST method. In this example, navigating to /led_on also turns the LED on. The ESP8266 allows you to host multiple pages on the domain, which allows you to create a rather intricate server. Programming HTML within the Arduino C++ framework is quite hard, so be sure to do some homework on string and char in the Arduino IDE before trying to create any complex HTML. This can be done by either pulling pin 6 to ground, or simply turning the module off and then back on. I recommend the Sunkee AMS1117 3.3V Regulator.Īs I said before, the server needs to be reset before uploading a new sketch, and it should also be reset after uploading a sketch but before normal operation. The ESP8266 MUST be powered by a source between 2.5V-3.3V, which means that the Arduino Uno is safe, but traditional LiPo batteries cannot be used to power the module unless a voltage regulator is used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |