Tags: ESP8266, ESP-01, Wireless, Transceiver, Module, Board, Arduino, AVR, Rasp.cheap

ESP8266 WIFI module ESP-01 8Mb

  • 25.00 AED

    29.00 AED

    • Ex Tax:25.00 AED
    • Brands RobotDYN
    • Product Code: RobotDYN
    • Availability: In Stock
    The ESP8266 ESP-01 is a Wi-Fi module that allows microcontrollers access to a Wi-Fi network. This module is a self-contained SOC (System On a Chip) that doesn’t necessarily need a microcontroller to manipulate inputs and outputs as you would normally do with an Arduino, for example, because the ESP-..

    The ESP8266 ESP-01 is a Wi-Fi module that allows microcontrollers access to a Wi-Fi network. This module is a self-contained SOC (System On a Chip) that doesn’t necessarily need a microcontroller to manipulate inputs and outputs as you would normally do with an Arduino, for example, because the ESP-01 acts as a small computer. Depending on the version of the ESP8266, it is possible to have up to 9 GPIOs (General Purpose Input Output). Then, we can give a microcontroller internet access like the Wi-Fi shield does to the Arduino, or we can simply program the ESP8266 to not only have access to a Wi-Fi network, but to act as a microcontroller as well. This makes the ESP8266 very versatile, and it can save you some money and space in your projects.



    Photo:

    angletop



    Sample Code

     

    # define to connect_ag_name "Wifi Address"
     # define to connect_ag_ password "Wifi Password"
    
    int led = 2 ;
    
    void  setup ()
    {
      Serial . begin ( 115200 ); // If the baudRate of the ESP module is 115200, this line is 
      //Serial.begin(9600); // If the baudRate of the ESP module is 9600, we use this line 
      Serial . printlin ( "AT" ); // Check whether there is a connection to the ESP module. 
      pinMode ( 2 , OUTPUT );
      delay ( 5000 ); // Wait 5 seconds for communication with the ESP module.
     
      if ( Serial . find ( "OK" )) // If the connection to the ESP module is established, the AT reader returns us as OK
      {
         Serial . println ( "AT + in CWMO = 1" ); // We switch the ESP Module to Wifi Mode STA mode. This mode allows us to connect to other networks. 
         delay ( 2000 );
         String ConnectionConnect = String ( "AT + CWJAP = \" " ) + connect_name + " \ ", \" " + connect_name_ " + "\" " ; // Sending network name and password to ESP module 
         Serial . println ;
         delay ( 5000 );
      }
     
       Serial . print ( "AT + CIPMUX = 1 \ r \ n" ); // We switch the ESP Module to multi-link mode 
       delay ( 200 );
       Serial . print ( "AT + CIPSERVER = 1.80 \ r \ n" ); // We use ESP in server mode and open port 80 
       delay ( 1000 );
    }
    
    void  loop () {
       if ( Serial . available ()> 0 ) {
         if ( Serial . find ( "+ IPD," )) {
           String entry = "<head> www.robolinkmarket.comlArhead>" ; // DEFINING TITLE SECTION AS HTML 
          input + = "<br> <a href=\" ?pin=ac\"> <button type = 'button'> OPEN </button> </a>" ;  // AC LED BUTTON IS Identified as HTML 
          input + = "<br> <a href=\" ?pin=kapa\"> <button type = 'button'> OFF <
          
          // -------------- PART SENDING BUTTONS AND HEAD INFORMATION TO ESP ------- // 
          String gonder_ESPye = "AT + CIPSEND =" ;
          gonder_ESPye + = "0" ;
          gonder_ESPye + = "," ;
          gonder_ESPye + = input.length ();
          gonder_ESPye + = "\ r \ n" ;
          // ------------------------------------------------ // ----------------------
          
          Serial . print (gonder_ESPye);
          delay ( 500 );
          Serial . println ;
          led_kontrol ();
          Serial . println ( "AT + CIPCLOS = 0" ); // ESP Sending is turned off      
        }
      }
    }
    
    void led_control ()
    {
     String webden_gelen = "" ;
     char seriali_oku;
     while ( Serial . available ()> 0 )
     {
     seriali_oku = Serial . read ();
     webden_from + = seriali_oku;
     }
     Serial . println (from web);
     
     if ((webden_gelen.indexOf ( ": GET /? pin = ac" )> 1 ))   // When the OPEN button is pressed, if there is /? pin = ac in the string
     {
      digitalWrite (led, HIGH );                       // led burns
     }
     if ((webden_gelen.indexOf ( ": GET /? pin = close" )> 1 )) // When the OFF button is pressed, if there is a /? pin = close in the string
     {
      digitalWrite (led, LOW );                        // led off
     }
    }

    There are no reviews for this product.

    Write a review

    Please login or register to review

    FREE RETURNS

    *for faulty items and in-store drop off for unused items. T&C applies.

    Customer Support

    We really care about you and your order as much as you do. Please contact us without hesitation.

    INTERNATIONAL SHIPPING

    We can ship your order internationally. Please contact us first before proceeding with your order.

    Fast Delivery

    You want your item next day? No problem! We advise contacting us ASAP to insure smooth delivery experience