# @chirimen/adt7410

> Driver for ADT7410 with WebI2C

Latest version **2.0.0** (published 2025-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chirimen/adt7410
pnpm add @chirimen/adt7410
yarn add @chirimen/adt7410
bun add @chirimen/adt7410
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2025-12-27 |
| First published | 2019-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Maintainers | kou029w, krunaru, sizuhiko, akihiko.kigure, saxallan, satakagi, dynamis, rasp753 |

## Links

- npm: https://www.npmjs.com/package/@chirimen/adt7410
- Repository: https://github.com/chirimen-oh/chirimen-drivers
- Homepage: https://github.com/chirimen-oh/chirimen-drivers#readme
- Issues: https://github.com/chirimen-oh/chirimen-drivers/issues
- npm.io page: https://npm.io/package/@chirimen/adt7410

## Recent versions

- 2.0.0 (latest) — 2025-12-27
- 1.0.7 — 2021-01-06
- 1.0.6 — 2020-12-19
- 1.0.5 — 2020-12-11
- 1.0.4 — 2020-06-25
- 1.0.3 — 2020-06-19
- 1.0.2 — 2020-02-26
- 1.0.1 — 2020-02-05
- 1.0.1-alpha.0 — 2020-01-30
- 1.0.0 — 2019-11-22
- 1.0.0-alpha.0 — 2019-10-27

## README

[データシート]: https://www.analog.com/media/en/technical-documentation/data-sheets/ADT7410.pdf

# ADT7410

## センサー仕様

- 動作・測定可能温度
  - -55℃ ～+150℃
- 温度精度
  - ±0.5℃ (-40℃ ～+105℃ の環境下)
- 温度解像度
  - 0.0625℃
- I2C スレーブアドレス
  - 0x48(デフォルト), 0x49, 0x4A, 0x4B（ジャンパにより変更可能。詳しくは[データシート][]の P17, Table20 を参照）

詳細な仕様は[データシート][]を参照してください。（ANALOG DEVICES 社のサイトにリンクします。）

## ドライバ

### 初期化

```javascript
const adt7410 = new ADT7410(i2cPort, slaveAddress);
await adt7410.init();
```

I2C ポートの取得とセンサーの初期化をします。  
センサーを使う前に必ず一回実行してください。  
|引数|型|説明|
|:---|:---|:---|
|i2cPort|I2CSlaveDevice|使用する I2C ポートの port オブジェクトです。|
|slaveAddress|Number|センサーの I2C スレーブアドレスです。[センサー仕様](#センサー仕様)を参照してください。|

### 温度の読み取り read()

```js
temperature = await adt7410.read();
```

温度を測定します。
|返り値|型|説明|
|:---|:---|:---|
|tempeature|Number|センサーが測定した温度です。単位は ℃（セルシウス度）です。|

## 参考リンク

- ADT7410 データシート（ANALOG DEVICES 社）
  - https://www.analog.com/media/en/technical-documentation/data-sheets/ADT7410.pdf
- ＡＤＴ７４１０使用　高精度・高分解能　Ｉ２Ｃ・１６Ｂｉｔ　温度センサモジュール（秋月電子通商）
  - http://akizukidenshi.com/catalog/g/gM-06675/

---
_Source: https://npm.io/package/@chirimen/adt7410 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
