Initial version of tricorder code, forked from Phoenix impedance calculator