1

I am trying to send AT commands to esp-01 through serial monitor I have uploaded a blank sketch to Arduino , whatever command I send to ESP I get reply ERROR. After reconnecting esp-01 I got some garbage vales then ready. Can anyone help me what I am doing wrong. This is what I got on serial monitor this is what I am getting on serial monitor

These are the connections I am using, I tried to use voltage divider but after using voltage divider, Esp's blue led turned on and nothing happened so I used just used the resistors in series between TX and TX of both devices

CONNECTIONS

This is the voltage divider circuit I was using(that didn't worked)

voltage divider circuit

3
  • Please upload your code so it can be examined against the results you are getting. Commented Jul 15, 2021 at 7:52
  • 1
    did you set line ends in Serial Monitor to "Both"? Commented Jul 15, 2021 at 8:45
  • you want a voltage divider on receiver pin of esp8266. the RX pin of the board is TX pin of the USB chip (because the USB chip is connected to ATmega RX to TX) Commented Jul 15, 2021 at 8:46

1 Answer 1

1

The hardware serial, pins 1 and 2, are used by the Arduino to communicate to the USB adapter to your computer. When you connect another device to them, it interferes with the communication between your computer and the Arduino.

The solution is to connect the ESP-01 to another set of pins and use the SoftwareSerial library to create a second serial port for it. The code then needs to listen on both serial ports and move data between them.

Also, you need to use the voltage divider or you risk burning out the input pin. To make the voltage divider, connect the Arduino output to the top of the divider and the ESP-01 to the middle. You appear to have those reversed in your schematic.

3
  • 1
    here the USB chip of Uno is connected to the esp8266 and the ATmega is inactive Commented Jul 15, 2021 at 9:42
  • The paragraph about the voltage divider regarding Rx is relevant though:To make the voltage divider, connect the Arduino RX0 to the top of the divider and the ESP-01 RXD to the middle. You appear to have those reversed in your schematic. Commented Jul 15, 2021 at 12:04
  • Sometime when I connect CH-PD to 3.3v, SP flash IC starts getting hotter and nothing works can you tell me what causing that ? Commented Jul 17, 2021 at 10:27

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.