So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Jak5081
#74615 Hi all

Sorry for the dramatic title - my new ESP-01S has gradually driven me crazy over the last few days. I recently purchased these ESP-01S's (https://tinyurl.com/yajw5wwl) and I can't seem to get them to register with my Arduino IDE at all.

I've attempted a number of different methods to connect them to my Arduino Uno R3 but each have met with some sort of error when I attempt to run the example 'Bare Minimum' sketch through the generic ESP2866 board. Below I'll detail the most recent (and so far most successful attempt) I've had at connecting the two. Could someone please tell me what I'm doing wrong and what I need to do (or buy) in order to make this work???

Please let me know if you need more information or a circuit diagram drawing up. Sorry for the lack of info - I am very much a newbie and need as much help as you're willing to give.

THANK YOU :D

***RECENT ATTEMPT - BASIC BLINK FROM ESP-01S***

Hardware

ESP-01S Arduino Uno R3 (Elegoo)
TX---------------------1-TX
RX---------------------0-RX (Via a basic voltage divider, converting the Arduino's 0-RX (5v) to ESP-01's RX (3.3v) by two resistors (R1 = 100 ohm, R2 = 200 ohm)
VCC ('3V3')---------3.3v
CH_EN ('EN')------3.3v
GPI2------------------LED->220ohm Resistor->GND
GPIO-----------------GND
GND------------------GND

ESP-01S's blue LED flashes each time it is connected to the power (and sometimes when the RX/ TX are touched or the voltage divider used. After this it remains low. The LED I'm using lights up instantly when I connect the power to the arduino.

Software

I took a number of steps to attempt to recognise the ESP-01S in IDE.

    Added the ESP8266 to the Additional Board Managers URLs in preferences (http://arduino.esp8266.com/versions/2.4 ... index.json)
    Included the ESP8266 board in the Boards Managers (Version 2.4.1 - by ESP8266 Community)
    Set the 'Board' to 'Generic ESP8266 Module'
    Set the line ending in the serial monitor to 'Both NL & CR'
    Set the baud rate in the serial monitor to '115200 baud'
    Set the board to 'Com 3'

I then input the following code:

Code: Select allvoid setup() {
  pinMode(2, OUTPUT);
}

void loop() {
  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(1000);
}


and get the following response:

Code: Select allesptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to ck
   setting baudrate from 115200 to 115200
   setting port from COM1 to COM3
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   espcomm_upload_mem
   setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
resetting board
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
resetting board
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed


I have varied a number of the settings and alterations but have been unable to get this to work.

PLEASE SEND HELP.

THANKS

JACK
User avatar
By schufti
#74637 I don't know why everyone thinks that an arduino uno is a good idea for flashing an esp ???
the only excuse were to be sitting on the moon with no supplyship coming for the next decade.

please spare yourself (and the forum) lots of frustration and buy a decent USB-serial converter or special ESP-01 programmer.
User avatar
By jankop
#74641 Upload to Arduino Uno "Bare Minimum"
Connect ESP-01S (It has 1MB flash memory ! )

ESP-01S Arduino Uno R3 (Elegoo)
TX---------------------1-TX
RX---------------------0-RX (Via a basic voltage divider, converting the Arduino's 0-RX (5v) to ESP-01's RX (3.3v) by two resistors (R1 = 1000 ohm, R2 = 2000 ohm to GND)
VCC ('3V3')---------3.3v
CH_EN ('EN')------3.3v
RST -----------------10k ohm to Vcc
GPIO2------------------LED->220ohm Resistor->Vcc ! ! !
GPIO-----------------GND (For run-> GPIO-----------------resistor 10k ohm to Vcc)
GND------------------GND
User avatar
By McChubby007
#74643
schufti wrote:I don't know why everyone thinks that an arduino uno is a good idea for flashing an esp ???
the only excuse were to be sitting on the moon with no supplyship coming for the next decade.

please spare yourself (and the forum) lots of frustration and buy a decent USB-serial converter or special ESP-01 programmer.


I enjoyed the reply; it made me laugh.

As an apprentice engineer I quickly learned to use the right tool for the job, and not to try and crack a nut with a sledgehammer. It makes no sense to waste so much labour time using an Uno when a few $ will get you the right equipment.