viewof numLights = Inputs.range([1000, 50000], {
value: 15000,
step: 1000,
label: "Number of street lights"
})
viewof hpsWattage = Inputs.range([100, 250], {
value: 150,
step: 10,
label: "Current HPS wattage per light (W)"
})
viewof ledWattage = Inputs.range([30, 100], {
value: 60,
step: 5,
label: "LED wattage at 100% brightness (W)"
})
viewof avgDimLevel = Inputs.range([30, 100], {
value: 50,
step: 5,
label: "Average dimming level with smart controls (%)"
})
viewof hoursPerDay = Inputs.range([8, 14], {
value: 12,
step: 0.5,
label: "Operating hours per day"
})
viewof energyCost = Inputs.range([0.08, 0.20], {
value: 0.12,
step: 0.01,
label: "Energy cost ($/kWh)"
})
viewof ledFixtureCost = Inputs.range([200, 500], {
value: 280,
step: 20,
label: "LED fixture cost per light ($)"
})
viewof controllerCost = Inputs.range([50, 150], {
value: 85,
step: 5,
label: "Smart controller cost per light ($)"
})
viewof installCost = Inputs.range([80, 200], {
value: 120,
step: 10,
label: "Installation cost per light ($)"
})
// Calculations
hpsAnnualKwh = numLights * (hpsWattage / 1000) * hoursPerDay * 365
ledEffectiveWattage = ledWattage * (avgDimLevel / 100)
ledAnnualKwh = numLights * (ledEffectiveWattage / 1000) * hoursPerDay * 365
energySavingsKwh = hpsAnnualKwh - ledAnnualKwh
energySavingsPct = ((energySavingsKwh / hpsAnnualKwh) * 100)
annualEnergyCostSavings = energySavingsKwh * energyCost
hpsMaintenanceCost = numLights * (45 + 60) / 3 // Replace every 3 years
ledMaintenanceCost = numLights * 0.005 * (ledFixtureCost + installCost) // 0.5% failure rate
annualMaintenanceSavings = hpsMaintenanceCost - ledMaintenanceCost
totalAnnualSavings = annualEnergyCostSavings + annualMaintenanceSavings
totalCapEx = numLights * (ledFixtureCost + controllerCost + installCost)
paybackYears = totalCapEx / totalAnnualSavings
co2Avoided = energySavingsKwh * 0.5 / 1000 // 0.5 kg CO2 per kWh, convert to metric tons
html`
<div style="background: linear-gradient(135deg, #9B59B6 0%, #3498DB 100%); padding: 24px; border-radius: 8px; color: white; margin: 20px 0;">
<h3 style="margin: 0 0 20px 0; color: white;">Smart Lighting Savings Analysis</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px;">
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px;">
<div style="font-size: 14px; opacity: 0.9;">Current (HPS)</div>
<div style="font-size: 24px; font-weight: bold; color: #E74C3C;">${Math.round(hpsAnnualKwh).toLocaleString()} kWh</div>
<div style="font-size: 12px; opacity: 0.8; margin-top: 4px;">per year</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px;">
<div style="font-size: 14px; opacity: 0.9;">Smart LED</div>
<div style="font-size: 24px; font-weight: bold; color: #16A085;">${Math.round(ledAnnualKwh).toLocaleString()} kWh</div>
<div style="font-size: 12px; opacity: 0.8; margin-top: 4px;">per year</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px;">
<div style="font-size: 14px; opacity: 0.9;">Energy Savings</div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22;">${energySavingsPct.toFixed(1)}%</div>
<div style="font-size: 12px; opacity: 0.8; margin-top: 4px;">${Math.round(energySavingsKwh).toLocaleString()} kWh</div>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px;">
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px;">
<div style="font-size: 14px; opacity: 0.9;">Annual Energy Cost Savings</div>
<div style="font-size: 28px; font-weight: bold; color: #16A085;">$${Math.round(annualEnergyCostSavings).toLocaleString()}</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px;">
<div style="font-size: 14px; opacity: 0.9;">Annual Maintenance Savings</div>
<div style="font-size: 28px; font-weight: bold; color: #16A085;">$${Math.round(annualMaintenanceSavings).toLocaleString()}</div>
</div>
</div>
<div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 6px; border: 2px solid #16A085;">
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px;">
<div>
<div style="font-size: 14px; opacity: 0.9; margin-bottom: 4px;">Total Investment</div>
<div style="font-size: 28px; font-weight: bold; color: #E67E22;">$${Math.round(totalCapEx).toLocaleString()}</div>
</div>
<div>
<div style="font-size: 14px; opacity: 0.9; margin-bottom: 4px;">Annual Savings</div>
<div style="font-size: 28px; font-weight: bold; color: #16A085;">$${Math.round(totalAnnualSavings).toLocaleString()}</div>
</div>
<div>
<div style="font-size: 14px; opacity: 0.9; margin-bottom: 4px;">Payback Period</div>
<div style="font-size: 28px; font-weight: bold; color: #3498DB;">${paybackYears.toFixed(1)} years</div>
</div>
</div>
</div>
<div style="margin-top: 20px; padding: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; font-size: 14px;">
<strong>Environmental Impact:</strong> ${Math.round(co2Avoided).toLocaleString()} metric tons CO₂ avoided annually
(equivalent to removing ${Math.round(co2Avoided / 4.6).toLocaleString()} cars from roads)
</div>
</div>
`Smart Lighting Energy Savings
Smart Lighting Energy Savings
animation
applications
smart-cities
Try Change Average dimming level with smart controls (%), then press Calculate savings.
Observe After Calculate savings, watch Energy Savings, Annual Savings and Payback Period.
Explain Explain why changing average dimming level changes Energy Savings after Calculate savings.
Technical boundaries. LED effective wattage scales directly with average dimming level. Maintenance assumes HPS replacement every 3 years and a 0.5% LED failure rate.
Smart Lighting Energy Savings
Calculate energy and cost savings from upgrading to smart LED street lighting.
Key Insight: Notice how adaptive dimming amplifies LED savings. A 60W LED at 50% average brightness (30W effective) can achieve 80%+ energy reduction compared to high-pressure sodium lights, far exceeding static LED’s 60% savings. Maintenance cost reduction (LED 15-year lifespan vs. In this street-lighting calculator, maintenance savings from the assumed LED and sodium-lamp replacement schedules add about 30–35% of annual benefit.