I’m having difficulties with setting up VMA 205 WiFi ESP-WROOM-02 SHIELD. I have connected everything as mentioned in User manual but when I’m trying to flash example code I get following error message:
Here below you’ll find the working demo code for the VMA205 “ESP8266 shield”.
For successfull uploading the code with IDE (and this when VMA205 are connected to Arduino board or VMA100 without VMA440), you"ll need to put dipswitch 1 to ON and dipswitch 2 to OFF position while uploading. When Uploading is done, put dipswitch 2 back in OFF positon. (SW1 = ON / SW2 = ON).
This is not correct in manual, this will as soon as possible corrected.
Regards,
Velleman support
Demo code:
/* This example set your ESP8266 module as a WiFi Station and create a WiFi AP,
* then other PC could conect into this WiFi and send internet data .
*/
char OK[2]="";
//////////////////////////////////////////////////////////////////////////
void OK_config()
{
while(1)
{
OK[0]=Serial.read();
if(OK[0]=='O')
{
OK[1]=Serial.read();
if(OK[1]=='K')
{
break;
}
}
delay(20);
}
}
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
void esp8266_config()
{
delay(500);
// Serial.println("AT+RST");
// OK_config();
Serial.println("AT+CWMODE_DEF=3"); //Set Wi-Fi mode to 3(SoftAP+Station mode)
OK_config();
Serial.println("AT+CWSAP=\"VMAWIFI\",\"123456789\",11,2");//Set WIFI ID and password
OK_config();
Serial.println("AT+CIPMUX=1");
OK_config();
Serial.println("AT+CIPSERVER=1"); //Set TCP Server
OK_config();
digitalWrite(A3,HIGH);
OK_config(); //Wating Client send "OK" to confirm
digitalWrite(A3,LOW);
}
///////////////////////////////////////////////////////////////////////
void setup()
{
Serial.begin(115200);
pinMode(A3,OUTPUT);
esp8266_config();
}
void loop()
{
Serial.println("AT+CIPSEND=0,9");
OK_config();
Serial.println("arduino");
delay(1500);
}