mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
update some docs ja
This commit is contained in:
+31
-19
@@ -4,35 +4,55 @@
|
||||
|
||||
***
|
||||
|
||||
:memo:**[概要](#概要)** :octocat:**[サンプルコード](#サンプルコード)** :electric_plug:**[回路図](#回路図)** 🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Makey-Unit-MEGA328P-Inside-16Key-Fruit-Paino-with-NEO-Pixel-and-BUZZER-for-ESP32/3226069_32924883456.html?spm=a2g1y.12024536.productList_5885013.subject_23)**
|
||||
:memo:**[概要](#概要)** :octocat:**[サンプルコード](#サンプルコード)** :electric_plug:**[回路図](#回路図)** 🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Makey-Unit-MEGA328P-Inside-16Key-Fruit-Paino-with-NEO-Pixel-and-BUZZER-for-ESP32/3226069_32924883456.html)**
|
||||
|
||||
## 概要
|
||||
|
||||
**<mark>MAKEY</mark>**ユニットはATmega328Pを内蔵し、自由に使用可能な16のIOピンを備えています。I2Cでコントロール可能です。I2Cアドレスは**<mark>0x51</mark>**です。
|
||||
**<mark>MAKEY</mark>**ユニットはATmega328Pを内蔵し、自由に使用可能な16のIOピンを備えています。I2Cでコントロール可能です。GroveポートAで接続し、I2Cアドレスは**0x51**です。
|
||||
|
||||
*注意事項:**
|
||||
|
||||
1)ユニットのブザーで鳴らす場合
|
||||
|
||||
ユニットのGNDホールに接続したデュポン線の端を左手に持ちます。
|
||||
|
||||
もうひとつ別のデュポン線の端を右手に持ちます。右手のデュポン線をユニットのトーンホールに触れさせると、MAKEYから対応する音が鳴ります。
|
||||
|
||||
2)M5Coreのスピーカーで鳴らす場合
|
||||
|
||||
**GroveポートA**でM5Coreにユニットを接続し、こちらの[サンプルコード](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/Arduino/Makey_new_version)を書き込みます。
|
||||
|
||||
あとはMakeyで鳴らすのと同じで、ユニットのGNDホールに接続したデュポン線の端を左手に持ちます。
|
||||
|
||||
もうひとつ別のデュポン線の端を右手に持ちます。右手のデュポン線をユニットのトーンホールに触れさせると、M5Coreから対応する音が鳴ります。
|
||||
|
||||
## 特徴
|
||||
|
||||
- ATmega328P 内蔵
|
||||
- 16 Keys Fruit Piano(PD0-7 & PB0-5)
|
||||
- 1x NeoPixel pin(PC2)
|
||||
- 1x Buzzer pin(PC3)
|
||||
- ブザー内蔵
|
||||
- Grove インターフェース
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- GROVEインターフェース、プログラミングサポート [UIFlow](http://flow.m5stack.com)、[Arduino](http://www.arduino.cc)
|
||||
- LEGO 互換ホール
|
||||
|
||||
## アプリケーション
|
||||
|
||||
- フルーツピアノ
|
||||
- Adafruitのライブラリを用いたRGB アプリケーション
|
||||
- フルートピアノ
|
||||
- Adafruitのライブラリを用いたRGBアプリケーション
|
||||
|
||||
<img src="assets/img/product_pics/unit/M5GO_Unit_makey_05.png" width="40%" height="40%">
|
||||
|
||||
## 関連リンク
|
||||
|
||||
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
|
||||
|
||||
- **[フォーラム](http://forum.m5stack.com/)**
|
||||
|
||||
- **[モジュール内のMEGA328ファームウェア](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/firmware_328p)**
|
||||
|
||||
## サンプルコード
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下のコードは不完全です(説明のためだけに). 完全なコードが必要な場合は、ここをクリックしてください[サンプルコード](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/MAKEY/Arduino).*
|
||||
*以下はソースコードの一部です。完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/MAKEY/Arduino)。*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -58,7 +78,7 @@ while (Wire.available()) {
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*特定のルーチンについてはここをクリックしてください[サンプルコード](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/MAKEY/UIFlow).*
|
||||
*以下はソースコードの一部です。完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/MAKEY/UIFlow)。*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/MAKEY/example_unit_makey_02.png">
|
||||
|
||||
@@ -74,11 +94,3 @@ while (Wire.available()) {
|
||||
</table>
|
||||
|
||||
<img src="assets/img/product_pics/unit/M5GO_Unit_makey_03.png" width="30%" height="30%">
|
||||
|
||||
## 関連リンク
|
||||
|
||||
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
|
||||
|
||||
- **[フォーラム](http://forum.m5stack.com/)**
|
||||
|
||||
- **[モジュール内のMEGA328ファームウェア](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/firmware_328p)**
|
||||
+17
-11
@@ -4,23 +4,35 @@
|
||||
|
||||
***
|
||||
|
||||
:memo:**[概要](#概要)** :octocat:**[サンプルコード](#サンプルコード)** :electric_plug:**[回路図](#回路図)** 🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Mini-PIR-Sensor-Human-Body-Infrared-PIR-Motion-Sensor-Detector-Module-GPIO-GROVE-Connector/3226069_32931794651.html?spm=a2g1y.12024536.productList_5885013.subject_19)**
|
||||
:memo:**[概要](#概要)** :octocat:**[サンプルコード](#サンプルコード)** :electric_plug:**[回路図](#回路図)** 🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Mini-PIR-Sensor-Human-Body-Infrared-PIR-Motion-Sensor-Detector-Module-GPIO-GROVE-Connector/3226069_32931794651.html)**
|
||||
|
||||
## 概要
|
||||
|
||||
**<mark>PIR</mark>**ユニットは人間の動き(モーション)を検出する事が可能です。
|
||||
**<mark>PIR</mark>**ユニットは人間の動き(モーション)を検出する事が可能な赤外線センサーユニットです。誰かが通りすぎたかどうかを検知します。赤外線の変化を検知すると一定時間(ディレイタイムの間)HIGHを出力します。検知し続けている間はHIGHのままですが、人が離れたらLOWを出力します。
|
||||
|
||||
**Grove port B**でM5Coreと通信します。
|
||||
|
||||
## 特徴
|
||||
|
||||
- 測定可能距離 150cm
|
||||
- サポート[UIFlow](http://flow.m5stack.com)プログラミング, [Arduino](http://www.arduino.cc)プログラミング
|
||||
- ディレイタイム: 2s
|
||||
- 検知範囲: < 100°
|
||||
- 待機電流: < 60uA
|
||||
- 動作温度: -20 - 80 °C
|
||||
- GROVEインターフェース、サポートプログラミング[UIFlow](http://flow.m5stack.com)、[Arduino](http://www.arduino.cc)
|
||||
- LEGO 互換ホール
|
||||
|
||||
## 関連リンク
|
||||
|
||||
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
|
||||
|
||||
- **[フォーラム](http://forum.m5stack.com/)**
|
||||
|
||||
## サンプルコード
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下のコードは不完全です(説明のためだけに). 完全なコードが必要な場合は、ここをクリックしてください[サンプルコード](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/PIR/Arduino).*
|
||||
*以下のソースコードは一部です。完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/PIR/Arduino)。*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -36,7 +48,7 @@ M5.update();
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*特定のルーチンについてはここをクリックしてください[サンプルコード](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/PIR/UIFlow).*
|
||||
*以下のソースコードは一部です。完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/PIR/UIFlow)。*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/PIR/example_unit_pir_03.png">
|
||||
|
||||
@@ -50,9 +62,3 @@ M5.update();
|
||||
<tr><td>M5Core(GROVEインターフェースB)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>人体赤外線誘導Unit</td><td>赤外線検知ピン</td><td> </td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 関連リンク
|
||||
|
||||
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
|
||||
|
||||
- **[フォーラム](http://forum.m5stack.com/)**
|
||||
Reference in New Issue
Block a user