ESP8266 AT commands problem

Wifi 3click board: http://download.mikroe.com/documents/add-on-boards/click/wifi-3/wifi-3-click-manual-v100.pdf

I’ve got a ESP8266mod, which comes in a wifi click 3 board. After connecting it to m arduino following this guide:

http://iot-playground.com/blog/2-uncategorised/17-esp8266-wifi-module-and-5v-arduino-connection

(Only the arduino tx to the wifi rx, because i receive data and transmit data, so i think i dont need the other two connections(reset and wifi tx to arduino rx))

The problem is this; i restart my wifi board, and it says ready, but when a send an AT command it answers strange things, I’ve set it in “Both NL & CR” and Baud to 9600, and my code is:

#include <SoftwareSerial.h>
 
SoftwareSerial esp8266(2,3); // make RX Arduino line is pin 2, make TX Arduino line is pin 3.
                             // This means that you need to connect the TX line from the esp to the Arduino's pin 2
                             // and the RX line from the esp to the Arduino's pin 3
void setup()
{
  Serial.begin(9600);
  esp8266.begin(9600); // your esp's baud rate might be different
}
 
void loop()
{
  if(esp8266.available()) // check if the esp is sending a message 
  {
    while(esp8266.available())
    {
      // The esp has data so display its output to the serial window 
      char c = esp8266.read(); // read the next character.
      Serial.write(c);
    }  
  }
  
 
  
  if(Serial.available())
  {
    // the following delay is required because otherwise the arduino will read the first letter of the command but not the rest
    // In other words without the delay if you use AT+RST, for example, the Arduino will read the letter A send it, then read the rest and send it
    // but we want to send everything at the same time.
    delay(1000); 
    
    String command="";
    
    while(Serial.available()) // read the command character by character
    {
        // read one character
      command+=(char)Serial.read();
    }
    esp8266.println(command); // send the read character to the esp8266
  }
}

Any idea of why this happens or how to fix it?

Diablillowilly: (Only the arduino tx to the wifi rx, because i receive data and transmit data, so i think i dont need the other two connections(reset and wifi tx to arduino rx))

Maybe not the reset. Aren't you planning on getting any messages from the wifi device?

SurferTim: Maybe not the reset. Aren't you planning on getting any messages from the wifi device?

Well, the tx form the wifi is connected to the rx of the arduino, and it actually answers when i send AT comands, but not wha it should:

ü‚‚ò—=‡>Š«ÿ�>Iƒ CŽ›¶ К‡Ë’ô�>A�ü [Vendor:www.ai-thinker.com Version:0.9.2.4]

ready AAþAþ

This it what it sends me through the serial monitor, and it answers AAþAþ when i send the AT command(I end it three times to show how it answers every time with different characters)

The age of the module may make a difference on the baud rate. Some older (a few months maybe) have a higher baud rate. Try 57600 or 115200.

SurferTim:
The age of the module may make a difference on the baud rate. Some older (a few months maybe) have a higher baud rate. Try 57600 or 115200.

Nope, Ive tried changing the software serial speed with the wifi board, and it only works at 9600bauds

Diablillowilly: Nope, Ive tried changing the software serial speed with the wifi board, and it only works at 9600bauds

You do realize that if you are going to use the Arduino Uno as a USB-serial device that it is best to remove the Atmel microcontroller which is only possible if it is a DIP?