WIFIO is a dual Arduino WIFI module (ESP8266+ATMEGA328P) FCC approve-able with transferable licence. Can use the 328P for I/O expansion also...

Moderator: igrr

User avatar
By elaahidri
#82906 it has been so long since I tried to connect the esp8266 through Arduino Uno and get it to work my goal is to send data from the Arduino Uno to web site, I have tried everything and a lot of codes but none worked at first I could get a response but sometimes it does and sometimes it does not I even bought an other one but the new one did not respond at all so I flashed the old one following the instructions in http://remotexy.com/en/help/esp8266-firmware-update/ and I got response the next day I tried to reuse it and it does not respond at all not even when I put the serial on 115200 and both NR&CR and tried AT but nothing showed in return .i found this tutorial
and I tried to get it to work using a mobile app but as usual, it does not work :cry: :cry:

AT
AT
AT
AT
AT
AT

this is the code
Code: Select all      // RemoteXY select connection mode and include library 
    #define REMOTEXY_MODE__ESP8266_HARDSERIAL
   
    #include <RemoteXY.h>
   
    // RemoteXY connection settings 
    #define REMOTEXY_SERIAL Serial
    #define REMOTEXY_SERIAL_SPEED 115200
    #define REMOTEXY_WIFI_SSID "RemoteXY"
    #define REMOTEXY_WIFI_PASSWORD "12345678"
    #define REMOTEXY_SERVER_PORT 6377
   
   
    // RemoteXY configurate   
    #pragma pack(push, 1)
    uint8_t RemoteXY_CONF[] =
      { 255,2,0,0,0,30,0,8,13,0,
      2,0,70,25,22,11,2,26,31,31,
      79,78,0,79,70,70,0,1,0,10,
      26,12,12,2,31,88,0 };
       
    // this structure defines all the variables of your control interface 
    struct {
   
        // input variable
      uint8_t switch_1; // =1 if switch ON and =0 if OFF
      uint8_t button_1; // =1 if button pressed, else =0
   
        // other variable
      uint8_t connect_flag;  // =1 if wire connected, else =0
   
    } RemoteXY;
    #pragma pack(pop)
   
    /////////////////////////////////////////////
    //           END RemoteXY include          //
    /////////////////////////////////////////////
   
    #define PIN_SWITCH_1 2
    #define PIN_BUTTON_1 12
   
   
    void setup() 
    {
      RemoteXY_Init (); 
       
      pinMode (PIN_SWITCH_1, OUTPUT);
      pinMode (PIN_BUTTON_1, OUTPUT);
       
      // TODO you setup code
       
    }
   
    void loop() 
    { 
      RemoteXY_Handler ();
       
      digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);
      digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);
       
      // TODO you loop code
      // use the RemoteXY structure for data transfer
   
   
    }


i wired it like this
Code: Select allRX -> RX /TX-> TX/ CH_en and vcc to 3.3 v of the arduino / gnd ->gnd



one last thing is it gets hot every time so what could be the problem what's wrong with is what should I do