Go Down

Topic: ESP8266 (Read 118 times) previous topic - next topic

Paulware

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.:  https://github.com/Paulware/ESP8266

robtillaart

What is the ESP8266?
Have a link to a datasheet or other info?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Chagrin

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.

oric_dan

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,

http://www.ebay.com/itm/ESP8266-Serial-WIFI-Wireless-TransceiveR-Module-Send-Receive-LWIP-AP-STA-/251636525924?pt=LH_DefaultDomain_0&hash=item3a96b4ab64

Paulware

#4
Oct 22, 2014, 07:01 am Last Edit: Today at 05:56 am by Paulware
Thanks for the responses.  I added a UDP example: https://github.com/Paulware/ESP8266.  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.

Go Up