WiFi module with integrated antenna

The SPWF04SA and the SPWF04SC are ready-to-use Wi-Fi modules conceived for Internet of Things (IoT) applications. The modules integrate a Cortex-M4-based STM32 microcontroller and a powerful Wi-Fi transceiver, compliant with IEEE 802.11 b/g/n standard for the 2.4 GHz band.

The modules are cloud compatible thanks to the complete protocol package, which includes application and security layers. They can operate in serial-to-Wi-Fi and standalone mode, with customer applications developed in the subsystem based on the MicroPython environment.

The modules are configured around a single-chip 802.11 transceiver with integrated PA and comprehensive power management subsystem, and an STM32F4 microcontroller with UART/SPI interface and an extensive GPIO suite; they also incorporate timing clocks and a voltage regulator.

The SPWF04SA module is configured with a highly-efficient, embedded micro 2.4 GHz ISM band antenna, or with an external U.FL antenna connector (SPWF04SC); both are certified FCC/IC and CE.

With low power consumption and an ultra-compact (2.7 x 1.5 cm) footprint, the modules are ideal for fixed and mobile wireless applications, as well as challenging battery-operated applications.

The SPWF04Sx parts are released with an integrated full featured TCP/IP protocol stack with added web server and additional application service capabilities, including REST API for accessing files on servers in the cloud and support for dynamic web pages with SSI functions to easily interact with the module and the host processor over the air. Application note AN4965 on www.st.com provides details on HTTP server capabilities.

Multiple higher level protocols over TCP are supported by the module including: HTTP, MQTT, SMTP, and WebSockets to easily connect application to the cloud. Multiple protocols supported over UDP include: TFTP, SNTP and mDNS; the module also includes IPv6 networking capabilities.

The SW package also has an AT command layer interface for user-friendly access to the stack functionalities via the UART serial port and an SPI interface supporting master and slave messages from and to the host processor respectively (see user manual UM2114 on www.st.com).

The SPWF04Sx includes a MicroPython scripting engine to enable simple and fast custom application development on the module MCU: no external MCU is needed and the customer application runs directly on the module. The interpreter implementation is fully compatible with the standard MicroPython version 1.6. In standalone mode, MicroPython use Wi-Fi interfaces and MCU peripherals such as UART, SPI, I2C, GPIOs via standard MicroPython APIs (see application note AN4964 on www.st.com).

1 MB of the internal Flash is dedicated to store the user file system while a hardware interface allows the usage of an external memory via SPI/SDIO (Serial Flash/SD Card) to further extend the file system storage capabilities.

The module supports WPA2-Personal and WPA2-Enterprise security and WPS (Wi-Fi protected setup).

For secure end-to-end communication with the cloud, an SSL/TLS stack is embedded in every module, with no licensing charge. See application note AN4963 on www.st.com for details on security.

The module firmware may be updated at any time via UART and over-the-air (FOTA); the FOTA operation can be performed with different level of security, as described in AN4963.

ST may update the module firmware at any time; check regularly for documentation and firmware updates on www.st.com/wifimodules.

Key Features

  • 2.4 GHz IEEE 802.11 b/g/n transceiver
  • High performance STM32F439
    • ARM® Cortex® -M4
    • 256 KB SRAM
    • 2 MB embedded high-speed Flash memory
    • 1 MB Flash memory for user storage, extendable via SD/MMC interface or external SPI Flash
  • Integrated TCP/IP protocol stack
    • 8 simultaneous TCP or UDP clients and 2 socket servers (supporting up to 8 clients each)
    • Secured socket and upper layers (i.e. HTTPS) supporting up to TLS 1.2, including X.509 Certificates, AES (128, 256), hash (MD5, SHA-1, SHA-256, SHA-384) and public key algorithms for key exchange (RSA, DH, ECDH) and digital signature (RSA, ECDSA).
  • Web server supporting SSI
  • Open, WEP, WPA2 PSK, WPA2 Enterprise
  • WPS for station
  • System modes: Station, IBSS, and miniAP (supporting up to 5 Stations)
  • miniAP easily provisioned (SSID, PWD)
  • Fast Wi-Fi re-association after reset
  • Secure Firmware and FileSystem updates Over The Air (OTA)
  • TX power
    • 18.3 dBm @ 1 Mbps DSSS
    • 13.7 dBm @ 54 Mbps OFDM
  • RX sensitivity
    • -96.0 dBm @ 1 Mbps DSSS
    • -74.5 dBm @ 54 Mbps OFDM
  • 21 configurable GPIOs available
  • UART and SPI interface to host system
  • Advanced low-power modes
    • Standby with RTC: 43 µA
    • Sleep = 3 mA
    • Idle connected (DTIM=1) = 5 mA
    • RX traffic 105 mA typical
    • TX traffic 260 mA typical @ 10 dBm
  • AT command set interface through UART
  • SPI interface with simple protocol
  • Application subsystem
    • Embedded real-time MicroPython environment for customer applications and on-board development
    • MicroPython API library for easy access to Wi-Fi subsystem capabilities and device peripherals (i.e. UART, SPI, I²C)
  • Small form factor: 26.92 x 15.24 x 2.35 mm
  • Single voltage supply (3.3 V typical)
  • Antenna options: integrated antenna/U.FL connector
  • Industrial temperature range: -40°C to 85°C
  • FCC/CE/IC certified
  • RoHS compliant


Technical Documentation

Product Specifications
Description Version Size
DS11839 DS11839: Standalone and Serial-to-Wi-Fi b/g/n intelligent modules 5.0 858 KB
Application Notes
Description Version Size
AN4964 AN4964: MicroPython scripting language over SPWF04S 2.0 766 KB
AN4963 AN4963: Security on SPWF04S module 2.0 2 MB
AN4965 AN4965: WebServer on SPWF04S module 2.0 368 KB
User Manuals
Description Version Size
UM2114 UM2114: TCP/IP protocol stack for SPWF04Sx Wi-Fi modules 2.0 1 MB

Presentations & Training Material

Description Version Size
STSW-IDW004 Wifi hands on training 1.0 9 MB

Publications and Collaterals

Description Version Size
Wireless connectivity for IoT applications 2.0 2 MB

Tools and Software

STM32 Open Development Environment
Embedded Software
Wireless Connectivity Software
Evaluation Tools
Solution Evaluation Tools
Support & Community

Sample & Buy

Part Number Package Packing Type FLASH Size (Mb) (typ) Marketing Status Unit Price (US$) * Quantity ECCN (EU) ECCN (US) Country of Origin More info Order from ST Order from Distributors

(*) Suggested Resale Price per unit (USD) for BUDGETARY USE ONLY. For quotes, prices in local currency, please contact your local ST Sales Office  or our Distributors

Quality & Reliability

Part Number Marketing Status Package Grade RoHS Compliance Grade Material Declaration**
SPWF04SA ActiveRF MODULEIndustrialEcopack1 0 0

(**) The Material Declaration forms available on st.com may be generic documents based on the most commonly used package within a package family. For this reason, they may not be 100% accurate for a specific device. Please contact our sales support for information on specific devices.