Connecting Arduino Uno and ESP8266 WiFi Module

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ •

  • @michaelzoorob8955
    @michaelzoorob8955 7 місяців тому

    🎯 Key Takeaways for quick navigation:
    00:00 *🛠️ ESP8266 and Arduino Uno Pin Diagram and Connection*
    - Understanding the pin diagram of ESP8266, including VCC, ground, TX, RX, reset, CH_PD, and GPIO pins.
    - Step-by-step guide to physically connecting ESP8266 to Arduino Uno, ensuring correct power and data connections.
    02:16 *🖥️ ESP Driver and IDE Setup*
    - Introduction to setting up ESP8266 driver and instruction set using Arduino IDE.
    - Instructions on managing URLs, selecting the correct board and port settings, and burning an empty sketch to the board.
    03:27 *🔌 ESP8266 Communication and Module Configuration*
    - Verifying correct connection and communication with ESP8266 module using serial monitor commands.
    - Inspecting module version, setting up as a station mode, and understanding different modes for specific use cases.
    Made with HARPA AI

  • @radeonblue1816
    @radeonblue1816 2 роки тому +31

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

    • @ZorlacSkater
      @ZorlacSkater 11 місяців тому

      Yep, it is cheap trash from china.

    • @AbuBakar-um5wc
      @AbuBakar-um5wc 11 місяців тому

      same here

    • @AbuBakar-um5wc
      @AbuBakar-um5wc 11 місяців тому

      had you found any solution??

    • @jumbo999614
      @jumbo999614 10 місяців тому

      @@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 9 місяців тому +3

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

  • @marianakrysteva2876
    @marianakrysteva2876 2 роки тому +1

    Finally a solution that works. Thank you, sir!

  • @mazharkhaliq1971
    @mazharkhaliq1971 3 дні тому

    If you want to communicate
    Arduino UNO board's microcontroller tgst is ATmega328 with Esp8266-01 module then connect TX of Arduino to RX of esp
    And RX of Arduino to TX of esp
    And of you connect TX of arduino to TX of esp and RX to RX, then you are probably making communication between esp and the serial to usb chip which is on Arduino UNO board

  • @panagiotishaidos1989
    @panagiotishaidos1989 3 роки тому +9

    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  3 роки тому +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 2 роки тому +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 11 місяців тому

      @@shalabyer What is NGD?

    • @yhsp976
      @yhsp976 11 місяців тому

      ​@@ZorlacSkater GND

  • @rahma8706
    @rahma8706 2 роки тому +3

    Thank you so so much . you saved my career

  • @ganeshsingh4702
    @ganeshsingh4702 2 роки тому +6

    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  2 роки тому +1

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

    • @aomo5293
      @aomo5293 2 роки тому

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

    • @jumbo999614
      @jumbo999614 10 місяців тому

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

  • @mawbawable
    @mawbawable Місяць тому +1

    can you make another video of this but with the Motion Sensor PIR please

  • @ZorlacSkater
    @ZorlacSkater 11 місяців тому +2

    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!

  • @36goldfinger
    @36goldfinger 3 роки тому +3

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

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 роки тому +6

      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.

  • @arvindh4327
    @arvindh4327 3 роки тому +4

    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  3 роки тому +1

      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 11 місяців тому

      @@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 11 місяців тому +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 11 місяців тому

      @@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...

  • @jeromenadoma9980
    @jeromenadoma9980 3 роки тому +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  3 роки тому

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

  • @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

  • @pushparajnarayanan6096
    @pushparajnarayanan6096 3 роки тому +2

    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  3 роки тому +1

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

  • @ThomasShelby-bt7mn
    @ThomasShelby-bt7mn 2 роки тому +1

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

  • @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

  • @nishkarshYdv
    @nishkarshYdv 2 місяці тому +1

    He said connect Tx to Tx and Rx to Rx , could be a mistake but he should be careful.

  • @mohammedkamran8559
    @mohammedkamran8559 3 роки тому +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 Рік тому

      I get the same problem

  • @thegoodsamaritan4333
    @thegoodsamaritan4333 2 роки тому +1

    can i use this method in arduino mega 2560?

  • @jumbo999614
    @jumbo999614 10 місяців тому

    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 10 місяців тому

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

    • @jumbo999614
      @jumbo999614 10 місяців тому

      @ggerfanclubpresident5285 I'm able to make ESP01 accept AT commands now.
      Now I'm still searching on UA-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.

  • @omaralaa6967
    @omaralaa6967 3 роки тому +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  3 роки тому +1

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

  • @joketime-g4v
    @joketime-g4v Рік тому

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

  • @muhammadaziziekmalzulkifle2549

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

  • @zarifsukri6822
    @zarifsukri6822 3 роки тому +1

    why AT command no display at my arduino IDE?

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 роки тому

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

    • @jumbo999614
      @jumbo999614 10 місяців тому

      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 9 місяців тому

      @@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 10 місяців тому

      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 10 місяців тому

      @@jumbo999614 How do you upgrade?

  • @prathambhatnagar8653
    @prathambhatnagar8653 3 роки тому +1

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

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 роки тому

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

  • @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.

  • @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.

  • @electronic.knowledge
    @electronic.knowledge 7 місяців тому

    I need help to make a dongle with esp8266, if you know a suitable site or can guide me, I need help!

  • @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.

  • @milahynohtna3074
    @milahynohtna3074 2 роки тому

    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 2 роки тому

      same thing ! did you resolve it?

    • @_traubenkuchen_
      @_traubenkuchen_ Рік тому

      @@aomo5293 try 9600 baud

    • @jumbo999614
      @jumbo999614 10 місяців тому +1

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

  • @muratdelambreta3393
    @muratdelambreta3393 2 роки тому

    sir how you connect that esp to my wifi ?

  • @RauanShyrynbekovKING
    @RauanShyrynbekovKING 2 роки тому

    How to connect ESP8266 to the firebase?

  • @DineshKumar-rr3ge
    @DineshKumar-rr3ge 2 роки тому

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

    • @thanismurugathas2929
      @thanismurugathas2929 2 роки тому

      im not entirely sure of your question but hopefully this video will help: ua-cam.com/video/gFK2EDNpIeM/v-deo.html

  • @ZorlacSkater
    @ZorlacSkater Рік тому

    Does not work, I had to use 115200 for Baud

  • @yuvaranik2057
    @yuvaranik2057 Рік тому +1

    THANK YOU A LOT.

  • @suraj4941
    @suraj4941 3 роки тому +2

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

  • @ojkwame
    @ojkwame Рік тому

    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 Рік тому

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

    • @ojkwame
      @ojkwame Рік тому

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

  • @kavitayaranal3121
    @kavitayaranal3121 3 роки тому +1

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

    • @MustafaQamarudDin
      @MustafaQamarudDin  3 роки тому

      I am using a breadboard

    • @akashdesai3881
      @akashdesai3881 Рік тому

      u buy broo

    • @ZorlacSkater
      @ZorlacSkater Рік тому

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

    • @jumbo999614
      @jumbo999614 10 місяців тому

      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.

  • @pinasforever545
    @pinasforever545 2 роки тому

    Nice

  • @aledo3D
    @aledo3D Рік тому

    "on arduino"

  • @BadBoy-up3fe
    @BadBoy-up3fe 3 роки тому

    Wowo

  • @hind7360
    @hind7360 2 роки тому

    I LOVE YOU

  • @imusingwindowsbtw1469
    @imusingwindowsbtw1469 3 роки тому

    ⛔⛔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.

    • @TJbuffs
      @TJbuffs 2 роки тому

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

    • @jasonorozco1587
      @jasonorozco1587 2 роки тому +1

      @@TJbuffsThe 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.