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?

M5Stackで表面温度測定

0
Posted at

概要

かんたん表面温度測定を行う。

コード生成

Chat GPT Plusで、以下のプロンプトでコード生成する

M5 CORES3 SEでSYNTHとNCIRを使って、ある温度になったら音楽を流したいです。
体温チェックとして 34.9度〜36.9度はOK音 37.0度〜38.0度は注意音 38.0度以上は警告音を出します。
画面はチェック開始のボタンを出して、ボタンを押したら、1秒感覚で10回検温し、その平均を計測。
その結果を画面に表示し、音も出してください。

があっという間にできた。

ビルド

Arduino IDEで、以下のライブラリをインストールする。

  • M5Unified
  • M5Unit-Synth
  • Adafruit MLX90614 Library

後は、ttyACMで認識されているS3SEにビルドしてインストール。

結果

計測中。
image.png

結果。
image.png

コード生成もビルドも動作も何も引っかからずにできてしまう。
ここから、どうやったら面白くなるかを考え中。

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?