Cheap and Easy WiFi (IoT) Tutorial Part 1 - ESP8266 Setup/Intro

  Переглядів 1,106,197

Kevin Darrah

Kevin Darrah

День тому

In this video I'll show you how to get started with the ESP8266; wiring it up, flashing FW, and establishing a TCP connection to a data server
so you can post/retrieve data to/from your microcontroller.
Don't forget about part 2 and 3!
Electrodragon Reference:
www.electrodragon.com/w/Wi07c
Firmware Location:
drive.google.com/folderview?i...
I uploaded the flasher tool here, in case you can't find it:
www.kevindarrah.com/micro/ESP_...
Adapter Board:
• Wireless Module on Bre...
Just search eBay for "ESP8266" to find the module
The Thingspeak Data Server I demo'ed:
thingspeak.com
Yahoo Query Language:
developer.yahoo.com/yql/console/
Original Hackaday Article (how I found out about it)
hackaday.com/2014/08/26/new-ch...
Check out my Tindie store (trigBoard is available) www.tindie.com/stores/kdcircu...
Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
/ kdarrah
Twitter: / kdcircuits
For inquiries or design services:
www.kdcircuits.com

КОМЕНТАРІ: 331
@Manatapped
@Manatapped 7 років тому
Really want to take the time to say thanks for making this video. I only started playing with the ESP8266 (ESP-01) a few months ago and have had nothing but trouble with doing firmware flashes with the Espressif tool. This tutorial got me in touch with some new resources I wasn't aware of and hadn't been able to find on my own. I'm glad to report I've finally had my first successful exchange over serial with this guy via AT commands. Finally the hair-pulling can end and I can get to work on some projects I've had in mind. Cheers and thanks again!
@rkellyp
@rkellyp 9 років тому
patiently waiting for the rest of the series as I have been trying to get these little jewels working correctly for some time. Would love to see hardware/code that demonstrates a round trip request/response that is stable and repeatable. Thanks for all your videos! Good stuff.
@ChrisFredriksson
@ChrisFredriksson 9 років тому
Awesome video Kevin! Really looking forward to the coming videos in this series! =)
@matamorosa
@matamorosa 4 роки тому
my man, never stop uploading! you are giving such good value to this world
@patrickrobinson317
@patrickrobinson317 8 років тому
Great work Kevin. From one nerd to another - I really like your channel !!!
@dianwardiana4674
@dianwardiana4674 3 роки тому
Your tutorial helped me graduate from university 3 years ago. thank you very much Kevin.
@ClaudeDufourmont
@ClaudeDufourmont 2 роки тому
Very interesting subject Kevin, very well presented. I keep in mind the little tips for my next videos focused mainly on the ATtiny 85 (and 84), I will start the ESP32 soon.
@oldbloke135
@oldbloke135 6 років тому
It's amazing to think that this video is less than three years old and now all that circuitry can be replaced with a Wemos D1 mini board smaller than an old SD card!
@abpccpba
@abpccpba 9 років тому
Have not heard from you in some time. Always interested in what you are doing. Good introduction a little to fast for old me. Looking forward to the new uploads. Thank You Paul
@malikjunaid1
@malikjunaid1 7 років тому
great startup tutorial, gotta give it a try for sure, and just subscribed too. keep the good stuff coming.
@tb6009
@tb6009 8 років тому
Thank you... I love it. I got a concept of 8266 from your movie. Thank you and Thank you again !!!!!
@charlesgoehring3445
@charlesgoehring3445 4 роки тому
Got the link off of Amazon product page. I think these are still viable for many applications. Thanks for presenting a motivational video.
@saionjik
@saionjik 8 років тому
The ESP8266 is really cool. Can't wait to get a few of these going.
@2tallyCool
@2tallyCool 9 років тому
Really can't wait for your next tutorial about ESP8266 applications :)
@SidharthMakhija
@SidharthMakhija 9 років тому
Great video...didn't know about this module until now...will check it out!
@jean-baptistelasselle4562
@jean-baptistelasselle4562 8 років тому
Hye, wanted to leave a thank you for sharing, (it's all great we nowadays are able to so cheaply play open source together with electronics ! ^^
@jakewaynetaylor
@jakewaynetaylor 9 років тому
Very informative, thanks a lot! Cant wait for the next video
@angelcasado5127
@angelcasado5127 9 років тому
Great video indeed ... looking forward for the next part. AC/.
@F74D3N8r0T
@F74D3N8r0T 2 роки тому
Guess yes its a long video. Unfortunately I will have to watch it for several times to maybe get all the information out of it and maybe able to apply it to my project. Thank you for kickstarting me!
@VarghaHokmran
@VarghaHokmran 8 років тому
Thanks for sharing this info with all details. This is so awesome
@acunaa92
@acunaa92 8 років тому
Great job on your videos man, keep it up!
@MrHjsalom
@MrHjsalom 8 років тому
Very good video. It's very good for educating others. Thanks for your efforts.
@yezhao26
@yezhao26 4 роки тому
I am a beginner in IoT. thanks for the helpful tutorial.
@thomasrobin
@thomasrobin 8 років тому
You are a life saver !!! Thank you so much :) helped me a lot
@partouelectric2353
@partouelectric2353 6 років тому
Thanks Kevin for the grate video What version of 8266 are you using ie 8266 ??
@jokernepalm
@jokernepalm 8 років тому
Since when dicaprio started to do microcontroller tutorials?
@MohammadMansourDroid
@MohammadMansourDroid 9 років тому
Great vid as usual. This little board has been out since July, no library yet ?!
@TomaszSky
@TomaszSky 9 років тому
Kevin, Thanks for sharing this. When you said that NRF24L01 node mesh network could be replaced with ESP8266, did you accounted for superior power requirements of NRF over ESP? If I had all sensor nodes running from DC it would not be feasible solution. If you know the way to use ESP in low power mode please share. Thank you.
@barakweizman3353
@barakweizman3353 6 років тому
Great video! I have a question, can I use the S8050 transistor instead of the ZN3904? Should not be a problem right?
@charithab2027
@charithab2027 8 років тому
Hey Kevin ! That video was very helpful. I've just started working on esp 8266. I'll be using it as a wifi module for msp430f5529 to send and receive data. Also... may I say ... my god ... you sound like owen wilson :D
@hamzaqasem9031
@hamzaqasem9031 4 роки тому
a great great tutorial ill put this as a part of my graduation project :*
@fani625able
@fani625able 6 років тому
Great and clear instruction. I need help, I have 02 esp module which get stuck during play with some AT command now one of them is giving solid state blue led on all the time. I cam flush the firmware but after that AT command not working. 2nd module working fine but after 1st power off and on its not working sketch removed.
@samermansour2157
@samermansour2157 8 років тому
Hi Kevin. Please do you know how to send and receive data over wifi by using only wifi layer 2 (i.e. without using IP. No IP sockets)? Thanks
@1Patient
@1Patient 9 років тому
Thanks...Happy Holidays.
@spacewolfjr
@spacewolfjr 3 роки тому
That's really clever to use the ultrasound module, it beats trying to rig up something on the tracks, etc. Would you still use it today?
@pepocasver
@pepocasver 8 років тому
Hello,Nice work. One doubt. What about between TX (esp8266) to RX (Arduino) is necesary any other VDC converter?
@AnkitkumarChheda
@AnkitkumarChheda 8 років тому
@Kevin *thumbs up* nice tutorial series you got here....
@Science3D
@Science3D 7 років тому
Hi, your videos are great ! I found this series and I will take time to listen to your videos on the ESP8266 Setup/Intro but, just to be sure, I would like to send an SMS message through this module, do you cover that topic ? Thanks
@mogoodi1
@mogoodi1 8 років тому
Very informative. I hope you publish one with NodeMCU firmware too.
@bharathishrinivasan
@bharathishrinivasan 6 років тому
Really helpful, Kevin!
@felixcat4346
@felixcat4346 8 років тому
Here´s a heads up, I just checked the data sheet and it does support I2C and SPI protocols as well.
@kazemzahedi1047
@kazemzahedi1047 6 років тому
Thank you fore your nice video. How can I send several parameters from a PC or cell phone to the board through Wifi one by one, Can I use HTTP command for sending them
@hind2202
@hind2202 6 років тому
thanks for the tutorial. I do have a Yun arduino card, can it replace the Uno card and the esp?
@capiberra4118
@capiberra4118 7 років тому
Thanks Kev. Interesting stuff.
@praveengonsalves4967
@praveengonsalves4967 8 років тому
​Hello, Thanks for the tutorials, 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
@drissbaddouri6015
@drissbaddouri6015 6 років тому
hello nice tutorial, I was wondering if you could help me I want to store data in AWS iot using AT command and I dont know what to send to AWS after AT+CIPSEND ? and also if AT command can support authentification because connecting to AWS requires authentification ?
@JerryDodge
@JerryDodge 6 років тому
14:26 That app was written in Delphi, I can tell. They used one of the built-in VCL styles...
@nicoyanez
@nicoyanez 9 років тому
cool, i want to see more videos like this , thanks
@MPElectronique
@MPElectronique 8 років тому
Hi. How do you hook it up to you arduino uno ? I tried several setups and doesnt seems to work properly.. thank you! Marc.
@RakeshRaveendran
@RakeshRaveendran 8 років тому
neatly explained.. bravo...
@dhruvkhullar6153
@dhruvkhullar6153 4 роки тому
Hi Kevin, can you please tell me what logic have you used for checking the status or health of this project ? In short, how to check if the project is "Online" ?
@arcrides6841
@arcrides6841 8 років тому
Hey, total beginner here just trying to follow this exactly. The only thing I'm missing is what value capacitors did you use that go from positive to ground on your breadboard? Any advice would be greatly appreciated.
@clinton11994
@clinton11994 8 років тому
Nice work Darrah ! can you please share the circuit schematic ?
@jacquesvanderwesthuizen7287
@jacquesvanderwesthuizen7287 8 років тому
Would you recommend this product for video transmission? You use UART for the AT commands and UART would be too slow for video transmission. How can one use the SPI interface to get frames from microcontroler to the module so that the module can transmit the video?
@gurpreetjaspal
@gurpreetjaspal 8 років тому
Hi, Can i have 2 of them connected as clients that communicate using my router as AP. Just like all other wifi devices communicate currently at my home.
@hoboat33
@hoboat33 8 років тому
Great video, small snag. Toward the end when I enter the "Get" statement the first comment back is "busy s..." then "Recv 110 bytes" then same status comments as yours but instead of getting the data I'm getting "10,CLOSED" the first time "20,CLOSED" the second time "30,CLOSED" the third time, etc. Where could I have fat fingered? Thanks.
@JesusTejerinaRivera
@JesusTejerinaRivera 8 років тому
Hi, thanks for your videos. Please, could you make a video of how to transmit data (round trip) for I2C between an Arduino UNO and ESP8266-01 module (using your normal firmware AT)? Logically their respective outline and sketch. Thank you.
@imalegoman50
@imalegoman50 9 років тому
Hey kevin, you should check out the "spark photon" that's coming out this March. It looks like a really cheap way to connect projects to the IoT. Seems easier than what you were doing in this video maybe. Just thought I would share. :) can't wait for the rest of this series though!
@Kevindarrah
@Kevindarrah 9 років тому
thanks, I did not know about this module. I'll definitely pick one up
@imalegoman50
@imalegoman50 9 років тому
And... hopefully you could do a tutorial.... for some of us newbies... :D
@DeepankarMaithani
@DeepankarMaithani 9 років тому
from the same makers spark core is already available,you can go with that meanwhile.
@ProtoG42
@ProtoG42 9 років тому
Kevin Darrah The spark core is also awesome. Their software is great and you can integrate it with IFTTT.
@riverdog8474
@riverdog8474 9 років тому
Thanks. Good tutorial.
@eschamion
@eschamion 6 років тому
Is it possible to connect a WiFi module to an old remote or pager and use it as a WiFi remote? Perhaps for a garage door remote to connect to a raspberry pi?
@LuenWarneke
@LuenWarneke 9 років тому
Hi. In this video (part 1), you show your 'demo interface' sending data to the Arduino. In part 2 you link to your brilliant, well written code, but in the code you only have get_youtube() and get_current_temp(). How would you post data to the board, like turning on a pin or sending configuration settings? Thank you.
@buildfrom
@buildfrom 9 років тому
Excellent video. Would love to get a working knowledge of Arduino and find IoT fascinating.
@Fungineers
@Fungineers 6 років тому
Awesome work!
@Bianchi77
@Bianchi77 10 місяців тому
Nice video shot, thank you for sharing, keep it up :)
@jaakkooksa5374
@jaakkooksa5374 6 років тому
You could use one of those 3.3V 8MHz Arduinos to get rid of the logic level conversion and multiple operating voltage problem, no?
@thomaschambers9481
@thomaschambers9481 5 років тому
Does the ESP8266 require reprogramming with firm ware if power to the card is shut off... what about the scriipt is it also lost on power loss or is it in some sort of memory...
@nghiabuidaily
@nghiabuidaily 3 роки тому
Can you explain how the 2N3904 shift circuit work? many thanks :))
@arvindh4327
@arvindh4327 2 роки тому
How do I level up if I need to communicate from 8266 tx to 5v rx(uno/nano)?
@nomadic-insomniac
@nomadic-insomniac 7 років тому
can i use this chip without an extra micro controller since it has a soc ? i want to run a single sensor via I2C and send data via wifi to a pc .
@vikrantsingh47
@vikrantsingh47 4 роки тому
can we use Adafruit V1 Motor Driver Shield with esp8266?
@timcarlo1234
@timcarlo1234 9 років тому
Kevin, Thanks for sharing with the world!!! Silly question for anyone. It looks like the rx/tx on a Due is 3v3, therefore no signal conversion/buffering needed, correct?
@Kevindarrah
@Kevindarrah 9 років тому
yep! you should be good to go, might still want an external 3.3 supply for the ESP though
@kamals4905
@kamals4905 8 років тому
hey kevin.,, IS THAT POSSIBLE TO ON & OFF gpio OF ESP8266 WITH AT COMMANDS?'
@playinmyblues
@playinmyblues 8 років тому
@ Kevin Darrah: It appears the Google Drive files link for the AT stuff is broken.
@TheMrFrontera
@TheMrFrontera 7 років тому
Do i still need a windows OS to flash the ESP8266? I noticed when flashing he was using Windows, then the rest of the time he was using OSX. If I can't do it with OSX, can i do it with linux on my raspberry pi?
@gokulg7539
@gokulg7539 9 років тому
dude which engineering did you learn? I'm planning to go for mechanical........if i do can i get used with arduino boards and programming and stuff or should i choose something else ........?? help me please...
@FishKungfu
@FishKungfu 8 років тому
Holy crap you look like Peter Quinn from the Homeland tv show!
@Kevindarrah
@Kevindarrah 8 років тому
+Fish Kungfu ha, haven't heard that one before!
@rodrigosmmiguel
@rodrigosmmiguel 8 років тому
+Fish Kungfu , That is true, lol
@ChrisBenard
@ChrisBenard 8 років тому
+Kevin Darrah I told my wife the same thing the first time I saw you on the Roku. "Holy shit it's Quinn!"
@ftbtd
@ftbtd 8 років тому
+Fish Kungfu A Young version of Rupert Friend ;)
@vikasutube100
@vikasutube100 6 років тому
this was my first thought :D
@lawaver
@lawaver 5 років тому
Hi, very helpful tutorial. Can't access the yahoo query language console. Is there any other link you can offer to access this. regards....
@saqibsohail7812
@saqibsohail7812 8 років тому
Hi Keren, You seems like ESP expert and you can help me out. I am using esp8266 and arduino uno (chinese version) as serial converter but my esp isn't working even the led on esp isn't blinking. I have checked the esp_input voltage and found that to 2.8 volts. I am badly stuck, can you please suggest the way forward. Thanks.
@sailinstyle
@sailinstyle 6 років тому
So every time this thing power cycles it comes back non-functional until you give it those few commands? No way to make it remember these mode changes, and connect to a preset wifi ssid on power up? You'd have to have something connected to the module to script these commands out to it every power cycle? What am I missing here? These things should be completely autonomous once configured...
@manutube8080
@manutube8080 9 років тому
Really like this new stuff. I just want to know two things, how do you power up your arduino and how much power does the whole project draws. thx
@billglass5160
@billglass5160 3 роки тому
I can tell you that the ESP-01 module is a power hungry beast that can consume 150 mA at times. I'm presently monitoring a bunch of stuff & sending it to ThingSpeak with an Arduino Nano & ESP-01. My Nano can only provide 50 mA of 3.3V to the ESP-01. Overload until I added an AMS1117 3.3V regulator from my 5V external power.
@Retinus
@Retinus 6 років тому
Very interesting! Thx!
@alexellis2
@alexellis2 9 років тому
I see you make a request to the weather API, but once you got the header and JSON payload back, you didn't do anything with it. Have you moved on to parse and respond to the value?
@franciscofernandez9386
@franciscofernandez9386 8 років тому
"So that is the hardware setup, really nothing to it".. I feel stupid XD Nice video thou... will watch a thousand times and try to understand the basics.
@bravesfan15
@bravesfan15 7 років тому
Since this video is a couple of years old now, the latest AT firmware can be found at www.electrodragon.com/w/File:V2.0_AT_Firmware(ESP).zip And the flash tool that I got to work can be found at esp8266internetofthings.blogspot.in/2015/10/how-to-flash-at-commands-firmware-in.html Just remember that your GPIO pin needs to be pulled to GND during flashing and when the tool finishes, switch it back to VCC and press reset once before unplugging and continuing.
@PatnaikUC
@PatnaikUC 9 років тому
The "SSID" and the "password" is compulsorily to be written in the program.Thus for every other wifi router one has to enter that SSID and password. It will be better that instead of the SSID and the password written in the program , a computer interface is made on a terminal where the SSID and the password for the WiFi router are entered and then only the ESP8266 is connected to the Arduino for the rest of the program to run for whatever output is required
@tomd6410
@tomd6410 9 років тому
Patnaik UC Easily done with a slight coding change to use the EEPROM. Nothing to be too bothered about.
@fardousahmed3883
@fardousahmed3883 5 років тому
@@tomd6410 can u provide some tutorial on it?
@DownhillAllTheWay
@DownhillAllTheWay 7 років тому
Excellent tutorial, but what happened at 18:20? The video went narrow, so only a small portion of the screen could be seen. It came back at 20:10
@milindkhurd
@milindkhurd 9 років тому
Hello Kevin, can you please give more details how the 2N3904 works as a logic level shifter. Still a newbie. I ordered a few BSS138, I have few of 2N3904, cannot wait to connect my ESP8266-07. Can you also let me know why you connected the GPIO02 to 3.3v, any particular reason? I think to use the esp I need REST, CH_PD, GPIO0 to be high only. Please let me know. Thanks a lot for all the good videos you have been posting.
@johnvbanta
@johnvbanta 9 років тому
I am wondering the same question (how the 2N3904 level shifter works). Specifically not following why the emitter is hooked to the 5v arduino and collector to the RX pin on the ESP8266 - seems backwards to me. Also curious about why GPIO2 is getting 3.3v.
@Kevindarrah
@Kevindarrah 9 років тому
john banta sounds like a good video idea. The same thing can be accomplished with an N-Channel MOSFET. This isn't something I can break down in a comment though... stay tuned
@mk6595
@mk6595 9 років тому
It's easy to break down: The base of the transistor keeps the collector-emitter junction always "on". But the Arduino TX pin either allows or doesn't allow current to flow. When the Arduino TX pin is high then no current flows through the transistor and the ESP8266 RX pin sees the 3.3V (high). When the Arduino TX pin is low then current flows through the transistor and the ESP8266 RX pin sees almost 0V (low).
@monajitsaha9652
@monajitsaha9652 7 років тому
Hi I want to know that can we use esp8266 - 01 as smd component
@YuryPenkerton
@YuryPenkerton 9 років тому
Waiting for part 2
@urielmorales1743
@urielmorales1743 7 років тому
HI WHNE I USE THE COMMAND AT+CWLAP IT SEND`S ME ERROR, WAHT CAN I DO?
@nagarajupetla3994
@nagarajupetla3994 7 років тому
I have done with all the AT commands and it shows "send ok" in serial monitor but it does not show on thingspeak channel
@dbcenterofstudies
@dbcenterofstudies 6 років тому
Hi, noobs question. Is the tutorials for ESP8266 applicable the same for ESP32 Nano32? Thanks.
@AV1461
@AV1461 7 років тому
It works!!
@chrisleech1565
@chrisleech1565 8 років тому
Love to know where you bought the USB to serial. Looks like a great unit. I am dealing with some 3v3/5v FTDI I got from Ebay that are running fake chips Seems this is all you can buy from Ebay at present. I am also checking out NodeMCU, and ESP8266 Basic, both look promising. Great vid KD. Regards C
@Kevindarrah
@Kevindarrah 8 років тому
+Chris Leech I can send you one - I used to sell them. Send me an email - kevin (at) kdcircuits (dot) com
@shaizemach8487
@shaizemach8487 8 років тому
I'm also looking for a good USB to serial adapter, any recommendations? +Kevin Darrah
@Kevindarrah
@Kevindarrah 8 років тому
+Shai Zemach shoot me an email
@ishujaiswal5487
@ishujaiswal5487 8 років тому
Thank you sir for great videos , but i am facing problems to create server and i am using a proxy internet connection . please solve my problem. This is .... I need your help with the following problem:the device which needs to connect via a proxy to the internet. I can't set a proxy at the device directly.,THEREFORE CAN'T ACCESS INTERNET FROM WIFI ROUTER. THANK U
@edwardarruda7215
@edwardarruda7215 6 років тому
Can I set up remote triggered surveillance stream video?
@aimanrosli2461
@aimanrosli2461 5 років тому
can the 8051 microcontroller being interface with iot ????
@imcnx1563
@imcnx1563 4 роки тому
Hi, if I want to connect 2 différent WiFi (esp8266 and ISM43362-M3G-L44) it’s possible and if yes how can I send at command if they don’t have the same?
@ICStation2013
@ICStation2013 6 років тому
Awesome video project!!! Thumbs up~ :)
@akshaybhavsar2911
@akshaybhavsar2911 6 років тому
Hi.It has only one UART.If i want to interface GSM module to this module.Is it feasible?
Cheap and Easy WiFi (IoT) Tutorial Part 2 - ESP8266 Arduino Code
35:39
Kevin Darrah
Переглядів 184 тис.
How to add WiFi Control to any project || ESP32 Beginner's Guide
10:44
КАК ГЛОТАЮТ ШПАГУ?😳
00:33
Masomka
Переглядів 2,1 млн
Эффект Карбонаро и пончики
01:01
История одного вокалиста
Переглядів 2,6 млн
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Переглядів 9 млн
WIFI module ESP8266 - AT commands & sending Data to WebBrowser
12:36
Saravanan AL
Переглядів 344 тис.
ESP8266 - Getting Started & Connected.
15:47
Equinoxe
Переглядів 441 тис.
451 Which Processor can kill the ESP32?
11:24
Andreas Spiess
Переглядів 331 тис.
VLANs in OpenWrt 21
28:27
OneMarcFifty
Переглядів 155 тис.
Easiest ESP8266 Tutorial (Using arduino)
3:46
LiveSparks
Переглядів 527 тис.
ESP8266 WiFi Access Point Examples with the Arduino IDE
14:49
David Watts
Переглядів 138 тис.
Tutorial Arduino ITA 27: modulo WiFi ESP8266
11:43
Tech Maker [Italian Tech Project]
Переглядів 17 тис.
ESPHome Basic Setup For All ESP Devices
44:21
Home Automator
Переглядів 4,6 тис.
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Переглядів 1 млн
Which Phone Unlock Code Will You Choose? 🤔️
0:12
Game9bit
Переглядів 6 млн
''Бесплатные умные'' домофоны для глупых людей. За чей счет банкет?
12:48
Вадим Шегалов.Оккультные игры элиты
Переглядів 33 тис.
КУПИЛ SAMSUNG GALAXY S24 ULTRA ЗА 88000 РУБЛЕЙ!
27:29
DimaViper
Переглядів 58 тис.