So I followed the instructions for the ESP8266 on instructables.com and when I typed "AT" to the serial monitor expecting "OK" i got:
. How do I fix this?
Is your baudmode 115200 ?
No, it doesn't do anything then. I tried every one, the highest baud rate that works is 4800 I think.
But it says :
![]()
are you using a ESP-01?
what host microcontroller are you using?
how is the host connected to the ESP8266?
I am using the ESP-01 connected to my UNO R3
The pinout is:
Gnd => Gnd
En => 3.3V
VCC => 3.3V
Tx => Tx
Rx => Rx
I might be missing something but I am pretty sure I wired it correct.
That is what the tutorial tells you to do, but i recommend a voltage divider on the ESP's RX line
UNO RX -> 1K -> ESP-RX -> 1K -> 1K -> GND
The ESP pins are not 5v tolerant and so the 5v logic level of the UNO should be reduced to prevent damage.
Also add a connection between Vcc(3.3v) & RST. Nearly all ESP-01 boards have a 10K pullup on that pin, but not all of them.
The most common firmware that is preloaded on the ESP-01 runs at 115200 bps, on rare occasions a firmware that uses 9600 bps is present. 4800 bps i have never encountered.
again, make sure of the following
- There is nothing from the ATmega chip interfering with the USB to TTL converter. So upload bare-minimum or even better 'Blink' to the UNO
- Set the Serial monitor baudrate to 115200 bps
- Set line ending to 'Both CR & LF'
- Add the voltage divider to you circuit (use 1K resistors, not higher values)
- Add a 10K pullup to the RST pin
Even if i do not think that using AT-commands is the way to go in the long run, getting them to work is a relevant step in getting a handle on the ESP-01
So I conect the Uno RX to a 1k resistor before it connects to the ESP-RX?
Yes, and the from there you connect 2 more 1k resistors in series to GND.
Basic electronics will then result that if 5v comes from the UNO RX, 3.33v will end up at the ESP RX
Hey @Deva_Rishi? Quick question, do I connect Tx to Rx and Rx to Tx or Tx to Tx and Rx to Rx?
I have used
UNO GPIO9 Tx to ESP-01 GPIO3 U0RX
UNO GPIO8 Rx to ESP-01 GPIO1 U0TX
![image|690x498]
running the following code
// UNO - ESP-01 AltSoftSerial test - ESP-01 loopsback - character transmitted to it are echoed back
// requires program ESP-01_Serial_loopback loaded in to ESP-01 and serial connections (see below)
// note that at baudrates above 38400 some echoed characters are corrupted
#include <AltSoftSerial.h>
// load program ESP-01_Serial_loopback in to ESP-01
// ESP-01 U0TXD to UNO RX pin 8
// ESP-01 U0RXD to UNO TX pin 9
// ESP-01 GPIO0 and GPIO2 need to have pull-up resistors connected to ensure the module starts up correctly
// The ESP-01S has 12K resistors on the board for GPIO0, RST and CH_PD
AltSoftSerial espSerial;
void setup() {
Serial.begin(115200);
Serial.println("AltSoftSerial test");
//Begin serial communication with Arduino and SIM800L
espSerial.begin(38400);
Serial.println("ESP-01 serial intialized");
Serial.println("load ESP-01_Serial_loopback in to ESP-01");
Serial.println("ESP-01 U0TXD to UNO RX pin 8");
Serial.println("ESP-01 U0RXD to UNO TX pin 9");
}
void loop() {
if (Serial.available()) {
char command = Serial.read();
//Serial.println(command);
espSerial.print(command);
}
while (espSerial.available()) {
char reponse = espSerial.read();
Serial.print(reponse);
}
}
All I get in serial monitor is gibberish and
.
just connected a new ESP-01S module to an ESP32
tried ESP-01 baudrate 38400 and it did not work
then tried baudrate 115200 and it displays when entering commands AT and AT+GMR (check version information)
AT
OK
AT+GMR
AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK
you can try ESP-01 at 115200baud on the UNO but it probably will not work (bit bash software serial tends to fail at baudrates over 38400)
???
???
If you just want to try and write AT-commands sstraight from the Serial monitor then use
If it all still doesn't work, there are a few possibilities
- Somehow there is something which is not connected the way it is supposed to be. Can you post a picture of how you have connected it ? I tend to recommend to disconnect everything and the reconnect everything, as that sometimes makes things show up.
- The ESP does not have AT-firmware uploaded onto it at all (it happens, it's rare but it does)
- The ESP is faulty.
Anyway first post a picture. please.
Here is a photo of my wiring:

Very nice but that is a picture of your schematic, with the voltage divider still missing btw.
What i meant is a picture of what it actually look like. I have had people sticking wires in the wrong holes on the breadboard.
You should remove D1
Yeah it's not a very good picture. It doesn't contain the voltage divider and lighting is very poor.
Is CH_PD (EN) also connected to 3.3v ? What kind of UNO is that btw ?


