-->
Page 1 of 1

ESP8266 not work as well with arduino

PostPosted: Fri Aug 14, 2015 2:45 am
by D074
I have ask to forum arduino, but no reply.

I have problem to connecting the esp8266 to arduino.
the wiring diagram like the picture below.
WiringDiagramEsp8266.png

I use library from https://github.com/itead/ITEADLIB_Arduino_WeeESP8266
Here is my code.
Code: Select all#include "ESP8266.h"
#include <SoftwareSerial.h>

#define SSID        "ITD.staff"
#define PASSWORD    "itdnew2015"


SoftwareSerial myserial(3,2); // rx=3,tx=2
ESP8266 wifi(myserial);
void setup(void)
{
    Serial.begin(9600);
   // wifi.begin(115200);
   // Serial.println(wifi.print("AT"));
    Serial.print("setup begin\r\n");

    Serial.print("FW Version: ");
    Serial.println(wifi.getVersion().c_str());
    Serial.print("Kick : ");
    Serial.println(wifi.kick());
    Serial.print("Restart : ");
    Serial.println(wifi.restart());
    if (wifi.setOprToStation()) {
        Serial.print("to station ok\r\n");
    } else {
        Serial.print("to station err\r\n");
    }

    if (wifi.joinAP(SSID, PASSWORD)) {
        Serial.print("Join AP success\r\n");
        Serial.print("IP: ");       
        Serial.println(wifi.getLocalIP().c_str());
    } else {
        Serial.print("Join AP failure\r\n");
    }
   
    Serial.print("setup end\r\n");
}

void loop(void)
{
}


the output like picture below.
out.PNG

pls help me

Re: ESP8266 not work as well with arduino

PostPosted: Fri Aug 14, 2015 5:31 pm
by brutzler
Looks like this is not the right forum for this question.
Here we are discussing things around ESP8266 with Arduino IDE. (without an arduino board)

But what I see:
Communication is not proper. Partly wrong charakters.
Normally a arduino has 5V level at the I/O pins. The ESP is at 3,3V.
It is recommended to use a level shifter for Tx and Rx.
Without it can work or not.

Edit:
wondering, that its partially working. You define Softserial at Pin 2/3 for the ESP. And connect the Board at normal Tx/Rx (Pin 0/1)
And Rx should be connected with Tx and vice versa.
You are sure, that your wiring diagram is matching to your hardware. I doubt .

Re: ESP8266 not work as well with arduino

PostPosted: Mon Aug 17, 2015 5:01 am
by Silux
You should use an adapter to power the esp8266 from arduino. The 3.3v regulator can't provide enough current.