LoginSignup
1
0

More than 3 years have passed since last update.

micro:bitで人感センサーを利用する方法

Posted at

micro:bitで人感センサー(焦電型赤外線(人感)センサーモジュール SB412A)を利用する方法です。

センサー上の3端子をミノムシクリップなどでmiciro:bitと接続します。

センサーが反応した場合は300程度の値になるので閾値を100にしたコードサンプルとしました。

■接続
DC-INPUT - GND
Vout - P0
VCC - 3V
image.png

■コードサンプル

センサーに近づくとアイコンが☓から❤に変わります

image.png

■購入
焦電型赤外線(人感)センサーモジュール SB412A
500円税込み2019/12/17時点
http://akizukidenshi.com/catalog/g/gM-09002/

1
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
1
0