Introduction: ESP8266 Mini Tutorial
In this first introduction to the ESP8266 I will show you what this 5$ wifi board can do and how to handle it properly.
Step 1: Watch the Video!
The video gives you a pretty good idea about what the ESP8266 is and how to handle it. But here I will provide you with some additional info about this board.
Step 2: Where to Buy It?
Here are links for the ESP8266 board on Amazon and Ebay:
Ebay:
Version 1: http://goo.gl/dH2ttJ
Version 3: http://goo.gl/yHukns
Amazon.de:
Version 1:http://amzn.to/1vBRee4
Version 3: http://amzn.to/1tsLtYJ
Amazon.com:
Version 1:http://amzn.to/10FZ8Vl
Version 3:http://amzn.to/1GDx320
Step 3: Useful Sites!
Here is a list of useful sites which can help you when you work with this board:
Commands list, CustomFW, Uploading tool:http://www.electrodragon.com/w/Wi07c
Update tutorial: http://defcon-cc.dyndns.org/wiki/ESP8266#Update
Datasheet (english): http://defcon-cc.dyndns.org/wiki/ESP8266#Update
ESP8266 Forum:http://www.esp8266.com/
Step 4: Awesome Projects!
Here is a list with awesome projects which involves the ESP8266:
Weather station: http://zeflo.com/2014/esp8266-weather-display/
Email notifier: http://hackaday.com/2014/11/03/checking-email-wit...
Online LED dimmer:https://github.com/imjosh/espLedDimmer
Step 5: Make Your Own Projects!
I will definitely find a good project for this little board in the futute. And I hope that so do you.
Feel free to check out my Youtube channel for more awesome projects:
http://www.youtube.com/user/greatscottlab
You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information.
20 Comments
8 years ago on Introduction
Nice introduction! Are the GPIOS that do not have breakouts on your version accessible to a skilled solderer by tying in to the chip pins?
Reply 8 years ago on Introduction
I think that is too tiny to solder to. Well at least for me. But they are accessible.
Reply 5 years ago
Hello,
Dear Sir,
I want to use it for my IoT project?
I want esp-01 to connect my web page and when I turn some thing on/off esp-01 going to listen and tell arduino which pins on/off..
Is that possible????
Question 5 years ago
I want to use it for my IoT project?
I want esp-01 to connect my web page and when I turn some thing on/off esp-01 going to listen and tell arduino which pins on/off..
Is that possible????
6 years ago
Hi, This video does not work
6 years ago
good video tutorial
7 years ago
Hello,
The only problem I'm facing with 8266 is that the soft AP is restricted to 4, which means simultaneously only 4 users can be connected.
Please suggest what should I do if the numbers of users to be connected is more than 50.
Thank you
7 years ago on Introduction
Hallo,
Kann auch auf Deutsch fragen stellen ?
Danke.
8 years ago on Introduction
I finally got the 8266 in the mail, but can't get it to respond to "AT\r\n" (or AT\r, or AT\n, for that matter). I powered it with two alkaline AA batteries (which gives 3.2V to the circuit according to my scope), pulled the chip select pin up to VCC with a 3K resistor, and connected the GND, RX and TX pins to the GND, TX and RX pins of a TTL-level serial unit (BrainLink) set to 115200,8,N,1.
The red LED is on. The blue LED is faintly glowing. But I am not reading any response to the "AT\r\n". I hooked up an oscilloscope, and there is data being sent to the 8266's RX pin, but the 8266's TX pin is showing a constant +3V (I've also seen a constant +0.88V in some experiments).
I tried removing the pullup, or replacing it with a short, but no luck.
Any hints what to try?
Reply 8 years ago on Introduction
you don't need a resistor to bring CH_PD to VCC. i never use this, you should try it without.
when I plug it in to the computer to re-program, i only use the RX/TX on the USB TTL cable. and i connect the GND to GND on arduino and CH_PD+VCC to 3V3 on arduino on another usb port. no resistors..
i was even succesfull sometimes with just using the USB TTL cable alone with the 3V3 and GND pins on it, no arduino necessary. but not always, i usually keep switching back and forth between the two connection methods if there is an error..
when you say "can't get it to respond to "AT\r\n" (or AT\r, or AT\n, for that matter)" is this after the initial setup? are you not even able to re-program it?
Reply 8 years ago on Introduction
I wasn't reprogramming it: I just wanted to use it as-is.
Anyway, the seller sent me a second unit, and the second one responds to AT commands just fine. So I must have just had a defective unit.
8 years ago on Introduction
If I configure the 8266 module to connect to my home WiFi, will it afterwards automatically connect each time it's powered up, or does some serial command need to be sent for it each time to connect?
If it connects automatically on powerup, then one can use it as a super-simple wireless sensor (with significant latency, but that's irrelevant for my application). I'm thinking of using it in conjunction with a Leakfrog water leak detector. The idea is that I would wire 8266 modules to Leakfrog units, so that when a water leak is detected the 8266 is powered up, and connects to WiFi. Some other device running on my network (e.g., an old Android phone or tablet, or maybe a router with custom firmware) will be polling the network and will email and text me to tell me which 8266 module has powered up, and will again email and text when the module has powered down.
But if the 8266 requires a serial command to connect, then a microcontroller is needed to generate that serial command, and that complicates the hardware.
Reply 8 years ago on Introduction
it doesn't need to be reconfigured. once set, it will connect automatically each time the system is powered up.
and yes about the super simple wifi sensors, check this out; http://www.esp8266.com/viewtopic.php?f=8&t=390
and ther is no latency. I watched my DHT11 upload to thingspeak using ESP, live feed, very smooth.
we are working on getting simple analog sensors online and even e-mail/txt you once they are triggered..
Reply 8 years ago on Introduction
Sounds great! I want to run it without any processor attached--just have it fire up when the signal fires, and then have something else on the WiFi network pick up the IP address. This way, the costs per unit are low (I want to do four units) and it's real simple.
Reply 8 years ago on Introduction
something called an SDK attachment for the ESP, which i believe eliminates the need for an arduino.. i don't know what it is exactly, i'm not experienced enough.. you should check out the above useful links for sure, especially the forum !!
Reply 8 years ago on Introduction
That's super-cool.
Do you have any actual numbers on the latency? For another application (wireless foil/epee fencing equipment), it would be really great to have something with latency, in the 1-2 ms range.
Reply 8 years ago on Introduction
i'm going to say that it is more like 3-5ms when it comes to uploading to thingspeak.. on the data sheet it mentions 1-2ms from boot up to send data BUT there are lots of obstacles here. i'm sure you can cut the time down to 1-2ms if you didn't use thingspeak but maybe your own server?! it connects to the wifi network only 1 time as well, only at boot up. afterwards it stays connected until turned off.
Reply 8 years ago on Introduction
Another question: If you power up the device out of the box, without any setup, does it show up as a hotspot? I saw one writeup that suggested they do that, and if so, it would help with troubleshooting. (I.e., if it isn't showing up as a hotspot, it's probably defective.) And it would mean that it could be useful for simple 0-1 sensor communications without ANY serial communications with it ever--since one could have another device detect if the hotspot is up.
Reply 8 years ago on Introduction
if your module is pre-set to AT+CWMODE=3 it should show up as an access point on your phone right away, no setup necessary. usually they are sent as AT+CWMODE=2 however.
=1 is STA
=2 is AP
=3 is both..
but either way you would have to connect to it with a usb ttl cable to list your network address first and then connect to it. it needs to know your SSID,PASS.. I always check with my phone to see if it shows up under wireless networks, it always has showed up..
hope this helps
8 years ago on Introduction
very useful, thanks