M5Core2にSPRESENSEを内蔵するM-BUSアダプターを作り、M5Core2に現在地のGoogleMapを表示

© CC BY 4+ visibility1529
© CC BY 4+
visibility1529

​​​​​​​M5Stack・M5Core2・SPRESENSEをちょっとだけ使いやすくして、幸せな電子工作生活を送れるように小物や拡張ボードを作っています

link https://thousandiy.wordpress.com/2020/05/30/spresense-to-m5stack-adapter/
動画
開発素材

デバイス

ストーリー

Create M-BUS adapter with SPRESENSE built into M5Core2 and display the current location of Google Map on M5Core2

M5Core2にSPRESENSEを内蔵する拡張ボード(M-Bus Adapter for SPRESENSE)を作成、Serial2経由で描画コマンドを送信することでSPRESENSEからM5Core2のLCDに直接描画することができます。

Creating an expansion board (M-Bus Adapter for SPRESENSE) with SPRESENSE built into M5Core2 and sending drawing commands via Serial2, it is possible to draw directly from SPRESENSE to M5Core2's LCD.

SPRESENSE側の描画コマンドは定番の描画ライブラリである"TFT_eSPI"とコマンド互換となるWrapperライブラリ(ArduinoIDE用)を作成しています。

The drawing commands on SPRESENSE side are provided by the Wrapper library (for Arduino IDE) which is compatible with the standard drawing library "TFT_eSPI".


"TFT_eSPI"向けに作成したスケッチもライブラリを入れ替えることで、ほぼそのままSPRESENSEで動かすことができます。

(普通のSerial通信のWrapperなので、ライブラリはSPRESENSE以外のマイコンボードでも動作可能)

"TFT_eSPI" sketches can be run by SPRESENSE almost directly by replacing the library.

(It is a normal Serial communication Wrapper, so the library can be used with other microcontroller boards)

さらに、M5Core2側のスケッチにWiFiサービス用のSerialコマンドを追加していますので、Serial2経由で各種Webサービスに直接データ送信が可能です。

In addition, a Serial command for WiFi services has been added to the M5Core2's sketch, allowing data to be sent directly to various web services via Serial2.

SPRESENSEからM5Core2のLCDに画面表示するライブラリ(ArduinoIDE用)

Library to display the screen from SPRESENSE to M5Core2's LCD (for Arduino IDE)

ttps://github.com/tomorrow56/SerialTFT

<サポートする機能(2020年9月時点)>

  • TFT-eSPI互換コマンドによる描画機能
  • M5Core2をアクセスポイントとしWeb画面上からWiFiへのアクセス情報(SSID,Password)を設定可能(スケッチの修正不要)
  • M5StackのWiFi機能を使ってSerial2経由で各種Webサービスへのデータ送信機能(現時点はIFTTTとGoogle Mapをサポート)
  • IFTTT,GoogleMapのAPIKEY/EventKeyのSDからの読み込み対応(スケッチの修正不要)

<Features Supported (September 2020)>

  • Drawing function by TFT-eSPI compatible commands
  • You can set up WiFi access information (SSID and Password) on the web screen using M5Core2 as the access point (no need to modify the sketch)
  • Ability to send data to various web services via Serial2 using the M5Stack's WiFi function (currently supports IFTTT and Google Maps)
  • Support loading APIKEY/EventKey from SD (no need to modify the sketch)

<写真の説明>

  • 1枚目: 作成した拡張ボードにSPRESENSEを搭載したところ
  • 2枚目: M5Core2に取り付けたところ。(SPRESENSEは改造して外部GPSアンテナを取り付け)
  • 3枚目: SPRESENSEからM5Core2のLCDに文字を描画している画面
  • 4枚目: SPRSENSEで取得した位置情報を元にGoogleMapから取得した地図をM5Core2に表示した画面

<Picture Description>

  • 1st: SPRESENSE on the expansion board For M-BUS
  • 2nd: Installing in M5Core2 (SPRESENSE was modified and an external GPS antenna was connected)
  • 3rd: drawing text from SPRESENSE on the M5Core2 LCD
  • 4th: M5Core2 displays a map taken from Google Maps based on SPRSENSE's location data.

<動画の説明>

実際にGPSで受信->Google Mapの地図をM5Core2の画面上に表示した状態。

タッチパネル操作でWiFiに接続し、位置情報が取得出来たら自動でGoogle Mapにアクセスして受信した地図を表示しています。

<Video Description>

SPRESENSE GPS->Google Map on the M5Core2's screen.

After connecting to WiFi using touch screen, when SPRESENSE detect the location, it will automatically access Google Map and display the received map on M5Core2.

Wow

​​​​​​​M5Stack・M5Core2・SPRESENSEをちょっとだけ使いやすくして、幸せな電子工作生活を送れるように小物や拡張ボードを作っています

メンバー

ThousanDIY

  • user
    Masawo Yamazaki @masawoyamazaki
    • engineer

同じニオイがする作品
  • event 丸いArduino互換機「Maruino」
  • event M5BackEyeOnHelmet 〜後ろにも目をつけるんだ!〜
  • event 山みっけAR
  • event TellCall〜避難と安否確認サービス〜

Proto lovers ♥
user

作品を登録しよう

モノづくりしている人に、つくった作品を見てもらえ、リアクションがもらえるかも?

close

目次


Proto lovers ♥
user