Calibration works. AKA near-complete rewrite.

Reminder: meaningful pot range for this circuit is ~5-425 (out of 0-1023).