Arduino Nano - ESP8266 "Weird" AT Command Responses

Hi.

I am trying to communicate with the ESP8266 module I plugged in to my Arduino Nano. The connections are done as shown in Fig. 1.


Fig. 1. ESP8266 connections. Image taken from https://www.electronicwings.com/

Only difference is that I have not connected the EN, RST pins. Anyways, whenever I send an AT command, I get a "weird" response. My command input, let's say "AT", is displayed as "AAT" and I get "k" as a response instead of "Ok". For different commands such as "AT+GMR" I cannot make sense of whatever is returning. I tried to provide you with an image in Fig. 2-3.


Fig. 2. Response for AT command.


Fig. 3. Response for AT+GMR command.

Can you help me fix this? Thank you for reading this.

Note: I don't know if you will be able to see the images. Fig. 1. is taken from https://www.electronicwings.com/storage/PlatformSection/TopicContent/308/description/ESP8266%20WiFi%20interfacing%20with%20Arduino.png . Fig. 2-3 just show you weird AT responses, but a response nonetheless.

TL;DR: ESP8266 returns weird messages for AT commands. Using Arduino Nano. Need help

and what are you doing in loop() there?

No clue. Got it from the internet. Is that the problem? Do I need any piece of code for AT communication?

Edit: Getting no sorts of reply after deleting the code inside loop()

Please post your code (and not a screenshot of it).

Using SoftwareSetial on hardware serial pins is silly (to put it politely), Using it in combination with HardwareSerial (as you do) is asking for problems; on Uno/Nano/Mega/Pro Mini, pins 0 and 1 are used for the USB connection with the PC.

Move your ESP8266 to other pins on the Nano and adjust your SoftwareSerial to use those pins.

Note: The ESP8266 is a 3.3V device; you're strongly advised to use a voltage divider from the Arduino''s TX to the ESP8266's RX.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.