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?

mBot2でつくるバーグラーアラーム

0
Posted at

はじめに

mBot2/mBlockを使ってバーグラーアラームを作ってみた。

やりたいこと

モーションセンサーを試してみる!

プログラムの概要

"検出された"ブロックを試す。

"振る"を試す。

"振る"ブロックを使ってチェック

mblock_block_2.png

ほとんど反応がない・・・

"揺れている"ブロックを試す。

"揺れている"ブロックを使ってチェック

mblock_block_1.png

強く動かすと反応があるけど・・・、コレジャナイ

"揺れの強さ"ブロックを試す。

ブロックと判定式を試す。

"揺れの強さ"ブロックでゲットできる値を使ってチェック

mblock_block_3.png

コレ! ※ループ、2秒以下だと値がクリアされない模様・・・。しかもクリアできない・・・。

最後に

CC BY-SA 4.0(著作者の情報とCCライセンス継承はお願いします。商用利用・改変・再配布は問題なし)です。

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?