How to program esp8266 using arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ส.ค. 2020
  • Hi in this video i will show you how to program esp8266 using arduino
    materials included
    1)esp8266 board - amzn.to/3Buf7ZY
    2)arduino board - amzn.to/3H2BRRL
    3)breadboard - amzn.to/3HSt06B
    4)10k resistor
    5)tactile switch
    6) few jumper pins - amzn.to/3uUauHd
    Copy this link and paste to it in additionl board manager URL- arduino.esp8266.com/stable/pa...
    Music provided by Argofox:
    SANDR - Miles High
    • SANDR - Miles High [Ro...
    Thanks for watching
    ____________________
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @adiii41
    @adiii41 5 หลายเดือนก่อน +3

    I spend 8 hours to identify the problem. Eventually I soldered everything to the Arduino protoboard. Now it works :)

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

    Nice👍
    The legend is back🔥🔥

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

    Thank You !

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

    i have a 8266 12e module can i use a ch340 board tx rx conections & remaing setup to program it, wanted to install wled into it.

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

      Yes, You can use ch340g board. Don't forget to put the jumper to 3.3v.

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

    👍🇮🇳

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

    I have Esp12e and Uno. Do I need anything else other than a 10k resistor while doing this?

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

      It would be good if you have 2 tactile switches.

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

    And then how to release the gpio 15 pin

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

    Nice demo. What is CHPD connected to 3.3v ?. is it labled "En" ? ESP-12F board

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

      Yes,It's enable pin(En).

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

      @@ElectroRetro Thanks a lot.

  • @alifghifarii8428
    @alifghifarii8428 26 วันที่ผ่านมา

    Can the multimeter be replaced with a battery or power bank as an external 3.3v power supply?

  • @user-bu3du4ff1m
    @user-bu3du4ff1m 17 วันที่ผ่านมา

    "A fatal esptool.py error occurred: Invalid head of packet (0x4F)"?!

  • @alifghifarii8428
    @alifghifarii8428 2 วันที่ผ่านมา

    sir, why does my esp8266 wifi module always restart itself when the relay is in the close position and connected to AC current, but when the AC current from the relay is not connected and the relay is in the close position, the esp8266 wifi module is fine, I have used a relay that has an optocoupler?

    • @ElectroRetro
      @ElectroRetro  2 วันที่ผ่านมา

      Do you have flyback diode connected to the relay? If yes, then it may be electromagnetic interference from relay.

    • @alifghifarii8428
      @alifghifarii8428 วันที่ผ่านมา

      can a flyback diode fix this?

    • @ElectroRetro
      @ElectroRetro  วันที่ผ่านมา

      @@alifghifarii8428 it may fix.

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

    Did you have to use another adapter before connecting the module to the arduino?

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

      Did you mean that breakout board? I made my own breakout board for esp8266 to plug-in ESP in the breadboard. You can buy a ready made breakout board for esp8266.

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

      ​@@ElectroRetro I'm sorry, i don't understand very well yet how to use this module. I've seen in another videos that they always use some type of adapter to program the esp, like the usb to serial or the nodemcu... and I thought that if you were using the arduino IDE to program the esp and the arduino uno board as an adapter, then you should disconect the atmega microcontroller from the board to do it... but after watching your video i realiced that it's not necesary..

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

      @@ElectroRetro And do you have to do something so the esp can understand arduino IDE sketchs? like when you install the boatloader in the atmega328

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

      Here am using an Arduino board as a USB to serial converter. You don't need to remove atmega328 ic if you short reset pin to GND. You have to add esp8266 boards in Arduino ide before uploading the code.

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

      ​@@ElectroRetro i hope it works with my esp12e i had a nodemcu it shorted somehow first time the voltage regulator f** up then the whole board except the module

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

    thanks

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

    will the connection be different in esp8266(esp12e)?

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

      No, same as esp12f

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

      @@ElectroRetro can i get the written code?

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

      @@sheetalprasad5514 which code?

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

      @@ElectroRetro the one that we need to upload in the ide

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

      arduino.esp8266.com/stable/package_esp8266com_index.json

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

    can i use arduino nano to programming esp12e??

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

      Yes

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

      ​@@ElectroRetrothank you so much, i have done, and it's work😊

  • @401uwu7
    @401uwu7 10 หลายเดือนก่อน

    Is it possible to program a Arduino in breadboard by nodemcu esp8266

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

      If nodemcu 8266 board have usb to ttl chip then yes. Otherwise you can't.

    • @401uwu7
      @401uwu7 10 หลายเดือนก่อน

      @@ElectroRetro yes it's have a ch340...

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

      Which arduino board are you using? why you need to program arduino using esp8266?

    • @401uwu7
      @401uwu7 10 หลายเดือนก่อน

      @@ElectroRetro my Arduino burnt on power delivery circuit...but the atmega is fine...so i want to program it though i need a usb to ttl trying not to buy that...i got a esp8266mod ...nodemcu trying to find it's actually possible or not

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

      Actually I didn't try programming arduino with esp8266 nodemcu, But I think it's possible. Please let me know if it's successful.

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

    can we load code directly without firmware update

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

    When I press the reset button It does nothing the connecting message keeps saying connecting and it shows the error failed to connect esp8266 Timeout waiting for packet header

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

      Try holding-down the button while uploading a new sketch at the same time.

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

      @@ElectroRetro ok

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

      @@ElectroRetro nothing happened same error message

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

      Make sure your connections are OK and button is working properly.

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

      @@ElectroRetro done i think you told to use one button other videos tell to use 2 buttons and many resistors. So isn't it problem with circuit.

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

    i am getting error Arduino: 1.8.15 (Windows Store 1.8.49.0) (Windows 10), Board: "ESPino (ESP-12 Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    Executable segment sizes:
    ICACHE : 32768 - flash instruction cache
    IROM : 231756 - code in flash (default or ICACHE_FLASH_ATTR)
    IRAM : 26777 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
    DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP
    RODATA : 876 ) / 81920 - constants (global, static) in RAM/HEAP
    BSS : 25608 ) - zeroed variables (global, static) in RAM/HEAP
    Sketch uses 260905 bytes (24%) of program storage space. Maximum is 1044464 bytes.
    Global variables use 27980 bytes (34%) of dynamic memory, leaving 53940 bytes for local variables. Maximum is 81920 bytes.
    esptool.py v3.0
    Serial port COM3
    Connecting........_____....._____....._____....._____....._____....._____....._____
    Traceback (most recent call last):
    File "C:\Users\HP\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.0/tools/upload.py", line 66, in
    esptool.main(cmdline)
    File "C:/Users/HP/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 3552, in main
    esp.connect(args.before, args.connect_attempts)
    File "C:/Users/HP/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 529, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
    esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0xF0)
    esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0xF0)
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

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

      You need to press rst button when it shows connecting and don't forget to connect gpio0 to gnd to enable programming mode.

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

      @@ElectroRetro i did so, but getting same error, can i get ur whatsapp number?

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

      or give me your mail id.

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

      electroretroyt@gmail.com

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

      hi
      i am also facing same issue
      how you fix this issue, can you please share

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

    Sir I don't have resistor can I do something without resistor

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

      No

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

      @@ElectroRetro ok

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

      Isn't there any alternative i have a photo resistor. Any jugad

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

      Do you mean ldr

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

      If you have a LDR. Give it a try. You need to adjust the light intensity to get the right resistance

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

    Can you please tell me how to program esp8285 with arduino

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

      Same as esp8266 programming

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

    why do you have to press the reset button when connecting? Is it okay if you don't use the button?

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

      To enable boot mode/programming mode you have to press reset and boot button. Then release reset button first and release boot button. For normal operation you don't have to press these buttons.

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

      @@ElectroRetro is there another way without using the reset button?

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

      @@ElectroRetro what is the name of the reset button? is there a specific model? I use the reset button connected with a jumper is it the same?

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

      @@alifghifarii8428 it's a tactile switch. You can use jumper wire instead.

    • @alifghifarii8428
      @alifghifarii8428 29 วันที่ผ่านมา

      @@ElectroRetro okay thanks

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

    Hi iam shadow

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

    I keep getting "Failed to connect to ESP8266: Invalid head of packet (0×00)"

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

      Did you put the esp into boot mode? If you select baudrate of 115200 and put the esp into boot mode it will show waiting for download.

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

      @@ElectroRetro I fallowed your instructions and I put the EN attached to high and the upload speed is 115200. I didn't solder the esp chip, although I checked the connection with a multimeter and it's all well connected with the wires.

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

      @@lyhongleft3676 did you press reset switch?

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

      @@ElectroRetro I did, and I also made sure it worked cuz it blinks too

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

      When you press reset, Does the serial monitor show waiting for download?

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

    Your connections are not healthy. Arduino RX TX works with 5 volts and this is not the same as the operating voltage of ESP. It can withstand this in a short time, but it may not be long-lasting.