html`
<div class="quick-ref-card quick-ref-formulas" style="background: #2C3E50; color: white; padding: 20px; border-radius: 12px; margin: 15px 0;">
<h3 class="depth-l0" style="margin-top: 0; border-bottom: 2px solid #16A085; padding-bottom: 10px;">IoT Formulas</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;">
<div style="background: #34495E; padding: 15px; border-radius: 8px;">
<h4 class="depth-l0" style="margin: 0 0 10px 0; color: #FFFFFF;">Free Space Path Loss</h4>
<div class="quick-ref-formula-expression" style="font-family: monospace; font-size: 14px; margin-bottom: 10px;">
FSPL(dB) = 20log₁₀(d) + 20log₁₀(f) - 147.55
</div>
<div class="quick-ref-formula-note" style="font-size: 12px;">
d = distance (m), f = frequency (Hz)<br>
At 1km, 868MHz: 91.3 dB loss
</div>
</div>
<div style="background: #34495E; padding: 15px; border-radius: 8px;">
<h4 class="depth-l0" style="margin: 0 0 10px 0; color: #FFFFFF;">Link Budget</h4>
<div class="quick-ref-formula-expression" style="font-family: monospace; font-size: 14px; margin-bottom: 10px;">
Prx = Ptx + Gtx + Grx - PathLoss - Margin
</div>
<div class="quick-ref-formula-note" style="font-size: 12px;">
Prx > Sensitivity = link works<br>
Typical margin: 10-20 dB
</div>
</div>
<div style="background: #34495E; padding: 15px; border-radius: 8px;">
<h4 class="depth-l0" style="margin: 0 0 10px 0; color: #FFFFFF;">Battery Life</h4>
<div class="quick-ref-formula-expression" style="font-family: monospace; font-size: 14px; margin-bottom: 10px;">
Hours = Capacity(mAh) / Avg_Current(mA)
</div>
<div class="quick-ref-formula-note" style="font-size: 12px;">
Avg = (Iactive × Tactive + Isleep × Tsleep) / Total<br>
Use 80% of rated capacity
</div>
</div>
<div style="background: #34495E; padding: 15px; border-radius: 8px;">
<h4 class="depth-l0" style="margin: 0 0 10px 0; color: #FFFFFF;">ADC Resolution</h4>
<div class="quick-ref-formula-expression" style="font-family: monospace; font-size: 14px; margin-bottom: 10px;">
Step = Vref / 2^bits
</div>
<div class="quick-ref-formula-note" style="font-size: 12px;">
10-bit, 3.3V: 3.2mV/step<br>
12-bit, 3.3V: 0.8mV/step
</div>
</div>
<div style="background: #34495E; padding: 15px; border-radius: 8px;">
<h4 class="depth-l0" style="margin: 0 0 10px 0; color: #FFFFFF;">Nyquist Sampling</h4>
<div class="quick-ref-formula-expression" style="font-family: monospace; font-size: 14px; margin-bottom: 10px;">
Fs > 2 × Fmax
</div>
<div class="quick-ref-formula-note" style="font-size: 12px;">
Sample at 2x highest frequency<br>
Practical: use 5-10x for safety
</div>
</div>
<div style="background: #34495E; padding: 15px; border-radius: 8px;">
<h4 class="depth-l0" style="margin: 0 0 10px 0; color: #FFFFFF;">SNR (dB)</h4>
<div class="quick-ref-formula-expression" style="font-family: monospace; font-size: 14px; margin-bottom: 10px;">
SNR = 10log₁₀(Psignal / Pnoise)
</div>
<div class="quick-ref-formula-note" style="font-size: 12px;">
ADC theoretical: SNR = 6.02×bits + 1.76<br>
10-bit: 62dB, 12-bit: 74dB
</div>
</div>
</div>
</div>
`Formula Cards
Formula Cards
animation
electronics
Formula Cards
These cards are ideal starting points. Power above receiver sensitivity alone does not prove a working link: interference, fading and packet error matter. Using 80% of rated battery capacity is an assumption, not a guarantee. Sampling at five to ten times the signal frequency does not replace an analog anti-alias filter. The 6.02N + 1.76 dB expression assumes an ideal quantization-limited ADC and a full-scale sine wave.
Trace One Pin Before Trusting a Formula
Picture an ESP32 reading a tank level, driving a control voltage, and sending a short status line to a service tool. A correct equation cannot rescue a pin that is wired to the wrong function or outside its safe range.
Use the converter models above to interpret the cards for this board. I2C is a shared two-wire link for nearby parts. SPI is a clocked link with separate data paths. UART is a simple serial link that sends timed bits between two endpoints.
Mark the chosen pins, reference voltage, units, and expected range. Test the low, middle, and high points, swap one wire while power is safe, restart the board, and compare the physical input with the recorded number. Reject any result that lacks a pin identity or unit.
This runway does not certify a board, radio link, or battery life. The cards below provide compact calculations and pin facts; the surrounding chapters explain tolerances, loading, timing, protection, and field measurement.