colors = ({
navy: "#2C3E50",
teal: "#16A085",
orange: "#E67E22",
blue: "#3498DB",
gray: "#7F8C8D",
purple: "#9B59B6",
red: "#E74C3C"
})
viewof numSensors = Inputs.range([10, 2000], {
label: "Number of Sensors",
step: 10,
value: 50
})
viewof years = Inputs.range([1, 10], {
label: "Deployment Years",
step: 1,
value: 5
})
viewof sensorCostWiFi = Inputs.range([30, 100], {
label: "Wi-Fi Sensor Cost ($)",
step: 5,
value: 50
})
viewof sensorCostLoRa = Inputs.range([50, 150], {
label: "LoRaWAN Sensor Cost ($)",
step: 5,
value: 80
})
viewof monthlyOpsCostWiFi = Inputs.range([1, 30], {
label: "Wi-Fi Monthly Ops Cost ($/warehouse)",
step: 1,
value: 10
})
viewof monthlyOpsCostLoRa = Inputs.range([1, 30], {
label: "LoRaWAN Monthly Ops Cost ($/warehouse)",
step: 1,
value: 5
})
// Calculations
wifiHardware = numSensors * sensorCostWiFi
loraHardware = numSensors * sensorCostLoRa
wifiInstall = numSensors * 30 // Assuming $30/sensor for Wi-Fi infrastructure
loraInstall = Math.ceil(numSensors / 100) * 200 // Gateway cost, 100 sensors per gateway
wifiOps = monthlyOpsCostWiFi * 12 * years
loraOps = monthlyOpsCostLoRa * 12 * years
wifiTCO = wifiHardware + wifiInstall + wifiOps
loraTCO = loraHardware + loraInstall + loraOps
savings = wifiTCO - loraTCO
savingsPct = (savings / wifiTCO * 100).toFixed(1)
formatUSD = value => "$" + value.toLocaleString()
// Results Display
html`
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px;">
<div style="border: 2px solid ${colors.navy}; border-radius: 8px; padding: 20px; background: #f8f9fa;">
<h4 style="color: ${colors.navy}; margin-top: 0;">Wi-Fi / Cellular</h4>
<div style="display: grid; gap: 8px;">
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;"><strong>Hardware:</strong><span>${formatUSD(wifiHardware)}</span></div>
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;"><strong>Installation:</strong><span>${formatUSD(wifiInstall)}</span></div>
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;"><strong>Operations (${years}yr):</strong><span>${formatUSD(wifiOps)}</span></div>
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 2px solid ${colors.navy}; padding-top: 8px; font-weight: bold;">
<strong>Total TCO:</strong>
<span style="color: ${colors.navy};">${formatUSD(wifiTCO)}</span>
</div>
</div>
</div>
<div style="border: 2px solid ${colors.teal}; border-radius: 8px; padding: 20px; background: #f8f9fa;">
<h4 style="color: ${colors.teal}; margin-top: 0;">LoRaWAN</h4>
<div style="display: grid; gap: 8px;">
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;"><strong>Hardware:</strong><span>${formatUSD(loraHardware)}</span></div>
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;"><strong>Installation:</strong><span>${formatUSD(loraInstall)}</span></div>
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;"><strong>Operations (${years}yr):</strong><span>${formatUSD(loraOps)}</span></div>
<div style="display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 2px solid ${colors.teal}; padding-top: 8px; font-weight: bold;">
<strong>Total TCO:</strong>
<span style="color: ${colors.teal};">${formatUSD(loraTCO)}</span>
</div>
</div>
</div>
</div>
<div style="margin-top: 20px; padding: 15px; background: ${savings > 0 ? colors.teal : colors.orange}; color: white; border-radius: 8px; text-align: center; font-size: 1.1em;">
${savings > 0
? `<strong>LoRaWAN saves ${formatUSD(savings)} (${savingsPct}%) over ${years} years</strong>`
: `<strong>Wi-Fi saves ${formatUSD(Math.abs(savings))} (${Math.abs(savingsPct)}%) over ${years} years</strong>`
}
</div>
<div style="margin-top: 15px; padding: 12px; background: #f8f9fa; border-left: 4px solid ${colors.blue}; border-radius: 4px;">
<p style="margin: 0; color: ${colors.navy};"><strong>Key Insight:</strong> ${savings > 0
? `Lower operational costs (${monthlyOpsCostLoRa} vs ${monthlyOpsCostWiFi} monthly) drive LoRaWAN ROI despite higher sensor prices.`
: `Wi-Fi's lower sensor cost (${formatUSD(sensorCostWiFi)} vs ${formatUSD(sensorCostLoRa)}) outweighs higher operational expenses for this configuration.`
}</p>
</div>
`IoT Connectivity TCO
IoT Connectivity TCO
animation
iot
connectivity
Try Change Deployment Years from 5 to 10.
Observe Compare Operations and Total TCO over 5 and 10 years.
Explain Explain why operational costs accumulate over 10 years while Hardware and Installation remain unchanged.
Technical boundaries. Wi-Fi installation assumes $30 per sensor. LoRaWAN installation assumes a $200 gateway per 100 sensors; monthly operations costs apply per warehouse.
IoT Connectivity TCO
Compare total cost of ownership for different IoT connectivity technologies:
Try adjusting:
- Number of sensors to see scaling effects
- Deployment duration to see how operational costs accumulate
- Sensor costs to reflect your vendor quotes
Critical Requirements Analysis:
Warehouse Environment Challenges:
- Large buildings (200,000+ sq ft) - Wi-Fi coverage gaps common
- Metal racking - blocks Wi-Fi signals, creates dead zones
- Power outlets scarce - sensors need battery-powered
- Temperature changes slowly - no need for 30-second updates
5-Year Total Cost of Ownership:
- Wi-Fi: $10K sensors, $15K installation for Wi-Fi and power, $500/month operations ($30K over five years), for a five-year total of $55,000.
- LoRaWAN: $16K sensors, $3K simple gateway placement, $250/month operations ($15K over five years), for a five-year total of $34,000 and roughly 38% savings.