Plan Your Modality Budget
Try Add App Interface with 300 dev hours and $0 hardware cost.
Observe Watch Hardware Cost and Development Effort after adding App Interface with 300 dev hours.
Explain Explain why App Interface adds 300 development hours but $0 hardware cost.
Calculate
Reset
Technical boundaries. Hardware Cost and Development Effort sum fixed values for selected modalities. Coverage status depends on modality count.
Interactive Calculator: Plan Your Modality Budget
viewof includePhysical = Inputs. checkbox (["Physical Button" ], {value : ["Physical Button" ], label : "Essential (always include)" })
viewof includeLED = Inputs. checkbox (["LED Indicator" ], {value : ["LED Indicator" ], label : "High Priority" })
viewof includeAudio = Inputs. checkbox (["Audio Feedback" ], {value : [], label : "High Priority" })
viewof includeApp = Inputs. checkbox (["App Interface" ], {value : [], label : "High Priority" })
viewof includeVoice = Inputs. checkbox (["Voice Control" ], {value : [], label : "Medium Priority" })
viewof includeHaptic = Inputs. checkbox (["Haptic Feedback" ], {value : [], label : "Medium Priority" })
viewof includeGesture = Inputs. checkbox (["Gesture Control" ], {value : [], label : "Low Priority" })
modalityCosts = ({
"Physical Button" : {cost : 1.25 , dev : 8 , priority : "ESSENTIAL" },
"LED Indicator" : {cost : 0.65 , dev : 4 , priority : "HIGH" },
"Audio Feedback" : {cost : 2.75 , dev : 12 , priority : "HIGH" },
"App Interface" : {cost : 0 , dev : 300 , priority : "HIGH" },
"Voice Control" : {cost : 5.5 , dev : 100 , priority : "MEDIUM" },
"Haptic Feedback" : {cost : 3.5 , dev : 6 , priority : "MEDIUM" },
"Gesture Control" : {cost : 11.5 , dev : 80 , priority : "LOW" }
})
selectedModalities = [
... includePhysical,
... includeLED,
... includeAudio,
... includeApp,
... includeVoice,
... includeHaptic,
... includeGesture
]
totalHardwareCost = selectedModalities. reduce ((sum, mod) => sum + modalityCosts[mod]. cost , 0 )
totalDevHours = selectedModalities. reduce ((sum, mod) => sum + modalityCosts[mod]. dev , 0 )
modalityCount = selectedModalities. length
statusColor = modalityCount >= 3 ? "#16A085" : modalityCount >= 2 ? "#3498DB" : "#E67E22"
statusText = modalityCount >= 3 ? "Excellent multimodal coverage" :
modalityCount >= 2 ? "Adequate fallback support" :
"Risky - single point of failure"
html `<div style="background: #f8f9fa; border-left: 4px solid ${ statusColor} ; padding: 16px; margin: 16px 0; border-radius: 4px;">
<div style="font-size: 18px; font-weight: bold; color: #2C3E50; margin-bottom: 8px;">
${ modalityCount} ${ modalityCount === 1 ? "Modality" : "Modalities" } Selected
</div>
<div style="font-size: 14px; color: ${ statusColor} ; margin-bottom: 12px;">
${ statusText}
</div>
<div style="font-size: 13px; color: #2C3E50; margin-bottom: 6px;">
<strong>Hardware Cost:</strong> $ ${ totalHardwareCost. toFixed (2 )} /unit
</div>
<div style="font-size: 13px; color: #2C3E50; margin-bottom: 12px;">
<strong>Development Effort:</strong> ${ totalDevHours} hours (~ ${ (totalDevHours/ 40 ). toFixed (1 )} weeks)
</div>
<div style="font-size: 12px; color: #7F8C8D;">
${ selectedModalities. length > 0 ? selectedModalities. join (", " ) : "No modalities selected" }
</div>
</div>`
Experiment: Start with just Physical Button ($1.25, 8 hours). Add LED Indicator for visual feedback. Notice how adding App Interface adds 300 dev hours but $0 hardware cost. Try building a safety-critical device (3-4 modalities) vs. a convenience device (1-2 modalities).
Back to the chapter