Home Automation and Networked Objects
(Read 118 times)
Oct 21, 2014, 07:09 am
I like to start a forum Discussion on using the ESP8266.
I was able to create a simple http server with it using the Mega (for extra serial ports), and I had to make sure it had its own 3.3V power supply. I created a github repo that has the source code, and will follow with some diagrams to show how it was connected.:
In theory there is no difference between theory and practice, however in practice there are many...
Oct 21, 2014, 04:51 pm
What is the ESP8266?
Have a link to a datasheet or other info?
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)
Location: Dubuque, Iowa, USA
Oct 21, 2014, 10:54 pm
Datasheets for the ESP8266 are quite poor, but basically it's a microcontroller with WiFi with default firmware that will respond to "AT" style commands over serial. Modules are cheap ($5) and the range is fantastic -- hundreds of meters -- and of course that can be improved with better antennas.
Location: the land of sun+snow
Oct 22, 2014, 04:38 am
I recently bought a couple from here, but not had a chance to try as yet. Scroll down the page for links to tech info,
Oct 22, 2014, 07:01 am
at 05:56 am by Paulware
Thanks for the responses. I added a UDP example:
. It is written for the mega since the ESP8166 needs commands over a fast serial port.
Basic theory of UDP operation:
ESP8266 logs onto your local network (it will need SSID and password)
Android device also logs on to local network and sends out a UDP broadcast (to 192.168.0.255 for example). The message is "findkey" where key is a unique name of the device (i.e. garageDoor).
All other ESP8266 on the local network will receive this message but only the unit with the matching key will respond. This matching unit will respond: "CTS" (clear to send) to the android device.
When the android device receives this message it now also has the ip address of the device. All further commands will be point to point from the android device to the specific ip address of the specific ESP8266 unit with the matching key.
The unit can now process and respond to commands, like "open" or "readTemp".
In the ESP8266UDP directory is also a udpServer.py file which can be used to simulate and android device (if you don't yet have one - The Kyocera Event can be purchased at Best Buy for $40) to command the ESP8266.
Also, in this directory is an Android project written in .java/Eclipse which demonstrates basic connectivity. You can use this project as a skeleton to create your own Android App.