0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

I2Cの配線

Last updated at Posted at 2025-10-02

使わなくなった4芯の電話線でI2Cを配線してみました。

IMG_20251002_110600.jpg

bcmbm-mrubyのモジュールから1mくらい伸ばしていますが、問題なく動作しています。

なぜこのようにしたかというと、もともと15cmくらいの短いケーブルで窓際にセンサーを置いていたのですが、直射日光が当たると温度と湿度が狂ってしまうので、伸ばして直射が当たらないところに置けるようにしました。

ワイヤーの色と信号は合わせていません。

以下のmrubyスクリプトで拾っています。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?