Struggling to get anything from my ESP-01S - PLEASE HELP
Posted: Wed Mar 14, 2018 6:25 pm
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
***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.
I then input the following code:
and get the following response:
I have varied a number of the settings and alterations but have been unable to get this to work.
PLEASE SEND HELP.
THANKS
JACK
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
***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 all
void setup() {
pinMode(2, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(1000);
digitalWrite(2, LOW);
delay(1000);
}
and get the following response:
Code: Select all
esptool 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