Ground Embedded KO Subscribe

Notes / Communication Protocols

Wireless: choosing BLE, Wi-Fi or LoRa

Compare by four things (range, speed, power and infrastructure) and the right wireless option for a project becomes clear.

GROUND EMBEDDED · NOTECommunication Protocols 11WirelessUARTSPII2CCAN
Type Range Speed Power Characteristics
BLE Up to tens of m ~1 Mbps Very low Connects directly to a smartphone
Classic Bluetooth ~10 m ~2 Mbps Medium Serial modules such as the HC-05, audio
Wi-Fi Up to tens of m Tens of Mbps and up High Direct internet connection (ESP32)
LoRa Several km A few kbps Very low Long-range sensors; needs a gateway
Zigbee / Thread Up to tens of m (mesh) 250 kbps Low Smart-home mesh
BLEtens of m · low powerWi-Fitens of m · fast · power-hungryLoRakm · very slow
Where the three belong. Longer range means slower, and faster means more power.

Questions for choosing

  1. Controlled from a phone app? → BLE
  2. Sending straight to an internet server? → Wi-Fi (or LTE-M)
  3. Years on a battery, kilometres of range? → LoRa
  4. A hobby project you want working quickly? → HC-05 Bluetooth serial

BLE concepts

A device exposes data as GATT services and characteristics, and the phone reads or writes a characteristic or subscribes to notifications. If you need "BLE that behaves like a UART", use a conventional service such as the Nordic UART Service.

Hardware

Using a pre-certified module reduces the burden of radio certification. Around the antenna, respect the keep-out area for ground and metal given in the module's datasheet.

FREE PDFGet the 3 free ebooksIf you want to keep reading this topic as one book: BLDC motor control, serial communication and sensors at book length. PDFs are in Korean.Get them free →