Problems with ESP8266

Hello, I bought this ESP8266 module http://www.ebay.es/itm/161686516055?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

I’m trying this sketch:

#include <SoftwareSerial.h>
SoftwareSerial BT1(3, 2); // RX | TX

void setup()
  {  Serial.begin(9600);
     BT1.begin(9600);
  }

void loop()
  {  String B= "." ;
     if (BT1.available())
         { char c = BT1.read() ;
           Serial.print(c);
         }
     if (Serial.available())
         {  char c = Serial.read();
            BT1.print(c);
         }
   }

I only get trash from serial port like this:

:frowning:

You might try using another baud rate like 115200.

are you using a 5v arduino or a 3.3v? the esp8266 uses 3.3v, so if you have 5v arduino, you need to use a level shifter (or voltage divider) to properly read the serial data (and avoid possibly damaging your esp). Also, software serial to the esp is not the best.