Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›IoT & Wireless
  4. ›Ai-Thinker Ai-WB2 (BL602) Wi-Fi and BLE Modules

Component guide · Intermediate · 5 min read

Ai-Thinker Ai-WB2 (BL602) Wi-Fi and BLE Modules

AT Commands and SDK

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the Ai-Thinker Ai-WB2 BL602 module isAi-Thinker Ai-WB2 BL602 module pinoutWiring the Ai-Thinker Ai-WB2 BL602 moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The Ai-WB2 series uses Bouffalo Lab's BL602, a 192 MHz RISC-V chip with 2.4 GHz Wi-Fi and BLE 5. Ai-Thinker built the modules in familiar footprints: Ai-WB2-01S matches ESP-01S, Ai-WB2-12F matches ESP-12F and Ai-WB2-32S matches ESP-32S. They ship with AT firmware, so an Arduino or STM32 can add Wi-Fi over UART, or you can program them with Ai-Thinker's SDK.

Key specs at a glance

Chip
Bouffalo BL602, RISC-V 192 MHz, 276 KB SRAM
Wireless
Wi-Fi 802.11 b/g/n 2.4 GHz, BLE 5.0
Flash
2 or 4 MB
Supply
3.3 V
Footprints
01S/01M (ESP-01 style), 07S, 12F/12S, 13/13U, 32S, M1
Firmware
AT commands by default

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1AI-Thinker Ai-WB2-12F Wi-Fi & BLE 5.0 Module w/ BL602 SoC₹229
  • Option 2AI-Thinker Ai-WB2-12S Wi-Fi & BLE 5.0 Module₹146
  • Option 3AI-Thinker Ai-WB2-01S Wi-Fi & BLE 5.0 Module (BL602)₹129
  • Option 4AI-Thinker Ai-WB2-01M Wi-Fi & BLE 5.0 Module₹146
  • Option 5AI-Thinker Ai-WB2-07S Wi-Fi & BLE 5.0 Module w/ IPEX Connector₹165
  • Option 6AI-Thinker Ai-WB2-13 Wi-Fi & BLE 5.0 Module w/ BL602 SoC₹122
01

What the Ai-Thinker Ai-WB2 BL602 module is

The Ai-WB2 modules put Bouffalo Lab's BL602 RISC-V Wi-Fi and BLE chip into the same footprints as the ESP-01S, ESP-12F and ESP-32S.

The pin-compatible footprints make the Ai-WB2 a drop-in on many ESP8266 boards, but the firmware and SDK are different: Arduino ESP8266 code does not run on it. AT commands follow Ai-Thinker's own set, close to Espressif's for common tasks such as AT+WJAP (join) and socket commands.

Programming your own firmware uses Ai-Thinker's Ai-Thinker-WB2 SDK (FreeRTOS based) and a UART flasher with the BOOT pin held high.

02

Ai-Thinker Ai-WB2 BL602 module pinout

The pins on the Ai-Thinker Ai-WB2 BL602 module and what each one does.

PinFunction
VCC / GND3.3 V supply
TXD / RXDUART0 for AT commands and flashing
ENEnable, pull high
IO8 / BOOTHigh at reset to enter download mode
GPIOPWM, ADC and I2C on larger modules
PinFunction
VCC / GND
3.3 V supply
TXD / RXD
UART0 for AT commands and flashing
EN
Enable, pull high
IO8 / BOOT
High at reset to enter download mode
GPIO
PWM, ADC and I2C on larger modules
03

Wiring the Ai-Thinker Ai-WB2 BL602 module

The module is 3.3 V only; use a divider or level shifter from a 5 V Uno and a separate 3.3 V regulator.

Ai-Thinker Ai-WB2 BL602 module pinArduino UnoESP32
VCC3.3V from a 500 mA regulator3V3
GNDGNDGND
TXDD2 (SoftwareSerial RX)GPIO 16
RXDD3 via dividerGPIO 17
EN3.3V3V3
VCC
Arduino Uno:
3.3V from a 500 mA regulator
ESP32:
3V3
GND
Arduino Uno:
GND
ESP32:
GND
TXD
Arduino Uno:
D2 (SoftwareSerial RX)
ESP32:
GPIO 16
RXD
Arduino Uno:
D3 via divider
ESP32:
GPIO 17
EN
Arduino Uno:
3.3V
ESP32:
3V3
04

Example code

Command names come from Ai-Thinker's Ai-WB2 AT manual; check it for TCP and MQTT commands on your firmware version.

Join Wi-Fi with AT commands (ESP32 host) · Arduino C++Verify & upload in Electrolark
HardwareSerial wb2(2);
void at(const char* c, int w = 1000) { wb2.println(c); delay(w); while (wb2.available()) Serial.write(wb2.read()); }

void setup() {
  Serial.begin(115200);
  wb2.begin(115200, SERIAL_8N1, 16, 17);
  at("AT");
  at("AT+GMR");                               // firmware version
  at("AT+WJAP=\"YOUR_WIFI\",\"YOUR_PASSWORD\"", 8000);
  at("AT+WJAP?");                             // connection status
}

void loop() {}
05

Setup and tuning

Power

supply 3.3 V that can deliver 300 mA or more, with a capacitor at the module for Wi-Fi bursts.

AT firmware

send AT commands at 115200 baud from an Arduino or USB-serial adapter to test Wi-Fi before custom code.

Download mode

hold the boot pin high (IO8 on most modules) during reset to flash new firmware with Bouffalo's tools.

Level shifting

the module is 3.3 V only; use a divider on the RX line from a 5 V Arduino.

SDK

for your own firmware use the Ai-Thinker or Bouffalo SDK; it is not the ESP-IDF and Arduino support is limited.

06

What you need

Shop this list17 of 18 found in our store · ₹3,316

  • AI-Thinker Ai-WB2-12F Wi-Fi & BLE 5.0 Module w/ BL602 SoC: the part this guide coversAI-Thinker Ai-WB2-12F Wi-Fi & BLE 5.0 Module w/ BL602 SoC₹229
  • AI-Thinker Ai-WB2-12S Wi-Fi & BLE 5.0 Module: another version this guide coversAI-Thinker Ai-WB2-12S Wi-Fi & BLE 5.0 Module₹146
  • AI-Thinker Ai-WB2-01S Wi-Fi & BLE 5.0 Module (BL602): another version this guide coversAI-Thinker Ai-WB2-01S Wi-Fi & BLE 5.0 Module (BL602)₹129
  • AI-Thinker Ai-WB2-01M Wi-Fi & BLE 5.0 Module: another version this guide coversAI-Thinker Ai-WB2-01M Wi-Fi & BLE 5.0 Module₹146
  • AI-Thinker Ai-WB2-07S Wi-Fi & BLE 5.0 Module w/ IPEX Connector: another version this guide coversAI-Thinker Ai-WB2-07S Wi-Fi & BLE 5.0 Module w/ IPEX Connector₹165
  • AI-Thinker Ai-WB2-13 Wi-Fi & BLE 5.0 Module w/ BL602 SoC: another version this guide coversAI-Thinker Ai-WB2-13 Wi-Fi & BLE 5.0 Module w/ BL602 SoC₹122
  • AI-Thinker Ai-WB2-13 Wi-Fi & BLE Development Kit: another version this guide coversAI-Thinker Ai-WB2-13 Wi-Fi & BLE Development Kit₹379
  • AI-Thinker Ai-WB2-13U Wi-Fi & BLE 5.0 Module w/ IPEX: another version this guide coversAI-Thinker Ai-WB2-13U Wi-Fi & BLE 5.0 Module w/ IPEX₹184
  • AI-Thinker Ai-WB2-32S Wi-Fi & BLE 5.0 Dev Kit: another version this guide coversAI-Thinker Ai-WB2-32S Wi-Fi & BLE 5.0 Dev Kit₹409
  • AI-Thinker Ai-WB2-M1 Wi-Fi & BLE 5.0 Module: another version this guide coversAI-Thinker Ai-WB2-M1 Wi-Fi & BLE 5.0 Module₹116
  • AI-Thinker Ai-WB2-M1-I Wi-Fi & BLE Module: another version this guide coversAI-Thinker Ai-WB2-M1-I Wi-Fi & BLE Module₹110
  • Ai-WB2-32S Wi-Fi & BLE 5.0 Module: another version this guide coversAi-WB2-32S Wi-Fi & BLE 5.0 Module₹197
  • Ai-WB2-32S-Kit BL602 Wi-Fi & BT5 Module w/ 4MB Flash: another version this guide coversAi-WB2-32S-Kit BL602 Wi-Fi & BT5 Module w/ 4MB Flash₹419
  • USB to TTL serial converter: to talk to the module from a PCUSB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)₹85Closest match, check the specs
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • 4-channel logic level converter (BSS138): to connect 5 V and 3.3 V signals safely4-Channel Logic Level Converter (BSS138)₹20
  • Breadboard power supply module 3.3V/5V: a 3.3 V supply for bare modulesBreadboard Power Supply Module (3.3V / 5V)₹71
  • ESP32-WROOM-32 38-pin development board: a host board with spare UARTsESP32-WROOM-32 38-Pin Development Board₹389
07

Alternatives and when to choose them

  • ✓BL602 and RTL8720 modules: the wider family.
  • ✓ESP-01 ESP8266: the module the 01S footprint copies.
  • ✓ESP-12F: the module the 12F footprint copies.
08

Common mistakes to avoid

  • !Expecting ESP8266 Arduino sketches to run on it.
  • !Powering it from an Arduino 3.3 V pin that cannot supply Wi-Fi current.
  • !Sending 5 V serial straight into its RX pin.
  • !Forgetting to hold the boot pin when flashing.
09

Frequently asked questions

Is the Ai-WB2 compatible with ESP8266 code?

No. It shares the footprint but not the chip, so ESP8266 and ESP32 firmware will not run on it.

Can I program it with the Arduino IDE?

Arduino support is limited. Most users use the AT firmware or the Bouffalo and Ai-Thinker SDKs.

Does it support Bluetooth?

Yes. The BL602 has BLE 5.0 as well as 2.4 GHz Wi-Fi.

Why does the module keep resetting?

Usually the 3.3 V supply sags during Wi-Fi transmit. Use a stronger regulator and a capacitor at the module.

Why choose it over an ESP-01?

It is low-cost with BLE added, but the ESP modules have far more tutorials and libraries.

Parts for this guide

  • AI-Thinker Ai-WB2-12F Wi-Fi & BLE 5.0 Module w/ BL602 SoC
    ₹229View
  • AI-Thinker Ai-WB2-12S Wi-Fi & BLE 5.0 Module
    ₹146View
  • AI-Thinker Ai-WB2-01S Wi-Fi & BLE 5.0 Module (BL602)
    ₹129View
  • AI-Thinker Ai-WB2-01M Wi-Fi & BLE 5.0 Module
    ₹146View
  • AI-Thinker Ai-WB2-07S Wi-Fi & BLE 5.0 Module w/ IPEX Connector
    ₹165View
  • AI-Thinker Ai-WB2-13 Wi-Fi & BLE 5.0 Module w/ BL602 SoC
    ₹122View
  • AI-Thinker Ai-WB2-13 Wi-Fi & BLE Development Kit
    ₹379View
  • AI-Thinker Ai-WB2-13U Wi-Fi & BLE 5.0 Module w/ IPEX
    ₹184View
  • AI-Thinker Ai-WB2-32S Wi-Fi & BLE 5.0 Dev Kit
    ₹409View
  • AI-Thinker Ai-WB2-M1 Wi-Fi & BLE 5.0 Module
    ₹116View
  • AI-Thinker Ai-WB2-M1-I Wi-Fi & BLE Module
    ₹110View
  • Ai-WB2-32S Wi-Fi & BLE 5.0 Module
    ₹197View
  • Ai-WB2-32S-Kit BL602 Wi-Fi & BT5 Module w/ 4MB Flash
    ₹419View
  • USB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)
    ₹85View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 4-Channel Logic Level Converter (BSS138)
    ₹20View
  • Breadboard Power Supply Module (3.3V / 5V)
    ₹71View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
Shop Wi-Fi Modules & Development Boards

Keep learning

Component guideIntermediateBL602, BL616 and RTL8720 Wi-Fi ModulesAi-Thinker's non-ESP Wi-Fi modules explained: BL602 Ai-WB2, BL616/BL618 Ai-M61 and Ai-M62 with Wi-Fi 6, and the dual-band RTL8720DN BW16.3 min read · IoT & WirelessComponent guideIntermediateESP-01 / ESP-01S ESP8266 ModuleThe ESP-01 is a tiny ESP8266 Wi-Fi module with 8 pins: power, serial, reset, chip enable and two GPIOs.3 min read · IoT & WirelessComponent guideIntermediateESP-12F, ESP-12E and ESP-12S ESP8266 ModuleThe ESP-12F is the bare ESP8266 Wi-Fi module inside NodeMCU and Wemos boards: an 80 MHz chip, 4 MB flash and a PCB antenna on a 16-pad shielded module.5 min read · Boards & MicrocontrollersComponent guideIntermediateUSB to TTL Serial AdaptersA USB to TTL adapter turns a computer USB port into a 3.3 V or 5 V serial port, so you can program boards without USB (Pro Mini, ESP-01, ESP32-CAM) or read a debug console.4 min read · Boards & Microcontrollers

Sources

  • Ai-Thinker Ai-WB2 series specifications and AT manual
  • Bouffalo Lab BL602 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Ai-Thinker Ai-WB2 BL602 module isAi-Thinker Ai-WB2 BL602 module pinoutWiring the Ai-Thinker Ai-WB2 BL602 moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide8 items · ₹1,774

AI-Thinker Ai-WB2-12F Wi-Fi & BLE 5.0 Module w/ BL602 SoC · AI-Thinker Ai-WB2-12S Wi-Fi & BLE 5.0 Module · AI-Thinker Ai-WB2-01M Wi-Fi & BLE 5.0 Module · AI-Thinker Ai-WB2-07S Wi-Fi & BLE 5.0 Module w/ IPEX Connector · AI-Thinker Ai-WB2-13 Wi-Fi & BLE Development Kit · AI-Thinker Ai-WB2-13U Wi-Fi & BLE 5.0 Module w/ IPEX · AI-Thinker Ai-WB2-32S Wi-Fi & BLE 5.0 Dev Kit · AI-Thinker Ai-WB2-M1 Wi-Fi & BLE 5.0 Module

Run itChange the inputs and watch the output

Replies from the module's AT firmware. A wrong password gives an error instead of an IP.

Serial monitor115200 baud
AT+GMR
AT version: release/BL_SDK_v1.6.40
OK
AT+WJAP="YOUR_WIFI","YOUR_PASSWORD"
OK
+EVENT:WIFI_GOT_IP
AT+WJAP?
+WJAP:"YOUR_WIFI",192.168.1.57
OK

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question