steinhart-hart
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

steinhart-hart

steinhart-hart allows easy coefficient and temperature calculations

Installation

npm i steinhart-hart

Usage

import SteinhartHart from 'steinhart-hart';

// celsius = -25 (248.15 in Kelvin) ---- resistance = 87041
// celsius = 0 (273.15 in Kelvin) ---- resistance = 27326
// celsius = 25 (298.15 in Kelvin) ---- resistance = 10000
const steinhartHart = new SteinhartHart([87041, 27326, 10000], [248.15, 273.15, 298.15]);

const {a, b, c} = steinhartHart.getCoefficients();


const temperature = steinhartHart.getKTemperatureAtResistance(7000) // 34.7531C or 307.9031K

License

MIT

Package Sidebar

Install

npm i steinhart-hart

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.97 kB

Total Files

6

Last publish

Collaborators

  • kdyz