How to program esp8266 using arduino

  Рет қаралды 30,009

Electro Retro

Electro Retro

Күн бұрын

Пікірлер: 123
@adiii41
@adiii41 10 ай бұрын
I spend 8 hours to identify the problem. Eventually I soldered everything to the Arduino protoboard. Now it works :)
@cristianobudzinski-ud8ee
@cristianobudzinski-ud8ee 20 күн бұрын
I have a question, in your RX/TX interface wouldn't the correct connection be crossed? Rx-tx /Tx-rx? In the video it says Rx-rx/Tx-tx.
@ElectroRetro
@ElectroRetro 20 күн бұрын
The labelled TX/RX in arduino uno is atmega328 ic's TX and RX, Its connected to the USB to serial converter ic in the arduino uno. TX to RX, RX to TX. Here we are using Arduino uno's USB to Serial converter IC only.
@anithasshenoy6662
@anithasshenoy6662 8 ай бұрын
Nice demo. What is CHPD connected to 3.3v ?. is it labled "En" ? ESP-12F board
@ElectroRetro
@ElectroRetro 8 ай бұрын
Yes,It's enable pin(En).
@anithasshenoy6662
@anithasshenoy6662 8 ай бұрын
@@ElectroRetro Thanks a lot.
@Mureportxd
@Mureportxd 2 ай бұрын
Can the esp8266-12f be programmed from the raspberry pi pico w? and how would it be?
@bazrazin1
@bazrazin1 Жыл бұрын
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 Жыл бұрын
Yes, You can use ch340g board. Don't forget to put the jumper to 3.3v.
@s3ht
@s3ht 8 ай бұрын
I have Esp12e and Uno. Do I need anything else other than a 10k resistor while doing this?
@ElectroRetro
@ElectroRetro 8 ай бұрын
It would be good if you have 2 tactile switches.
@alifghifarii8428
@alifghifarii8428 6 ай бұрын
why do you have to press the reset button when connecting? Is it okay if you don't use the button?
@ElectroRetro
@ElectroRetro 6 ай бұрын
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 6 ай бұрын
@@ElectroRetro is there another way without using the reset button?
@alifghifarii8428
@alifghifarii8428 6 ай бұрын
@@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 6 ай бұрын
@@alifghifarii8428 it's a tactile switch. You can use jumper wire instead.
@alifghifarii8428
@alifghifarii8428 6 ай бұрын
@@ElectroRetro okay thanks
@alifghifarii8428
@alifghifarii8428 6 ай бұрын
Can the multimeter be replaced with a battery or power bank as an external 3.3v power supply?
@ElectroRetro
@ElectroRetro 6 ай бұрын
Yes
@martinromano99
@martinromano99 2 жыл бұрын
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 11 ай бұрын
​@@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
@drawcraftwithshubh116
@drawcraftwithshubh116 3 ай бұрын
can we use arduino nano
@ElectroRetro
@ElectroRetro 3 ай бұрын
Yes
@alifghifarii8428
@alifghifarii8428 5 ай бұрын
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 5 ай бұрын
Do you have flyback diode connected to the relay? If yes, then it may be electromagnetic interference from relay.
@alifghifarii8428
@alifghifarii8428 5 ай бұрын
can a flyback diode fix this?
@ElectroRetro
@ElectroRetro 5 ай бұрын
@@alifghifarii8428 it may fix.
@alifghifarii8428
@alifghifarii8428 5 ай бұрын
@@ElectroRetro I've used a flyback diode and soldered it to the relay but still can't fix it, is there another solution?
@ElectroRetro
@ElectroRetro 5 ай бұрын
Place relay further from ESP. That may work.
@نمورالشوتوكانبينالماضيوالآن
@نمورالشوتوكانبينالماضيوالآن 5 ай бұрын
"A fatal esptool.py error occurred: Invalid head of packet (0x4F)"?!
@stay_unicorn
@stay_unicorn 10 ай бұрын
can i use arduino nano to programming esp12e??
@ElectroRetro
@ElectroRetro 10 ай бұрын
Yes
@stay_unicorn
@stay_unicorn 10 ай бұрын
​@@ElectroRetrothank you so much, i have done, and it's work😊
@pettyscientist2357
@pettyscientist2357 3 жыл бұрын
Sir I don't have resistor can I do something without resistor
@ElectroRetro
@ElectroRetro 3 жыл бұрын
No
@pettyscientist2357
@pettyscientist2357 3 жыл бұрын
@@ElectroRetro ok
@pettyscientist2357
@pettyscientist2357 3 жыл бұрын
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
@401uwu7
@401uwu7 Жыл бұрын
Is it possible to program a Arduino in breadboard by nodemcu esp8266
@ElectroRetro
@ElectroRetro Жыл бұрын
If nodemcu 8266 board have usb to ttl chip then yes. Otherwise you can't.
@401uwu7
@401uwu7 Жыл бұрын
@@ElectroRetro yes it's have a ch340...
@ElectroRetro
@ElectroRetro Жыл бұрын
Which arduino board are you using? why you need to program arduino using esp8266?
@401uwu7
@401uwu7 Жыл бұрын
@@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 Жыл бұрын
Actually I didn't try programming arduino with esp8266 nodemcu, But I think it's possible. Please let me know if it's successful.
@sheetalprasad5514
@sheetalprasad5514 3 жыл бұрын
will the connection be different in esp8266(esp12e)?
@ElectroRetro
@ElectroRetro 3 жыл бұрын
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
@athuldev5307
@athuldev5307 4 жыл бұрын
👍🇮🇳
@sgssfireeagle1847
@sgssfireeagle1847 2 жыл бұрын
Can you please tell me how to program esp8285 with arduino
@ElectroRetro
@ElectroRetro 2 жыл бұрын
Same as esp8266 programming
@ismail_aydemir_youtube
@ismail_aydemir_youtube 7 ай бұрын
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.
@profy2002
@profy2002 Жыл бұрын
Thank You !
@tablachallenger2745
@tablachallenger2745 3 жыл бұрын
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.
@thusharpa2924
@thusharpa2924 4 жыл бұрын
Hi iam shadow
@athuldev5307
@athuldev5307 4 жыл бұрын
😂
@industron22
@industron22 2 жыл бұрын
can we load code directly without firmware update
@ElectroRetro
@ElectroRetro 2 жыл бұрын
Yes
@cutekids1760
@cutekids1760 Жыл бұрын
And then how to release the gpio 15 pin
@lyhongleft3676
@lyhongleft3676 7 ай бұрын
I keep getting "Failed to connect to ESP8266: Invalid head of packet (0×00)"
@ElectroRetro
@ElectroRetro 7 ай бұрын
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 7 ай бұрын
@@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 7 ай бұрын
@@lyhongleft3676 did you press reset switch?
@lyhongleft3676
@lyhongleft3676 7 ай бұрын
@@ElectroRetro I did, and I also made sure it worked cuz it blinks too
@ElectroRetro
@ElectroRetro 7 ай бұрын
When you press reset, Does the serial monitor show waiting for download?
@sheetalprasad5514
@sheetalprasad5514 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@ElectroRetro i did so, but getting same error, can i get ur whatsapp number?
@sheetalprasad5514
@sheetalprasad5514 3 жыл бұрын
or give me your mail id.
@ElectroRetro
@ElectroRetro 3 жыл бұрын
electroretroyt@gmail.com
@anukeshambatkar6255
@anukeshambatkar6255 7 ай бұрын
hi i am also facing same issue how you fix this issue, can you please share
@bulfzmhrrmov8384
@bulfzmhrrmov8384 2 жыл бұрын
thanks
@ElectroRetro
@ElectroRetro 2 жыл бұрын
👍🏼
How to program Esp8266 chip Easily using NodeMcu By Manmohan Pal
16:07
Programming ESP-12E / ESP-12F / NodeMCU Over Wi-Fi
9:49
Indrek
Рет қаралды 57 М.
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 13 МЛН
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 6 МЛН
Arduino UNO - cheap vs. expensive
10:39
upir
Рет қаралды 17 М.
How to program ESP8266 ESP-01 with Arduino UNO and FTDI232
9:46
Tech StudyCell
Рет қаралды 119 М.
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Рет қаралды 393 М.
how to interface esp8266 with arduino uno
18:31
Rahul Jadhav
Рет қаралды 18 М.
Arduino UNO & ESP8266 and control using smartphone
9:47
Be Smart nothing impossible
Рет қаралды 742 М.
3 Simple ways of programming an ESP-12 Module
3:55
Brian Lough
Рет қаралды 110 М.
Automatic water level controller using arduino
11:46
Electro Retro
Рет қаралды 18 М.
I tried the 3 Cheapest Arduino Alternatives! (That you Suggested)
13:21
ESP8266 in 5 minutes
5:50
MrDIY
Рет қаралды 138 М.
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 13 МЛН