Wi-Fi, Bluetooth & Radio Constraints: the short answer
Wi-Fi joins your home network, so a device can reach the internet or serve a web page to your phone. 4 GHz networks on most maker boards.
- Level
- Intermediate
- Time
- About 5 min
- Topic
- Communication
Choose between Wi-Fi, BLE and long-range radio, and estimate the battery cost.
Before this: Arduino and ESP32 Basics
Wi-Fi joins your home network, so a device can reach the internet or serve a web page to your phone. It uses more power (an ESP32 can draw 150 to 250 mA while transmitting) and only works with 2.4 GHz networks on most maker boards.
Bluetooth Low Energy (BLE) talks directly to a nearby phone, uses much less power, and is good for short-range control and sensors on batteries. Classic Bluetooth (HC-05) is an easy wireless serial cable. LoRa (SX1276) and nRF24L01+ cover long range or many small nodes at low data rates.
For battery devices, the biggest saving is to send less often and sleep in between. Waking once a minute to send one reading can use a hundred times less energy than staying connected.
Radio range depends on the antenna: keep the board's antenna end away from metal, ground planes and batteries.
Matching the radio to the job
Wi-Fi gives high data rates and reaches the internet, but it is power hungry and needs infrastructure. BLE trades speed for very low power, and is the right choice for a phone near the device. LoRa goes kilometres at a few hundred bits per second, which suits a rain gauge or soil sensor in a field. Zigbee and Thread build mesh networks of small nodes.
Ask three questions: how far, how much data, and how long on a battery. The answers usually point to one radio.
Power: the cost of being connected
An ESP32 transmitting on Wi-Fi draws 150 to 250 mA. Connecting takes one to three seconds, which itself costs energy, and staying connected in light sleep still draws a few milliamps. For a device that reports once a minute, the cheapest approach is to wake, read, connect, send, and go back into deep sleep, drawing microamps in between. Reusing a saved channel and IP address (fast connect) shortens the awake time.
BLE advertising bursts take only milliseconds and a few milliamps, so a coin cell can run a sensor for months to years.
Range, antennas and the environment
Signal falls with distance and with obstacles: brick and concrete walls, metal cabinets, water and people. 2.4 GHz is crowded by microwave ovens, Bluetooth and neighbours' routers. Keep the antenna end of an ESP32 board outside any metal box and away from batteries and ground planes. Use a module with an external antenna connector for harder cases.
For range tests, measure the signal strength (RSSI) at different spots and log it. Around −70 dBm is good, and below −85 dBm is unreliable.
Rules, security and reliability
In India, low-power devices in the 2.4 GHz band and certain 865 to 867 MHz bands can be used without a licence, within power limits, but check the current rules before selling a product or using high-power radios. Encrypt anything that matters: use WPA2 or WPA3 for Wi-Fi, and BLE pairing with a passkey for control of anything real, since an open BLE characteristic can be written by anyone nearby.
Expect the link to drop. Reconnect automatically, queue data while offline and add a timeout so a missing connection never freezes the rest of the program.
- Keeping Wi-Fi connected on a battery device that only needs to report once an hour.
- Placing the antenna against a metal case or a battery.
- Leaving a BLE control characteristic writable with no pairing.
Practise this lesson with Maker
The explanation above is free for everyone. The practice for Intermediate lessons in every domain are part of the Maker plan at ₹499 a month, and Pro includes them too.
With Maker you also get: a worked example, a hands-on task, a 3-question check.
