Choosing Between Cellular and WiFi for IoT Projects
Mar, 15 2024
You have a decision to make when you need to send or receive data from your IoT device: cellular or WiFi? For standalone devices you will need to choose between one of these protocols. Both have tradeoffs.
Cellular Connectivity
Strengths
If your device is in a remote location far away from WiFi, cellular is the obvious choice. However, cellular can also make sense even when in range of WiFi networks. Cellular connectivity leads to a really nice onboarding experience as your device will automatically connect to the network when your user turns it on. Cellular also allows your device to remain connected if the device is frequently on the move.
Tradeoffs
Typically cellular is going to be the more expensive option. Cellular modems are more expensive and as the manufacturer your are responsible for the cost of the data transmission. You will have to maintain SIM cards for each of your devices while considering carrier coverage and fees.
When to choose it
- You are less cost sensitive
- Your device has low bandwidth requirements
- You want to streamline or entirely remove the user onboarding experience
- The device is out of range of available WiFi networks
- Your device is frequently on the move
- You want to deploy many devices at once in one facility
WiFi Connectivity
Strengths
If you're building a device that remains in the user's home or in an office environment, typically you will have access to a strong WiFi network. WiFi would be the better option if your device needs to transfer large amounts of data such as audio or video. WiFi controllers have become such a commodity that you can add WiFi connectivity to your device for a very small additional cost compared to cellular.
Tradeoffs
Sometimes the user's WiFi connection can be interrupted causing your device to fall off the network, or the network settings might change leaving your device without a connection. You have to trust your user to maintain your device's connection to the WiFi network. The experience of connecting your device to the user's WiFi network will have to carefully considered.
When to choose it
- You are cost constrained
- Your device has high bandwidth requirements
- You already have a user onboarding process - this can be extended to include WiFi provisioning
- You make no re-occurring revenue from the user
- Your device will always be within the range of WiFi or can tolerate intermittent connection
- You trust your users to maintain the connectivity status of your device
Cost breakdown
Below are some very rough estimates of costs associated with cellular and WiFi devices. Most of these estimates are "worst case scenarios".
Item | Cellular | WiFi | Comments |
---|---|---|---|
Modem | ~$50 per device | ~$5 per device | Cellular modems typically cost much more |
Data | ~$1 per month | Free | Some SIM providers offer lifetime data agreements, but typically you'll have a monthly cost associated with cellular data transfer |
Cloud costs | ~$0.01 per device per month | ~$0.01 per device per month | Both cellular and WiFi will incur server costs to connect to a managed MQTT broker such as AWS IoT Core |
User onboarding | Free | ~$100 per year + $25 one time fee | WiFi devices will typically require a companion mobile app to allow the user to provision the device connecting it to their network. This cost reflects the Apple and Android developer licenses |