Blink LED by Using ESP32 NodeMCU WiFi & Bluetooth Module Tutorial

14,368

9

2

Introduction: Blink LED by Using ESP32 NodeMCU WiFi & Bluetooth Module Tutorial

Description

NodeMCU is an open source IoT platform. It is programmed by using the Lua scripting language.The platform is based on eLua open source projects. The platform uses a lot of open source projects, such as lua-cjson, spiffs. This ESP32 NodeMcu contains firmware that can run on ESP32 Wi-Fi SoC chips, and hardware based on ESP-32S modules.It is the WiFi + Bluetooth hardware that can access through WiFi and Bluetooth.

Features:

  • Powerful operating hardware IO as arduino
  • micro USB port for power, programming and debugging

  • Using Nodejs similar syntax to write network applications

  • Ultra-low cost WIFI module
  • Dimension: 5.5 x 2.8 x 0.1cm

Step 1: Pin Definition

Step 2: Pin Connection

In this tutorial, connect LED's anode to ESP32's p21 and LED's cathode to ESP32's GND

Step 3: Sample Source Code

Download this sample source code.

Attachments

Step 4: Uploading

After completing the hardware connection, you have to upload the source code (download at previous page) into the ESP32 by using a micro USB. Before uploading the code, you have to install ESP32's driver into your Arduino IDE, you can check here.

Step 5: Results

As the result, the LED was blinking.

Be the First to Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Automation Contest

      Automation Contest
    • Make it Glow Contest

      Make it Glow Contest

    2 Comments

    2
    charlie6411.
    charlie6411.

    2 years ago

    Feel like this is a misleading tutorial title. It really should be "how to make a blinking LED with arduino code". The title suggests you are using the bluetooth and wifi from the esp32 to do this.

    0
    Achuthman
    Achuthman

    Question 3 years ago

    Could you share a tutorial on how to use bluetooth in NodeMCU ?