Connecting wifishield 8266 with Due board to Arduino Cloud

Hello everyone,

i wanted to connect my wifi-shield with due Board to Arduino Cloud, but After i selected 3rd party device as esp8266 . and i tried to upload my code from cloud editor and it automatically detects due board ports and results error : due board doesnot support Arduino Cloud.

Does anyone have idea how i can overcome this problem?

you have to write a sketch for the esp8266 to communicate with the Arduino IoT Cloud. The esp8266 then can communicate with the Due for example over Serial.

1 Like

any particular reason to use a Due - won't the ESP8266 support all the IO you require?

i had due board and wifi shield 8266 so i just wanted to use it for IOT. but still didnt work

how is the Due connected to the ESP8266?

you have to implement two programs

  1. Arduino Due to read sensors, do calculations etc and transmit results to the ESP8266
  2. ESP8266 receives the data from the Due and sends it to the cloud

simpler to do everyting on the ESP8266?

VCC&CHPD>3.3v
Tx>Rx
Rx>Tx
Gnd>Gnd

post the code for the two micros (using code tags </>)?
also the output of the two serial monitors

@horace what do you try to solve?

The main problem is that Arduino Cloud does not support due board. but supports Esp 8266 which is my wifi Shield connected to due board. Is there library or any other way so that cloud detects my Wifishield8266.

int LED=13;
void setup() {
  pinMode(LED, OUTPUT);
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  
  randomval=random(0,100);
  delay (500);
}



/*
  Since LED1 is READ_WRITE variable, onLED1Change() is
  executed every time a new value is received from IoT Cloud.
*/
void onLED1Change()  {
  
  if(lED1) {
    digitalWrite(LED,HIGH);
  }
  else
  {
    digitalWrite(LED,LOW);
  }
  
  // Add your code here to act upon LED1 change
}```

At first just trying simple example of led blink.

if you do a web search for ESP8266 ESP-12E UART WIFI Wireless Shield you will get plenty of links on how to program and use the shield
I have a couple of the ESP8266 ESP-12E UART WIFI Wireless Shields but never use them prefering to use boards such as the ESP8266-NodeMCU-Lolin-V3

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.