Connecting Arduino Uno and ESP8266 WiFi Module

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2020
  • Explains the pin diagram of ESP 8266 and how to connect it to Arduino Uno then setup the EsP8266 driver library in Arduino IDE and start sending AT commands to ESP8266.
    ESP8266 Driver Library arduino.esp8266.com/stable/pac...
    Get the complete course Beginning Arduino Uno Programming in C++ on Udemy www.udemy.com/course/beginnin...
  • เพลง

ความคิดเห็น • 95

  • @marianakrysteva2876
    @marianakrysteva2876 ปีที่แล้ว +1

    Finally a solution that works. Thank you, sir!

  • @rahma8706
    @rahma8706 2 ปีที่แล้ว +2

    Thank you so so much . you saved my career

  • @yuvaranik2057
    @yuvaranik2057 8 หลายเดือนก่อน +1

    THANK YOU A LOT.

  • @radeonblue1816
    @radeonblue1816 2 ปีที่แล้ว +20

    This video failed to help as many others. It is so frustrating dealing with this ESP8266 module 01 with arduino.

    • @ZorlacSkater
      @ZorlacSkater 3 หลายเดือนก่อน

      Yep, it is cheap trash from china.

    • @AbuBakar-um5wc
      @AbuBakar-um5wc 3 หลายเดือนก่อน

      same here

    • @AbuBakar-um5wc
      @AbuBakar-um5wc 3 หลายเดือนก่อน

      had you found any solution??

    • @jumbo999614
      @jumbo999614 2 หลายเดือนก่อน

      @@AbuBakar-um5wc Did you upgrade your esp8266-esp01 to new firmware that supports AT command?
      I had the same problem. Now I no longer have the problem.

    • @ebaziuk
      @ebaziuk หลายเดือนก่อน +1

      My module worked when I set the baud to 115200. Try different speeds.

  • @ThomasShelby-bt7mn
    @ThomasShelby-bt7mn ปีที่แล้ว

    Greetings sir. What will be differ if I am using a Arduino nano

  • @user-og7sm7cu8t
    @user-og7sm7cu8t 6 หลายเดือนก่อน

    can i use arduino uno r3 in connecting with es8266 wifi module?

  • @muhammadaziziekmalzulkifle2549
    @muhammadaziziekmalzulkifle2549 ปีที่แล้ว

    Hi i use this setup how i want to sent data using mqtt to adafruit?

  • @thegoodsamaritan4333
    @thegoodsamaritan4333 2 ปีที่แล้ว

    can i use this method in arduino mega 2560?

  • @pushparajnarayanan6096
    @pushparajnarayanan6096 2 ปีที่แล้ว +1

    Sir, In which wire can connect these two? and another question is, we can connect with app or sim card using esp8266? If connect which device connect sim card?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      Which wires do you mean? And I haven't used the sim card before.

  • @jeromenadoma9980
    @jeromenadoma9980 2 ปีที่แล้ว +2

    Can i use this setup if I only want to connect arduino into an internet to connect my arduino into a cloud server? or do you have any suggestions... Thank You.. I just really need answers...

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      yes, you can, there is an http client library for that

  • @arvindh4327
    @arvindh4327 2 ปีที่แล้ว +3

    8266 tx & rx are 3.3v reff as per data sheet. Shouldn't we need to level shift tx & rx channel btw 8266 and uno?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      Adding resistors should be a good idea for a production-ready system.

    • @hind7360
      @hind7360 2 ปีที่แล้ว

      @@MustafaQamarudDin Where should the resistors be added exactly? I've seen many different wirings and at this point I might just not add any resistors at all.

    • @ZorlacSkater
      @ZorlacSkater 3 หลายเดือนก่อน

      @@hind7360 maybe at the TX, because if you upload a sketch, then the TX line is used to transmit data from the arduino to your ESP chip.
      EDIT: I thought about it again, and I might be wrong, maybe the data is coming from the RX because the ESP8266 receives them from the Arduino...

    • @hind7360
      @hind7360 3 หลายเดือนก่อน +1

      Appreciate your reply, I finished that course and graduated and got a job lol don't really know when I'm gonna need this info next but thank you !!!@@ZorlacSkater

    • @ZorlacSkater
      @ZorlacSkater 3 หลายเดือนก่อน

      @@hind7360 Great, congratulations :)
      I thought about it again, and I might be wrong, maybe the data is coming from the RX because the ESP8266 receives them from the Arduino...

  • @muratdelambreta3393
    @muratdelambreta3393 ปีที่แล้ว

    sir how you connect that esp to my wifi ?

  • @panagiotishaidos1989
    @panagiotishaidos1989 2 ปีที่แล้ว +7

    shouldn't the RX pin from ESP8266 connect with the TX pin of UNO and the TX pin from the ESP8266 connect with the RX of the UNO?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว +2

      I may assume the same since semantically the receiver connects to a transmitter, but in this case, the semantic logic doesn't hold. I would however suggest trying it out since I have tried it out as well.

    • @shalabyer
      @shalabyer ปีที่แล้ว +1

      that's only needed when you need the two devices to talk to each other,
      if you want to make the Arduino UNO as a bridge from the computer to the esp then connect RX to RX and TX to TX,however, don't forget to connect the NGD to RESET in that case in the Arduino

    • @ZorlacSkater
      @ZorlacSkater 3 หลายเดือนก่อน

      @@shalabyer What is NGD?

    • @yhsp976
      @yhsp976 3 หลายเดือนก่อน

      ​@@ZorlacSkater GND

  • @pinasforever545
    @pinasforever545 2 ปีที่แล้ว

    Nice

  • @36goldfinger
    @36goldfinger 2 ปีที่แล้ว +2

    In Tools --> Board: Why did you selected "Arduino Uno" instead of "Generic ESP8266 Module" ?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว +5

      This is a very good question. The programmer is still Arduino and ESP is only used as a wireless extension. That's why everything is Arduino.

  • @omaralaa6967
    @omaralaa6967 2 ปีที่แล้ว +1

    I need help please, I have a project that I should have an IoT system, and I chose an arduino measuring temperature of the room, and send the data from arduino to html page I have created using MQTT, can you help me please ?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว +1

      I am sorry I can't get involved in coding projects, but I wish you good luck.

  • @ganeshsingh4702
    @ganeshsingh4702 2 ปีที่แล้ว +5

    I have connected everything properly and have downloaded libraries but when I type AT command into the serial monitor nothing shows up can anyone please help me.

    • @MustafaQamarudDin
      @MustafaQamarudDin  ปีที่แล้ว

      it usually happens when the circuit connections are not correct usually the RX/TX connection.

    • @aomo5293
      @aomo5293 ปีที่แล้ว

      @@MustafaQamarudDin
      RS --> TX
      TX --> RX
      right ?

    • @jumbo999614
      @jumbo999614 2 หลายเดือนก่อน

      Did you upgrade your esp8266-esp01 to new firmware that supports AT command?
      I had the same problem. Now I no longer the problem.

  • @ZorlacSkater
    @ZorlacSkater 3 หลายเดือนก่อน +1

    Be cautious, this can destroy your board, because the Arduino uses 5 Volts for RX and TX and the ESP does only accept 3,3V! So it will destroy your chip if you don't reduce the volts first!

  • @mohammedkamran8559
    @mohammedkamran8559 2 ปีที่แล้ว +1

    When I connect the CH_PD pin to 3.3V the the wifi module power indicator doesn't glow,why is that?,when I disconnect the CH_PD pin it glows and my Arduino as well gets disconnected when the CH_PD pin is connected to the vcc pin

    • @ojkwame
      @ojkwame 6 หลายเดือนก่อน

      I get the same problem

  • @BadBoy-up3fe
    @BadBoy-up3fe 3 ปีที่แล้ว

    Wowo

  • @shalubarnwal3733
    @shalubarnwal3733 3 ปีที่แล้ว +2

    Sir, we need to attach resistor also, to reduce the risk of short circuit???

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 ปีที่แล้ว +3

      I believe you should for a more durable setup. I keep it simple though in this video because I was more interested in showing the AT command set.

  • @sm-op9zg
    @sm-op9zg 2 ปีที่แล้ว

    Sir will this last for 1 day..? Or shld we use the resistor..?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว +1

      This is not tested for long usage, only prototype the idea for illustrative purposes.

  • @RauanShyrynbekovKING
    @RauanShyrynbekovKING 2 ปีที่แล้ว

    How to connect ESP8266 to the firebase?

  • @jumbo999614
    @jumbo999614 2 หลายเดือนก่อน

    Rx to Rx and TX to Tx for testing the AT command. Now I want to make Arduino Wifi project. Should I make cross connection like Tx to Rx and Rx to TX?

    • @kidtriggerfanclubpresident5285
      @kidtriggerfanclubpresident5285 2 หลายเดือนก่อน

      im doing a similar project, have you found an answer to this?

    • @jumbo999614
      @jumbo999614 2 หลายเดือนก่อน

      @ggerfanclubpresident5285 I'm able to make ESP01 accept AT commands now.
      Now I'm still searching on TH-cam tutorial for project. I'm not sure the wiring is the same if I need ESP01 to do more than testing AT commands. For example, I want ESP01 to host a webpage. When user click some buttons on webpage, ESP01 then sends command to Arduino UNO to control devices that connected to its GPIOs.

  • @harresVS
    @harresVS 2 ปีที่แล้ว +1

    umm my serial monitor just prints out garbage on 9600 bauds and on any other baud level and my pins are double checked... any ideas?

    • @harresVS
      @harresVS 2 ปีที่แล้ว

      Hey I found a fix for my problem, I had to reinstall the ESP code to the factory defaults, If anyone is like me and only have at their belt an arduino and an ESP you should try learning how to configure the arduino to work as a pass trough for the data in the edit mode for the ESP. After you do that you can find online some software that writes the factory default code on your COM port. I sadly am in a hurry and cant really provide links on how to do this neither found a video that does all of this at once, but atleast I hope I can shine a light on the path to fixing the ESP. Also there is a chance based on how or what was the condition of the ESP to just be damaged and rendered unusable

  • @DineshKumar-rr3ge
    @DineshKumar-rr3ge ปีที่แล้ว

    Hello sir,
    Can I try OTA coding to Arduino Uno using esp 8266?

    • @thanismurugathas2929
      @thanismurugathas2929 ปีที่แล้ว

      im not entirely sure of your question but hopefully this video will help: th-cam.com/video/gFK2EDNpIeM/w-d-xo.html

  • @muhdfirdaus4689
    @muhdfirdaus4689 3 ปีที่แล้ว +1

    i follow all the steps but when i write at serial monitor the output not produce anything. Can you describe the problem?

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 ปีที่แล้ว

      The BAUD rate is usually the problem, try different BAUD and see if you get a response.

    • @blackwhite5606
      @blackwhite5606 3 ปีที่แล้ว

      @@MustafaQamarudDin nothing happen sir

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 ปีที่แล้ว

      @@blackwhite5606 Are you sure of the wiring?

    • @cpatriciasousa
      @cpatriciasousa 3 ปีที่แล้ว +2

      I am having the same problem here and everything is connected

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 ปีที่แล้ว

      @@cpatriciasousa unfortunately the only way to find out is to make sure the uno has an empty sketch and then try all different baudrates unless there is a firewall or similar on Windows. I have only ever used Linux Ubuntu.

  • @milahynohtna3074
    @milahynohtna3074 ปีที่แล้ว

    sir, i have connected all the wire correcly and set the baudrate at 115200, but in serial monitor spamming "AT" (not responding), how can i solve that? please give me solution

    • @aomo5293
      @aomo5293 ปีที่แล้ว

      same thing ! did you resolve it?

    • @_traubenkuchen_
      @_traubenkuchen_ ปีที่แล้ว

      @@aomo5293 try 9600 baud

    • @jumbo999614
      @jumbo999614 2 หลายเดือนก่อน

      Did you upgrade your esp8266-esp01 to new firmware that supports AT command?
      I had the same problem. Now I no longer the problem.

  • @prathambhatnagar8653
    @prathambhatnagar8653 2 ปีที่แล้ว +1

    my ESP chip is getting hotter when I connect CH_pd to 3.3v can you tell what causing that ?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      I am not sure why this happens, but it might be worth adding a cooler fan

  • @jaiemandi502
    @jaiemandi502 2 ปีที่แล้ว +1

    I got some garbage data what should I do......and i am requesting to send me to exact hardware connection .

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      have you tried a different board?

    • @jaiemandi502
      @jaiemandi502 2 ปีที่แล้ว

      No i am using Arduino Uno and same connection what u said u in video but I didn't get reply from esp82

  • @zarifsukri6822
    @zarifsukri6822 2 ปีที่แล้ว +1

    why AT command no display at my arduino IDE?

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      Please review the circuit connections again and try different Baud rates.

    • @jumbo999614
      @jumbo999614 2 หลายเดือนก่อน

      Did you upgrade your esp8266-esp01 to new firmware that supports AT command?
      I had the same problem. Now I no longer the problem.

    • @mutjk7833
      @mutjk7833 หลายเดือนก่อน

      @@jumbo999614 explain to me how

  • @HamedAdefuwa
    @HamedAdefuwa 2 ปีที่แล้ว

    dealing with these modules is beyond frustrating. This didn't work for me. No response on the serial monitor.

    • @jumbo999614
      @jumbo999614 2 หลายเดือนก่อน

      Did you upgrade your esp8266-esp01 to new firmware that supports AT command?
      I had the same problem. Now I no longer have the problem.

    • @mutjk7833
      @mutjk7833 2 หลายเดือนก่อน

      @@jumbo999614 How do you upgrade?

  • @ZorlacSkater
    @ZorlacSkater 4 หลายเดือนก่อน

    Does not work, I had to use 115200 for Baud

  • @hind7360
    @hind7360 2 ปีที่แล้ว

    I LOVE YOU

  • @mourad3205
    @mourad3205 2 ปีที่แล้ว +1

    Problème de comenecation esp8266 et téléphone

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      I am sorry I didn't understand your question. What's the problem again?

  • @suraj4941
    @suraj4941 3 ปีที่แล้ว +2

    Hello, I am getting error that Timed out waiting for header

  • @aledo3D
    @aledo3D 5 หลายเดือนก่อน

    "on arduino"

  • @kavitayaranal3121
    @kavitayaranal3121 2 ปีที่แล้ว +1

    Sir how you connected 3 pins to the 3.3 v without using breadboard ?? Give some suggestions sir

    • @MustafaQamarudDin
      @MustafaQamarudDin  2 ปีที่แล้ว

      I am using a breadboard

    • @akashdesai3881
      @akashdesai3881 4 หลายเดือนก่อน

      u buy broo

    • @ZorlacSkater
      @ZorlacSkater 4 หลายเดือนก่อน

      Just solder 3 onto the same cable and connect it to 3,3 V

    • @jumbo999614
      @jumbo999614 2 หลายเดือนก่อน

      there is a device that let you temporarily connect wires together. Just insert wires into the hole and clamp it down.
      If you don't have breadboard, you can use that.
      But it will get complicated if there are more wires to connect.
      So it's best to use breadboard.

  • @ojkwame
    @ojkwame 6 หลายเดือนก่อน

    Hello please I get ‘Failed to connect to esp8266 invalid head of packet (0x00)’ error .
    Please what do I do ?
    Connecting Ch_pd to power turns off the esp8266’s lights.
    Please help !

    • @ojkwame
      @ojkwame 6 หลายเดือนก่อน

      I did your connection and it changed to ‘ Failed to connect to esp8266 invalid head of packet (0x7F)’

    • @ojkwame
      @ojkwame 6 หลายเดือนก่อน

      I changed tx-rx and now I have 0xFE error😢

  • @imusingwindowsbtw1469
    @imusingwindowsbtw1469 2 ปีที่แล้ว

    ⛔⛔Attention, do not blindly follow the pin out, this will destroy your ESP8266!! You can not connect the 5 volt levels from the Arduino directly to the ESP8266.

    • @T.R.E.D.
      @T.R.E.D. 2 ปีที่แล้ว

      It looks to me like he said 3.3v, nothing about 5v

    • @jasonorozco1587
      @jasonorozco1587 2 ปีที่แล้ว +1

      @@T.R.E.D.The issue is that if the Arduino uses a 5v logic level, the TX and RX pins will be 5v instead of 3.3v. It's a bit subtle.