Stufin
Home Quick Cart Profile

Node MCU ESP8266 V3 (LOLIN CH340 chip)

Buy Now on Stufin

IoT projects

Connect sensors, actuators, and other devices to the internet for remote monitoring and control.

Robotics

Use the board as the brain of your robot, leveraging Wi-Fi connectivity for remote control and sensor data transmission.

Automation

Control and monitor devices remotely using the board's Wi-Fi capabilities.

Key Features

  • ESP8266 SoC: The board is built around the ESP8266EX microcontroller, which provides:

32-bit LX6 microprocessor

4MB flash memory

96KB data RAM

64KB instruction RAM

Wi-Fi 802.11 b/g/n connectivity

Integrated low-power radio frequency (RF) front-end

Support for multiple Wi-Fi modes (STA, AP, STA+AP)

  • LOLIN CH340 chip: The CH340 chip provides a USB-to-UART serial converter, allowing for easy communication between the board and a computer or other devices.
  • GPIOs: The board features 17 GPIO pins, including:

12 digital pins (GPIO0-11)

1 analog input pin (A0)

1 UART pin (UART0)

1 I2C pin (SCL)

1 I2C pin (SDA)

1 SPI pin (SCK)

1 SPI pin (MISO)

1 SPI pin (MOSI)

  • Power Management:

Onboard 5V to 3.3V voltage regulator

Supports external power supply (5V-12V) or USB power

  • Other Features:

Onboard 2.54mm pin headers for easy connection to breadboards or other devices

Support for OTA (Over-the-Air) firmware updates

Integrated Wi-Fi antenna

Compatible with Arduino IDE and other development platforms

Dimensions and Weight

Dimensions

49 x 24.5 mm (1.93 x 0.96 in)

Weight

approximately 10g (0.35 oz)

Operating Conditions

Operating temperature

-20C to 85C (-4F to 185F)

Operating humidity

5% to 95% RH (non-condensing)

Certifications and Compliance

FCC, CE, and RoHS compliant

Documentation and Resources

datasheets for ESP8266 SoC and LOLIN CH340 chip

Schematics and PCB design files

Arduino IDE and other development platform documentation

Purchasing and Support

Available for purchase from various online retailers and electronics suppliers

Community support and resources available through online forums and documentation portals

Pin Configuration

  • Node MCU ESP8266 V3 (LOLIN CH340 chip) Pinout Guide
  • The Node MCU ESP8266 V3 (LOLIN CH340 chip) is a popular microcontroller board based on the ESP8266 system-on-chip. It has a total of 30 pins, which can be categorized into several groups: GPIO pins, Power pins, and Special Function pins. Here's a breakdown of each pin:
  • Power Pins (3)
  • 1. VIN (Voltage Input): This pin is used to supply power to the board. It can handle a voltage range of 7-12V. Make sure to provide a stable voltage supply to avoid damage to the board.
  • 2. 3V3 (3.3V Output): This pin provides a regulated 3.3V output, which can be used to power external devices.
  • 3. GND (Ground): This pin is connected to the ground of the power supply and is used as a reference point for the entire circuit.
  • GPIO Pins (17)
  • GPIO pins are used for input/output operations, communication, and other functions. They are labeled as D0-D16.
  • 1. D0 (GPIO16): This pin is used as a GPIO pin and can be configured as an input or output.
  • 2. D1 (GPIO5): This pin is used as a GPIO pin and can be configured as an input or output.
  • 3. D2 (GPIO4): This pin is used as a GPIO pin and can be configured as an input or output.
  • 4. D3 (GPIO0): This pin is used as a GPIO pin and can be configured as an input or output.
  • 5. D4 (GPIO2): This pin is used as a GPIO pin and can be configured as an input or output.
  • 6. D5 (GPIO14): This pin is used as a GPIO pin and can be configured as an input or output.
  • 7. D6 (GPIO12): This pin is used as a GPIO pin and can be configured as an input or output.
  • 8. D7 (GPIO13): This pin is used as a GPIO pin and can be configured as an input or output.
  • 9. D8 (GPIO15): This pin is used as a GPIO pin and can be configured as an input or output.
  • 10. D9 (GPIO3): This pin is used as a GPIO pin and can be configured as an input or output.
  • 11. D10 (GPIO1): This pin is used as a GPIO pin and can be configured as an input or output.
  • 12. D11 (GPIO9): This pin is used as a GPIO pin and can be configured as an input or output.
  • 13. D12 (GPIO10): This pin is used as a GPIO pin and can be configured as an input or output.
  • 14. D13 (GPIO11): This pin is used as a GPIO pin and can be configured as an input or output.
  • 15. D14 (GPIO6): This pin is used as a GPIO pin and can be configured as an input or output.
  • 16. D15 (GPIO7): This pin is used as a GPIO pin and can be configured as an input or output.
  • 17. D16 (GPIO8): This pin is used as a GPIO pin and can be configured as an input or output.
  • Special Function Pins (10)
  • 1. RX (Receive): This pin is used for serial communication and receives data from an external device.
  • 2. TX (Transmit): This pin is used for serial communication and transmits data to an external device.
  • 3. RST (Reset): This pin is used to reset the board. Connect it to a button or a reset circuit to reset the board programmatically.
  • 4. EN (Enable): This pin is used to enable or disable the onboard voltage regulator. Connect it to a voltage source or a switch to control the regulator.
  • 5. UOT (UART Output): This pin is used for UART communication and provides the output of the UART transmitter.
  • 6. UIN (UART Input): This pin is used for UART communication and receives the input of the UART receiver.
  • 7. SDA (I2C Data): This pin is used for I2C communication and carries the data signal.
  • 8. SCL (I2C Clock): This pin is used for I2C communication and carries the clock signal.
  • 9. SS (SPI Slave Select): This pin is used for SPI communication and is used to select the slave device.
  • 10. Vin Sense: This pin is used to sense the input voltage and is connected to the onboard voltage regulator.
  • Connecting the Pins
  • When connecting the pins, follow these guidelines:
  • Use a breadboard or a PCB to connect the pins to external devices.
  • Use jumper wires or breadboard wires to connect the pins to each other or to external devices.
  • Make sure to use the correct voltage levels and current ratings when connecting external devices.
  • Avoid connecting multiple devices to the same pin, as it may cause conflicts or damage to the board.
  • Use a logic level converter if you need to connect devices with different voltage levels.
  • Remember to always refer to the datasheet and documentation of the external devices you are connecting to ensure compatibility and proper connection.

Code Examples

Node MCU ESP8266 V3 (LOLIN CH340 chip) Documentation
Overview
The Node MCU ESP8266 V3 is a microcontroller board based on the popular ESP8266 system-on-a-chip (SoC) and features a LOLIN CH340 chip for USB-to-UART communication. This board is a cost-effective and compact solution for developing IoT projects, offering Wi-Fi connectivity, onboard USB programming, and a range of I/O interfaces.
Key Features
ESP8266 SoC with 32-bit LX6 microprocessor
 LOLIN CH340 chip for USB-to-UART communication
 4MB Flash memory
 Wi-Fi 802.11 b/g/n
 Onboard USB programming and debugging
 17 GPIO pins (including 3.3V and GND)
 Operating voltage: 3.3V
 Dimensions: 49mm x 25mm
Code Examples
### Example 1: Wi-Fi Connectivity and HTTP Request
This example demonstrates how to connect to a Wi-Fi network and send an HTTP request using the Node MCU ESP8266 V3.
```c
#include <WiFi.h>
const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
const char server = "http://example.com";
WiFiClient client;
void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting to WiFi...");
  }
Serial.println("Connected to WiFi");
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());
}
void loop() {
  if (WiFi.status() == WL_CONNECTED) {
    HTTPClient http;
    http.begin(server);
    int httpCode = http.GET();
if (httpCode > 0) {
      String response = http.getString();
      Serial.println(response);
    } else {
      Serial.println("Error sending HTTP request");
    }
http.end();
  }
delay(10000);
}
```
In this example, the board connects to a Wi-Fi network using the `WiFi.begin()` function and then sends an HTTP request to a server using the `HTTPClient` library.
### Example 2: Blinking LED and Serial Communication
This example demonstrates how to use the Node MCU ESP8266 V3 to blink an LED and communicate with a serial terminal.
```c
const int ledPin = 2;  // GPIO2
void setup() {
  Serial.begin(115200);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  digitalWrite(ledPin, HIGH);
  Serial.println("LED is ON");
  delay(1000);
digitalWrite(ledPin, LOW);
  Serial.println("LED is OFF");
  delay(1000);
}
```
In this example, the board blinks an LED connected to GPIO2 and sends a message to the serial terminal using the `Serial.println()` function.
Additional Resources
[ESP8266 Arduino Core](https://github.com/esp8266/Arduino)
 [LOLIN CH340 Datasheet](https://www.wemos.cc/en/latest/ch340_ds.html)
 [Node MCU ESP8266 V3 Schematic](https://github.com/nodemcu/nodemcu-devkit-v3/blob/master/schematics/NODEMCU_DEVKIT_V3.pdf)
Troubleshooting
Make sure to use the correct baud rate (115200) for serial communication.
 Verify that the Wi-Fi credentials are correct and the network is available.
 Check the LED pin connections and ensure that the LED is properly wired.