LinkNode D1

LinkNode D1

Placa compatible con Arduino con comunicación WiFi

COD: LS211201001

Peso: 0.100 Kg

Disponibilidad: En Stock

Su correo electrónico:

ARS 28339.00


El producto no está disponible para la venta en este momento


Product Description

LinkNode D1 is Arduino-compatible WiFi development board which is powered by the high integrated WiFi chip ESP-8266EX.

Thanks for the contribution from open source community who have developed Arduino core for ESP8266, this let Aduino IDE program LinkNode D1 without any change. At the same time, LinkNode D1 has Arduino-compatible pin out which make it very easy to connect to Arduino shield.



  • Powered by ESP-8266EX
  • 11 Digital I/O pins
  • 1 Analog Input pin
  • 1 micro USB port for power/configure
  • Power jack for 9-24V power input
  • Compatible with Arduino programming
  • Compatible with NodeMCU
  • OTA -- Wireless Upload(Program)

Pin Mapping



1. Get started in Arduino

If you have used Arduino before, you will feel that the LinkNode D1 is as same as Arduino, and there is no difference between their programming. The only limitation of LinkNode D1 is that it only has 11 digital ports and 1 analog input port.

a. Requirements

b. Manually install hardware package(Option 1)

  • Install Arduino IDE
  • Manually download hardware package from github
  • Click the button Download ZIP to download
  • Go to installation directory of Arduino IDE, and create a esp8266com directory
  • Move the unzipped LinkNodeD1 file to ESP8266com

c. Use git to install (Option 2)

  • You can use git command to download the hardware package like:
 cd /hardware 
 mkdir esp8266com 
 cd esp8266com 
 git clone

d. Download binary tools (you need Python 2.7)

 cd esp8266/tools 

e. Check the configuration of Board

  • Open Arduino IDE and go to Tools --> Board --> LinkNode D1
  • Choose your own configuration

Upload Using

  • Serial – Use USB port on board to upload flash
  • OTA – Use OTA to upload flash

CPU Frequency

  • 80MHz
  • 160MHz

Flash Size

  • 4M (3M SPIFFS) – 3M File system size
  • 4M (1M SPIFFS) – 1M File system size

Upload Speed

  • 921600 bps – recommend

f. Create a Arduino Project

  • Connect LinkNode D1 to your PC
  • Check your serial port which your PC recognize


  • Enter the following source code and click the Upload button
 void setup() {
   // initialize digital pin GPIO2/D9 as an output.
 // the loop function runs over and over again forever
 void loop() {
   digitalWrite(BUILTIN_LED, HIGH);   // turn the LED on (HIGH is the voltage level)
   delay(1000);              // wait for a second
   digitalWrite(BUILTIN_LED, LOW);    // turn the LED off by making the voltage LOW
   delay(1000);              // wait for a second
  • After finish uploading, please check the BLUE LED on the ESP-8266EX chip, is it blinking?

2. Hello World

  • Take the steps above and run the following code:
 void setup() {
 // the loop function runs over and over again forever
 void loop() {
   Serial.println("Hello world!");
   delay(1000);              // wait for a second
  • After finish uploading, and open the Serial Monitor in Arduino IDE
  • The serial will print Hello world! in every second.

3. Use I/O expander shield with LinkNode D1


I/O Expander shield is a shield used to expand the number of I/Os of Arduino. It is based on the chipset MCP23017. The chipset MCP23017 communicates with Arduino Uno through I2C interface. It adds GPIOA and GPIOB, a total of 16 I/Os.

  • Mount the expander shield to LinkNode D1
  • Program the source code to the board
 const byte  mcp_address=0x20;      // I2C Address of MCP23017 Chip
 const byte  GPIOA=0x12;            // Register Address of Port A
 const byte  GPIOB=0x13;            // Register Address of Port B
 const byte  IODIRA=0x00;            // IODIRA register
 const byte  IODIRB=0x01;            // IODIRB register
 void setup()
   //Send settings to MCP device
   Wire.begin();              // join i2c bus (address optional for master)
   Wire.write((byte)IODIRA); // IODIRA register
   Wire.write((byte)0x03); // set GPIOA-0/GPIOA-1 to inputs
 void loop()
   Wire.write((byte)GPIOA); // set MCP23017 memory pointer to GPIOB address
   Wire.requestFrom(0x20, 1); // request one byte of data from MCP20317
   int; // store the incoming byte into "inputs"
     Wire.write(GPIOA);    // address bank A
     Wire.write((byte)0x04);  // value to send GPIOA-2 HIGH
     Wire.write(GPIOA);    // address bank A
     Wire.write((byte)0x08);  // value to send GPIOA-3 HIGH
     Wire.write(GPIOA);     // address bank A
     Wire.write((byte)0x00);  // value to send GPIOA LOW
  • Set all 4-bit DIP jumpers to ON
  • Press the button S1 and S2 respectively.
  • Press S1, L1 (RED) will turn on.
  • Press S2, L2 (GREEN) will turn on.

4. WiFi Manager

The ESP8266 WiFi Connection manager with web captive portal, this Arduino library can make configure AP's SSID and password via web page when you want LinkNode D1 to connect to AP.

  • Open Arduino IDE and go to Sketch --> Include Library --> Manage Libraries
  • Search the wifimanager and install it


  • Program the following source code:
#include           //
//needed for library
#include          //
void setup() {
    // put your setup code here, to run once:
    //Local intialization. Once its business is done, there is no need to keep it around
    WiFiManager wifiManager;
    //reset saved settings
    //set custom ip for portal
    wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0));
    //fetches ssid and pass from eeprom and tries to connect
    //if it does not connect it starts an access point with the specified name
    //here  "AutoConnectAP"
    //and goes into a blocking loop awaiting configuration
    //or use this for auto generated name ESP + ChipID
    //if you get here you have connected to the WiFi
    Serial.println("connected... :)");
void loop() {
    // put your main code here, to run repeatedly:
  • After upload the program, the LinkNode D1 will create a AP called LinkNodeAP
  • Use your mobile phone to connect this AP
  • Open a browser and enter the ip address and you will see the following website:


  • Click the button configure WiFi
  • Select your WiFi AP which you want to connect and enter your wifi password.
  • If connecting failed, you can go to the same website to configure it again.
  • Also, you can use Serial Monitor in Arduino IDE to check the status.

5. Connect to LinkSprite IO

LinkSprite IO is an IoT platform which supports RESTful API and WebSocket. These make the mobile APP, website application or device connect it very easily. The following I will introduce is about how to use LinkNode D1 to communicate with LinkSprite IO platform.

a. Create a new account and device on

  • Go to and sign up
  • Enter your Email and password to create a new account
  • Go to My Account to get your own API Key. The API Key is fatal because only add the Key in your codes, can the data sync to your IoTgo account.


  • Click My Device, and choose Create DIY Device.


  • Click the created device icon and get the DeviceID.


b. Update the source code using your own apikey and device ID

Device API which the LinkSprite IO support is JSON-based, which means all request and response data is enclosed in JSON format. Currently it supports 3 kind of request.

  • Update: Update device status to LinkSprite IO
  • Query: Get device status from LinkSprite IO

This demo will send http POST request to query the param--light on, if the light is on, then turn the LED, if off, then turn off the LED.

 //the library are needed for autoconfig WiFi
 // replace with your own API key and device ID,
 String apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
 const char* deviceID="xxxxxxxxxxxxx";
 const char* server = "";
 WiFiClient client;
 void setup() {                
   WiFiManager wifiManager;
   wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0));
   Serial.print("WiFi Connected ...
   Serial.println("WiFi connected");
 void loop() {
   if (client.connect(server,80)) {  
   String  postStr ="{";
         postStr +=""action":"query",";
         postStr +=""apikey":"";
         postStr += apikey;
         postStr +="",";
         postStr +=""deviceid":"";
         postStr += deviceID;
         postStr +="",";
         postStr += ""params":";
         postStr += "[";
         postStr += ""light"";
         postStr +="]";
         postStr +="}";
    client.print("POST /api/http HTTP/1.1
    client.print("Host: ");
Content-Type: application/json
    client.print("Content-Length: ");

 Serial.println("Store response...");
 String request = "";
 while (client.available()) {
   char c =;
   request +=c;
 if (request!= NULL)
   int index1 = request.indexOf(":{");
   int index2 = request.indexOf("},");
   String param = request.substring(index1, index2 + 1);
   Serial.print("The param is ");
       digitalWrite(BUILTIN_LED, HIGH);    
   } else if(param.indexOf("on")>0){
       digitalWrite(BUILTIN_LED, LOW);    

``` #### c. Test

  • Program the source code and open the Serial monitor to check the status


  • Open your light device which is create on
  • Click the button ON and OFF
  • Check the status of LED on LinkNode D1, is it following your control?

Galería de Imágenes


Escribir Comentario

No hay comentarios aún.