Stufin
Home Quick Cart Profile

WeMos Lolin V1.0 wifi+Bluetooth

Buy Now

WiFi

802.11 b/g/n protocol support, with a frequency range of 2.4 GHz

+ WiFi modeStation, SoftAP, and Wi-Fi Direct

+ Supports WPA/WPA2 encryption and WPS

Bluetooth

4.2 BR/EDR and BLE (Low Energy) protocol support, with a frequency range of 2.4 GHz

+ Bluetooth modeClassic, HID, SPP, and BLE peripheral

### Peripherals and Interfaces

GPIO

32 programmable GPIO pins, with support for SPI, I2S, I2C, UART, and PWM

USB

1x USB interface (USB-C) for programming and debugging

JTAG

1x JTAG interface for debugging and programming

UART

2x UART interfaces (1x hardware, 1x software)

SPI

1x SPI interface (supports up to 4x slaves)

I2C1x I2C interface (supports up to 2x slaves)
I2S1x I2S interface (supports audio streaming)

### Power Management

Operating Voltage

3.3V

Operating Current

80mA (average), 300mA (peak)

Power Saving

Supports multiple power-saving modes, including deep sleep, light sleep, and hibernation

Reset

Supports software and hardware reset

### Other Features

Operating Temperature

-40C to 85C

Dimensions

25.4mm x 51.3mm (1 inch x 2 inches)

Certifications

FCC, CE, and RoHS compliant

Programming

Supports Arduino, MicroPython, and ESP-IDF development environments

Applications

The WeMos Lolin V1.0 is suitable for a wide range of IoT applications, including

Smart home automation

Industrial automation

Wearable devices

Robotics and drones

Wireless sensor networks

BLE-based peripherals

WiFi-enabled appliances

Conclusion

The WeMos Lolin V1.0 WiFi + Bluetooth module is a powerful and feature-rich microcontroller module, ideal for IoT projects requiring dual-mode wireless connectivity. Its compact size, low power consumption, and versatility make it an attractive solution for a broad range of applications.

Pin Configuration

  • WeMos Lolin V1.0 WiFi + Bluetooth Module Pinout Guide
  • The WeMos Lolin V1.0 is a compact and powerful microcontroller board that combines WiFi and Bluetooth capabilities, making it an ideal choice for IoT projects. This guide provides a detailed explanation of each pin on the module, along with connection instructions.
  • Pinout Structure:
  • The WeMos Lolin V1.0 has a total of 26 pins, divided into three categories: Digital Pins, Analog Pins, and Power Pins.
  • Digital Pins (22):
  • 1. D0 (GPIO16): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 2. D1 (GPIO5): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 3. D2 (GPIO4): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 4. D3 (GPIO0): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 5. D4 (GPIO2): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 6. D5 (GPIO14): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 7. D6 (GPIO12): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 8. D7 (GPIO13): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 9. D8 (GPIO15): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 10. D9 (GPIO3): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 11. D10 (GPIO1): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 12. D11 (GPIO9): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 13. D12 (GPIO10): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 14. D13 (GPIO11): General-purpose digital input/output pin. Can be used as a digital input or output, and also as a PWM output.
  • 15. SDA (GPIO6): I2C data line.
  • 16. SCL (GPIO7): I2C clock line.
  • 17. RX (GPIO3): UART receive pin.
  • 18. TX (GPIO1): UART transmit pin.
  • 19. CTS (GPIO8): UART clear to send pin.
  • 20. RTS (GPIO9): UART request to send pin.
  • 21. DTR (GPIO10): UART data terminal ready pin.
  • 22. RI (GPIO11): UART ring indicator pin.
  • Analog Pins (4):
  • 1. A0 (ADC0): Analog-to-digital converter channel 0.
  • 2. A1 (ADC1): Analog-to-digital converter channel 1.
  • 3. A2 (ADC2): Analog-to-digital converter channel 2.
  • 4. A3 (ADC3): Analog-to-digital converter channel 3.
  • Power Pins (4):
  • 1. VCC: Power supply pin (3.3V).
  • 2. GND: Ground pin.
  • 3. VIN: External power supply pin (5V).
  • 4. EN (Enable): Enable pin for the on-board voltage regulator.
  • Connection Guide:
  • When connecting the pins, ensure that:
  • Digital pins are connected to devices that use the same voltage level (3.3V).
  • Analog pins are connected to devices that provide analog signals.
  • Power pins are connected to a power source that provides the recommended voltage levels (3.3V or 5V).
  • Use a level shifter or voltage divider if connecting devices with different voltage levels.
  • Important Notes:
  • The WeMos Lolin V1.0 is not 5V tolerant, so ensure that all connections are made at 3.3V levels.
  • Use a suitable power supply and decoupling capacitors to minimize noise and ensure stable operation.
  • Follow proper soldering and assembly practices to avoid damage to the module.
  • By following this pinout guide, you can successfully connect your WeMos Lolin V1.0 WiFi + Bluetooth module to your devices and start building your IoT projects.

Code Examples

WeMos Lolin V1.0 WiFi+Bluetooth Module Documentation
Overview
The WeMos Lolin V1.0 is a versatile WiFi and Bluetooth module based on the ESP32 microcontroller. It provides a compact and cost-effective solution for IoT projects, offering dual-mode WiFi and Bluetooth 4.0 connectivity. This module is ideal for projects requiring wireless communication, low power consumption, and a wide range of peripherals.
Features
ESP32 microcontroller with dual-core 32-bit LX6 microprocessor
 Dual-mode WiFi (AP/STA) and Bluetooth 4.0
 Supports UART, SPI, I2C, I2S, and GPIO interfaces
 Onboard antenna for WiFi and Bluetooth
 USB-to-UART bridge for programming and debugging
 Operating voltage: 3.3V
 Compact size: 25.5mm x 20.5mm x 3.5mm
Pinout
| Pin | Function |
| --- | --- |
| 3V3 | 3.3V Power Supply |
| GND | Ground |
| VIN | External Power Supply (5V) |
| EN | Enable Pin (Active High) |
| RX | UART RX Pin |
| TX | UART TX Pin |
| GPIO0 | GPIO Pin 0 |
| GPIO1 | GPIO Pin 1 |
| ... | ... |
| GPIO39 | GPIO Pin 39 |
Getting Started
To get started with the WeMos Lolin V1.0, you'll need:
A USB-to-UART bridge (e.g., FTDI or CP2102)
 A computer with a USB port
 The Arduino IDE or a compatible development environment
Code Examples
### Example 1: WiFi Scanner
This example demonstrates how to use the WeMos Lolin V1.0 to scan for nearby WiFi networks:
```cpp
#include <WiFi.h>
void setup() {
  Serial.begin(115200);
  WiFi.mode(WIFI_STA); // Set WiFi mode to Station (STA)
}
void loop() {
  Serial.println("Scanning for WiFi networks...");
  int numNetworks = WiFi.scanNetworks();
  Serial.println("Found " + String(numNetworks) + " networks:");
  for (int i = 0; i < numNetworks; i++) {
    Serial.println(WiFi.SSID(i) + " (" + WiFi.RSSI(i) + " dBm)");
  }
  delay(5000);
}
```
### Example 2: Bluetooth Low Energy (BLE) Beacon
This example shows how to use the WeMos Lolin V1.0 to advertise a BLE beacon:
```cpp
#include <BLE.h>
void setup() {
  Serial.begin(115200);
  BLE.begin();
  BLE.setDeviceName("My BLE Beacon");
  BLE.setLocalName("My BLE Beacon");
  BLE.setAdvertisedServiceUuid(BLEUUID("180f")); // Generic Access Profile
}
void loop() {
  BLE.advertise();
  delay(1000);
}
```
### Example 3: WiFi Web Server
This example demonstrates how to create a simple WiFi web server using the WeMos Lolin V1.0:
```cpp
#include <WiFi.h>
#include <WiFiServer.h>
WiFiServer server(80);
void setup() {
  Serial.begin(115200);
  WiFi.softAP("My WiFi AP", "12345678"); // Set up WiFi AP
  IPAddress myIP = IPAddress(192, 168, 4, 1);
  server.begin();
}
void loop() {
  WiFiClient client = server.available();
  if (client) {
    String request = client.readStringUntil('
');
    client.println("HTTP/1.1 200 OK");
    client.println("Content-Type: text/html");
    client.println("");
    client.println("<html><body><h1>Hello, World!</h1></body></html>");
    delay(1);
    client.stop();
  }
}
```
Notes
Make sure to install the necessary libraries and board definitions in your Arduino IDE or development environment.
 The WeMos Lolin V1.0 is a powerful module, and its capabilities go beyond these examples. Be sure to explore the module's documentation and datasheet for further information.
I hope this documentation helps you get started with the WeMos Lolin V1.0 WiFi+Bluetooth module!