Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

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

More than 5 years have passed since last update.

micro:bitAdvent Calendar 2019

Day 16

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

Comments

No comments

Let's comment your feelings that are more than good

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

Login to continue?

Login or Sign up with social account

Login or Sign up with your email address